Mitsubishi Electric MELSEC-Q/L Programming Manual page 274

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
When values other than 0 to 9 are specified to any digits of (S).
The error above can be suppressed by turning ON SM722.
However, the instruction is not executed regardless of whether SM722 is turned ON or OFF if the designated value is out of
the available range.
For the BINP/DBINP instruction, the next operation will not be performed until the command (execution condition) is turned
from OFF to ON regardless of the presence/absence of an error.
Program example
• The following program converts the BCD data at X10 to X1B to BIN when X8 is ON, and stores it at D8.
Can be used
in other purposes.
Input
power supply
Programmable Controller input module
[Ladder Mode]
• The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores it at D0 and D1. (Addition of
the BIN data converted from BCD at X20 to X37 and the BIN data converted from BCD at X10 to X1F)
X37 to X34
X33 to X30
X2F to X2C
[Ladder Mode]
If the data set at X10 to X37 is a BCD value which exceeds 2147483647, the value at D0 and D1 will be a negative value,
because it exceeds the range of numerical values that can be handled by a 32-bit device.
6 BASIC INSTRUCTIONS
272
6.3 Data Conversion Instructions
BCD digital switch
X2B to X28
X27 to X24
X23 to X20
Programmable Controller Output Module
Q00J/
Q00/
Q01
BCD digital switch
[List Mode]
Step
Instruction
X1F to X1C
X1B to X18
X17 to X14
X13 to X10
[List Mode]
Instruction
Step
QnH
QnPH
QnPRH
Device
Input power supply
Device
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents