5 - 33
Project name QB-17
Program name MAIN
X4
0
D2
K1000MOVP
X5
3
D
3
S2
X6
7
D3
K50D2-P
D
S1
4
D2
K10-P
S
3
● Every time the input condition is turned on, the content of the device specified in
S
is subtracted from the device specified in
D
and the result is stored in the
device specified in
D
.
D
D2
-
S
(10)
→
D
D2
(Input condition)
First ON
Second ON
Third ON
1000 (example)
990
980
-
-
-
10
10
10
→
→
→
990
980
970
The content of
D2 is changed.
4 ● When the input condition is turned on, the content of the device specified in
S2
is
subtracted from the content of the device specified in
S1
and the result is stored
in the device specified in
D
.
S1
D2
-
S2
(50)
→
D
D3
(Input condition)
ON
970
(Assumption)
-
50
→
920
The content of D2 is not changed.
Applicable device
Internal
device
(system or
user)
File
register
MELSECNET/
10 (H) Direct
Jn\
Index
register
Constant
Pointer
Level
Bit Word R Bit Word
Intelligent
function
module
Un\G
Z K H P I N
Digit
Number of basic
steps
S
S1
S2
S1
Addition/subtraction
instruction
S D
DS2
Addition/subtraction
instruction
D
K1
to
K4
3
4
The number of basic steps is four for
S1
D
S2
.