Mitsubishi Electric M800VW Series Programming Manual page 237

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
BIN, BINP, DBIN, DBINP: Conversion from BCD 4-digit and 8-digit data to BIN data
Setting
Bit devices
data
X
Y
M
L
F
S
D
△ : This is not available with DBIN (P).
[Instruction symbol] [Execution condition]
BIN,DBIN
BINP,DBINP
 Setting data
Setting data
S
Head No. of the device where BCD data is stored
D
Head No. of the device that will store BIN data
 Functions
BIN
 Converts BCD data (0 to 9999) at device designated by "D" to BIN data, and stores at the device designated by "D".
8000 4000 2000 1000 800
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
S BCD 9999
Thousands
digits
3276816384 8192 4096 2048 1024 512
0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
D BIN 9999
DBIN
 Converts BCD data (0 to 99999999) at device designated by "S" to BIN data, and stores at the device designated by "D".
S BCD 99999999
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Ten millions
digits
D BIN 99999999
0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Always set these to 0
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
400
200
100
80
40
20
Hundreds
Tens digits
digits
BIN conversion
256
128
64
32
Always set these to 0
S+1
Millions
Hundred
Ten
digits
thousands
thousands
digits
digits
D+1
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
10
8
4
2
1
Ones
digits
16
8
4
2
1
S
Thousands
Hundreds
Tens digitsOnes digits
digits
digits
BIN conversions
D
216
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs BIN/DBIN
S
D
P
S
D
Data type
BCD 4/8 digits
BIN 16/32 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents