Mitsubishi MELSEC QS Series Programming Manual page 124

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

BIN(P), DBIN(P)
(2) 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-X34
[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-26
6.3 Data Conversion Instructions
6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P), DBIN(P))
BCD digital switch
X33-X30
X2F-X2C
X2B-X28
X27-X24
PLC output module
X23-X20
X1F-X1C
X1B-X18
X17-X14
Input power supply
X13-X10

Advertisement

Table of Contents
loading

Table of Contents