Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
Is there anyway to modify the Motion Instruction in rapid through Application Of ScreenMaker?
in ScreenMaker
Dear All
I want to create the Application Of ScreenMaker. The Operator can use my app to change the value of the speed, zone, tool, and move type. I have changed speed, zone, tool successfully. But I don't know how to change Move type (example: from MoveL to Move J). Can anyone help me?

I want to create the Application Of ScreenMaker. The Operator can use my app to change the value of the speed, zone, tool, and move type. I have changed speed, zone, tool successfully. But I don't know how to change Move type (example: from MoveL to Move J). Can anyone help me?

0
Comments
-
Does it change RAPID code directly or change variables value?If last, your can make a test for each movement.PERS string sMoveType:="MoveJ";
PROC MyMove(\ switch Conc
, robtarget ToPoint
\ identno ID
, speeddata Speed
\ num V | num T
, zonedata Zone
\ num Z
\ stoppointdata Inpos
, PERS tooldata Tool
\ PERS wobjdata WObj
\ PERS loaddata TLoad)
TEST sMoveType
CASE "MoveJ":
MoveJ\Conc?Conc,ToPoint\ID?ID,Speed\V?V\T?T,Zone\Z?Z\Inpos?Inpos,Tool\WObj?WObj\TLoad?TLoad;
CASE "MoveL":
MoveL\Conc?Conc,ToPoint\ID?ID,Speed\V?V\T?T,Zone\Z?Z\Inpos?Inpos,Tool\WObj?WObj\TLoad?TLoad;
DEFAULT:
ErrWrite "MyMove","sMoveType is not well defined!!!"\RL2:="sMoveType = "+sMoveType\RL3:="Should be MoveJ or MoveL";
ENDTEST
ENDPROC
☑️2024 - RobotStudio® User Group1 -
Hi DenisFR. Thank for your response. I think that I will change the variable value on the ScreenMaker app. After I press the save button, it will save the value to my RAPID.0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 84 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 37 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings