6-92
GRY(P),DGRY(P)
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• The data at is a negative number. (Error code: 4100)
Program Example
(1) The following program converts the BIN data at D100 to Gray code when X10 is ON, and
stores result at D200.
[Ladder Mode] [List Mode]
(2) The following program converts the BIN data at D10 and D11 to Gray code when X1C is ON,
and stores it at D100 and D101.
[Ladder Mode] [List Mode]
S
Step
Instruction
Device
Step
Instruction
Device