Chapter 16 PLC Function ApplicationsMS300 (High Speed Model)
16-85
API
GRY
BIN→GRAY code transformation
170
D P
Bit device Word device
16-bit command (5 STEP)
GRY Continuous
execution type
GRYP Pulse
execution type
32-bit command (9 STEP)
DGRY Continuous
execution type
DGRYP Pulse
execution type
Flag signal: none
X Y M K H KnX KnY KnM T C D
S
* * * * * * * *
D
* * * * *
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
S: source device. D: device storing GRAY code.
Transforms the content value (BIN value) of the device designated by S to GRAY
code, which is stored in the device designated by D.
The valid range of S is as shown below; if this range is exceeded, it will be
considered an error, and the command will not execute.
16-bit command: 0~32,767
32-bit command: 0~2,147,483,647
When X0=On, the constant K6513 will be transformed to GRAY code and
stored in D0.