Hello,
I want to send a Z value "measured" by the robot via a search instruction. This value is now saved into a Double variable D020.
This Z value can be bigger than 255mm so I need to send D020 to the PLC via 2 group outputs, OG68 & OG69.
What is the best way to "break down" a double variable (or an integer one) into two bytes variables? Does somebody have a standard code for it?
I wanted to create a loop and divide by 2 till I reach 0 and then assign each bit; but for this I need a modulo instruction which is not available...
If possible I want to avoid using the ladder (only a system job).
Many thanks!