S: source device storing GRAY code. D: device storing BIN value after conversion.
Converts the GRAY code corresponding to the value of the device designated by
S that is converted into a BIN value, and stores it in the device designated by D.
This command converts the value of the absolute position encoder connected with
the PLC's input (this encoder usually has an output value in the form of GRAY code)
into a BIN value, and stores it in the designated register.
The valid range of S is as shown below; if you exceed this range, it is an error, and
the command does not execute.
16-bit command: 0–32,767
32-bit command: 0–2,147,483,647
When X20 = ON, converts the GRAY code of the absolute position encoder
connected with input points X0–X17 to a BIN value and stores it in D10.