How can I set a signal that is specified in a string?

svoldgaard
Denmark ✭✭
Is it possible to set a signal, which name is defined in a string.<div><br></div><div>something like:</div><div>var string signalName;="Signal1";</div><div>Set signalName;</div>
Best Answer
-
U can use AliasIO to connect to a signal specified by a string. From the ABB "RAPID instructions, functions and data types" manual<br>VAR signaldi alias_di;<br>PROC prog_start()<br>CONST string config_string := "config_di";<br>AliasIO config_string, alias_di;ENDPROC<br>You could change the example to using a signaldo and using the normal I/O operations to set the output. (SetDO alias_do, 1)
Categories
- 10.1K All Categories
- 5.2K RobotStudio
- 323 UpFeed
- 8 Tutorials
- 1 RobotApps
- 273 PowerPacs
- 401 RobotStudio S4
- 1.7K Developer Tools
- 224 ScreenMaker
- 2.6K Robot Controller
- 206 IRC5
- 26 OmniCore
- 5 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 621 RAPID Programming
- 14 Wizard Easy Programming
- 98 Collaborative Robots
- 3 Job listings