Messaging domain, Guidelines / sample needed
Laro88
✭
I need to send multiple bool commands to an IRC5 controller, and I am a bit confused, since the samples provided does not bother with showing multiple bool io operations.
I would like to be able to signal "Stop" & "GoHome" &" EngageTool" as boolean variables. These should in turn trigger special PROCs in the main task.
How to do this? It looks like the messaging domain is not prepared for identifiers of the variables. I was hoping to find something simple like a "Name" of an RmqMessage.
Is there some recommendations available for some a bit more complex messaging?
Regards
I would like to be able to signal "Stop" & "GoHome" &" EngageTool" as boolean variables. These should in turn trigger special PROCs in the main task.
How to do this? It looks like the messaging domain is not prepared for identifiers of the variables. I was hoping to find something simple like a "Name" of an RmqMessage.
Is there some recommendations available for some a bit more complex messaging?
Regards
0
Comments
-
You can not get the name of the data that is sent.
But, you can solve this in 2 ways.1) Create alias datatypes
ALIAS bool stopdata;
ALIAS bool gohomedata;
ALIAS bool engagetooldata;VAR stopdata mystop:=FALSE;
VAR gohomedata homedata:=FALSE;
VAR engagetooldata engagetool:=FALSE;Then you have different datatypes to react on.2) Create a new RECORD
RECORD mymessage
bool orderstop;
bool gohome;
bool engagetool;
ENDRECORD
Then you can evaluate the different booleans when receiving the message.
Good luck0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings