KRC4 KSS 8.6.8 KR 210 R3300-2 K
My goal is to program in an internal only byte with bits to use as a temporary byte during our programing.
Currently, we have an 8-bit GI and an 8-bit GO going between the PLC and our robot. The robot reads in the GI and copies it to the GO. The robot then reads the GO and updates the individual bits based on the program that's running. The GO is broken down into bits and grouped on the PLC side. This allows us to send multiple pieces of info across at once such as part status, lid status, tray counts, search bits, etc. Then the PLC is constantly reading in that GO. The issue is that sometimes due to the PLC scan, the PLC catches the GO at the perfect moment while the robot is in the middle of updating the bits inside the GO. Resulting in an invalid status.
I don't want to use another output, even if the PLC never reads the new GO. I thought of using a group of BOOL types as follows:
GLOBAL BOOL updateByte_Bit0
GLOBAL BOOL updateByte_Bit1
GLOBAL BOOL updateByte_Bit2
GLOBAL BOOL updateByte_Bit3
GLOBAL BOOL updateByte_Bit4
GLOBAL BOOL updateByte_Bit5
GLOBAL BOOL updateByte_Bit6
GLOBAL BOOL updateByte_Bit7
but I'm not sure on how to then group it similar to how one groups signals to form GO's. Any suggestions would be greatly appreciated.