API: Active speed & zone information
in RobotStudio
Hello,
I would like to access the active speed and the active zone (shown at the picture below) using the RS-API.
I tried to get these information from the ActiveProcessTemplate, but this object only contains information about the motiontype.
[Code]
RsProcessTemplate proctemp = station.ActiveTask.ActiveProcessDefinition.ActiveProcessTemplate;
[/Code]
How can i get the information about the currently selected speed and zone?
Johannes Wiesehöfer
ABB Robotics
Friedberg
ABB Robotics
Friedberg
0
Comments
-
Hi Johannes,you can use the active process template to access the instruction template for the motion type you like.[CODE]
public RsInstructionTemplate GetTemplate(
[/CODE]
MotionType motionType
)If you pass in MotionType.Linear to GetTemplate() you can access the template arguments.There is an example in the API documentation for RsInstructionTemplate that shows how to access the arguments and their values.0 -
Hi,thats the method I need.But I noticed an apparently wrong description of the GetTemplate() method.As shown in the following screenshot the description says:"Gets the RsProcessTemplate corresponding..."I think it should be:"Gets the RsInstructionTemplate corresponding..."Johannes Wiesehöfer
ABB Robotics
Friedberg0 -
Hi Johannes,you are right, there is a type in the documentation. It will be fixed in RobotStudio 5.13.01.Thanks.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings