Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-101
BKBIN(P)
1
2
3
4
4
6
7
8
6.3 Data conversion instructions
6.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))
Operation Error
(1) 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 n-bit range from the , , or device exceeds the range of that device.
(Error code: 4101)
The data n points at the device is outside the 0 to 9999 range.
(Error code: 4100)
The and devices overlap. (Error code: 4101)
Program Example
(1) The following program converts, when X20 is turned ON, the BCD data stored at D100 to
D102 to BIN and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]
[Operation]
S
D
S
S
D
Step
Instruction
Device
000111111001000
000111011110011
001001110000111
0
0
1
1 1 0 0 0 0 0 0 0 1 0 000 0 0
0 0 1 1 1 0 1 1 0 0 1 010 1 0
1 0 0 1 1 0 0 1 1 0 0 110 0 1
BIN conversion
(when D0=3)
D200 BIN 8080
D202 BIN 9999
D201 BIN 7654
D100 BCD 8080
D102 BCD 9999
D101 BCD 7654
8192
4096
2048
1024
512
256
128
64
32
16
8
4
2
1
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
4000
8000