custom motion command
Amol
✭
can anyone help me in creating a custom motion command,i need to add a analog output in every motion command
For eg -
For eg -
0
Comments
-
Is there some reason you do not want to use the Rapid instruction MoveLAO?Lee Justice0
-
Try this.
MODULE Grind(SYSMODULE,NOSTEPIN,VIEWONLY,READONLY)!***********************************************************!! Module: Unnamed!! Description:! Custom motion proc for Move with analog output!! Author: Lemuel!! Version: 1.0!!***********************************************************CONST robtarget myRobtarget10:=[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];CONST robtarget myRobtarget20:=[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];CONST robtarget myRobtarget30:=[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];PROC GrindL(VAR Robtarget pPos,VAR Speeddata Speed\num Time,VAR zonedata zone,PERS tooldata tool,\PERS wobjdata Wobj,VAR signalAO analog,num value)MoveLAO pPos,Speed\T?Time,Zone,tool\Wobj?Wobj,Signal,value;ENDPROCPROC TestMotion()GrindL myRobtarget10,v100,z10,tool0,AO1,2.5;GrindL myRobtarget20,v200,z50,tool0,AO1,5;GrindL myRobtarget30,v80,z10,tool0,AO1,3.5;ENDPROCENDMODULELee Justice0
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings