Mitsubishi Electric MELSEC-Q/L Programming Manual page 288

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
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.
Program example
• The following program converts the Gray code data at D100 when X10 is ON to BIN data, and stores the result at D200.
[Ladder Mode]
• 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.
[Ladder Mode]
6 BASIC INSTRUCTIONS
286
6.3 Data Conversion Instructions
Q00J/
QnH
Q00/
Q01
[List Mode]
Step
Instruction
[List Mode]
Step
Instruction
QnPH
QnPRH
QnU
Device
Device
LCPU

Advertisement

Table of Contents
loading

Table of Contents