Create a new "SpeedData" from SDK
Hi to all,
I would like create a SpeedData value different form the standard, defined in the system module.
In a Rapid module this is to easy, but i have to do this from the pc SDK.
Can anyone help me?
Is there a an interface to make a new RAPID var from SDK and insert this into a module?
Thanks to everybody.
0
Comments
-
Can't you make a variable, that you write to from SDK, like any other variable?0
-
If I use something like this...RsGenericDataDeclaration speed15 = new RsGenericDataDeclaration("V15", "speedata", new [] {15, 500,5000, 1000});speed15.ModuleName = _rsProcedure.Name;speed15.Synchronize = true;speed15.StorageType = RapidStorageType.Constant;It creates a RsGenericDataDeclaration of type speeddata? Could be inserted into a RAPID module?0
-
Hi,
Do you need to create a new speeddata or can you simply write the new value for each component?
From RAPID it would be the following (have not used PC SDK so do not know the syntax you would use for it):
MODULE mMain
PERS speeddata speed15:=[15,500,5000,1000];
PROC main()
speed15.v_tcp:=15;
speed15.v_ori:=500;
speed15.v_leax:=5000;
speed15.v_reax:=1000;
ENDPROC
ENDMODULE
Regards
Graeme
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 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)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings