Mitsubishi Electric M800VW Series Programming Manual page 238

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
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- When values other than 0 to 9 are designated to any digits of "S". (Error code: 81)
 Program example
 The following program converts the BCD data at Y10 to Y1B to BIN when M40 is ON, and stores it at D8.
Can be used
at other
M40
0
4
 The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores it at D0 and D1.
X37 〜 X34 X33 〜 X30 X2F 〜 X2C X2B 〜 X28 X27 〜 X24 X23 〜 X20 X1F 〜 X1C X1B 〜 X18 X17 〜 X14 X13 〜 X10
X8
0
17
0 0 1 0
0 0 1 1
[Ladder mode]
BINP K3Y10 D8
END
BCD digital switch
[Ladder mode]
DBINP
K6X20 D9
D* D9 D10000 D5
BIN K4X10 D3
MOV K0
D+ D3
D5
END
Digital switch
BCD
0 1 1 0
Steps
0
1
4
Steps
0
1
4
8
D4
11
D0
13
17
217
[List mode]
Inst.
Device
LD
M40
BINP
K3Y10
D8
END
[List mode]
Inst.
Device
LD
X8
DBINP
K6X20
D9
D*
D9
D10000
D5
BIN
K4X10
D3
MOVK0
D4
D+
D3
D5
D0
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents