Chapter 16 PLC Function ApplicationsMH300
GRY
Convert BIN to GRAY code
Continuous
execution type
Continuous
execution type
Flag signal: none
*
*
*
*
*
*
*
*
*
*
*
*
*
R
efer to the function specifications table for each device in series
for the scope of device usage.
S: source device. D: device storing GRAY code.
Converts the BIN value of the device designated by S to a GRAY code, and stores
the result in the device designated by D.
The valid range for 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 X0=ON, converts the constant K6513 to a GRAY code and stores it in D0.