Group various Digital signals into bytes
eKoh
✭
in RobotStudio
Hello there!
I am simulating communication with PlcSim, but I need to send this information in bytes. For example let's say I have these digital output signals:
PLC_do_User_01
PLC_do_User_02
...
PLC_do_User_08
How can I group these into a byte?
And later on, connect that resulting byte within the Design of the Station Logic? As shown (incorrectly for now) in the following picture.
I would appreciate any help, thank you guys!
P.S. I am using RSConnectGIOToSnap7 Add-In.
I am simulating communication with PlcSim, but I need to send this information in bytes. For example let's say I have these digital output signals:
PLC_do_User_01
PLC_do_User_02
...
PLC_do_User_08
How can I group these into a byte?
And later on, connect that resulting byte within the Design of the Station Logic? As shown (incorrectly for now) in the following picture.
I would appreciate any help, thank you guys!
P.S. I am using RSConnectGIOToSnap7 Add-In.
0
Comments
-
Hello,You can make group in your controller, or you can use RSConnectDIOToSnap7.
0 -
For a virtual signal, click on I/O system, right click on signal and select "add".
For a real signal, the only difference is the mapping:
1 -
nomad5t5 said:For a virtual signal, click on I/O system, right click on signal and select "add".
For a real signal, the only difference is the mapping:
I misexplained my issue. Let me expose the problem:
I have these 32 Digital Inputs that I want to group into 4 Groupal Inputs (let's say virtual signals).
The question is: How can I connect 8 signals into 1 Groupal signal?
My dummy solution was to write that code in RAPID in the background task I have on my controller, but that would be a really messy code. I am looking for a more elegant solution if possible.
Thank you guys for the response!0 -
Your snip is of real signals so in the device mapping (shown in Nomad's snip) you put in the start bit and the end bit of each group --> GI1 = 0-7, GI2 = 8-15, GI3 = 16-23, GI4 = 24-31.
The bit mapping on I/O devices normal start at 0, so your 32 bit would go from 0 to 31.
1 -
graemepaulin said:
Your snip is of real signals so in the device mapping (shown in Nomad's snip) you put in the start bit and the end bit of each group --> GI1 = 0-7, GI2 = 8-15, GI3 = 16-23, GI4 = 24-31.
The bit mapping on I/O devices normal start at 0, so your 32 bit would go from 0 to 31.
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