286
6 BASIC INSTRUCTIONS
6.3 Data Conversion Instructions
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• The following program converts the Gray code data at D100 when X10 is ON to BIN data, and stores the result at D200.
• The following program converts the Gray code data at D10 and D11 to BIN data when X1C is ON, and stores the result at
D0 and D1.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The data of (S) is other than 0 to 32767 when the GBIN instruction is
executed.
The data of (S) is other than 0 to 2147483647 when the DGBIN instruction is
executed.
[Ladder Mode] [List Mode]
[Ladder Mode] [List Mode]
Step
Instruction
Device