Mitsubishi Electric M800VW Series Programming Manual page 445

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.12 Other Function Instructions
 Program example
 In this program, D0 data is added to D2 data when M0 turns ON. The carry flag (SM12) is turned ON if the result exceeds
32767, and turned OFF if 32767 or less.
M0
0
5
> D2 D1
> D0 D1
M1
12
M1
17
22
[List mode]
Steps
Inst.
0
LD
1
+
5
LD>
8
OR>
11
OUT
12
LD
13
S.STC
17
LDI
18
S.CLC
22
END
IB-1501667-B
[Ladder mode]
+ D2 D0 D1
M1
S.STC
S.CLC
END
Device
M0
D2
D0
D1
D2
D1
D0
D1
M1
M1
M1
Add D2 to D0, and store the result in D1.
(D2+D0 -> D1)
Turn M1 ON when: (Summand) > (Addition
result) or (Augend) > (Added result)
Turn ON the carry flag when M1 turns ON
Turn OFF the carry flag when M1 turns OFF
424

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents