GBIN Conversion
GBIN, GBINP, DGBIN, DGBINP
GBIN instruction converts a Gray code to a Binary data and save the result in the Destination (assigned device address).
(It supports only in XP and PLC-S CPU series)
| |
S | Source (Gray code) |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
GBIN(P) DGBIN(P) | S | o | o | o | o | o | o | o | o | - | o | o | o | o | 4 | o | - | - |
D | o | - | o | o | o | - | o | o | - | o | o | o | o |
GBIN(P)
Functions
Convert S(16bit Gray data) to 16bit binary code data and save the result in the Destination.
Example)
If M00 is ON, convert D80 (16bit Gray code data) to 16bit binary data and then save the result in D90.
DGBIN(P)
Functions
Convert S(32bit Gray code) to 32bit binary data and save the result in the Destination.
Example)
If M00 is ON, convert D80 (32bit Gray code) to 32bit binary data and then save the result in D90.