169
Outline
Subtracts the 16-bit data from the minuend and stores the result in the
specified area.
Program example
■
Operands
■
Explanation of example
• Subtracts the contents of data register DT2 from the contents of data register DT0 when trigger X0 turns ON. The
subtracted result is stored in word external output relay WY1.
Bit position
DT2
0 0 0 0
0 0 0 1
11
8
1 1 0 0
0 1 0 0
3
0
Subtrahend [S2]: K452
X0: ON
15
•
•
12
•
•
•
•
7
4
•
•
Bit position
WY1
0 0 0 0
0 0 0 1
11
8
1 0 1 1
1 0 0 1
3
0
Result [D]: K441
15
•
•
12
•
•
•
•
7
4
•
•
Bit position
DT0
0 0 0 0
0 0 1 1
11
8
0 1 1 1
1 1 0 1
3
0
Minuend [S1]: K893
15
•
•
12
•
•
•
•
7
4
•
•
–
Timer/Counter
EV
Relay
SV
WR
WY
WX
Operand
S1
A
A
A
A
A:
N/A: Not Available
Register
DT
A
IY
IX
A
A
H
K
A
A
Constant
Index
modifier
A
Index
register
Available
A
S2
A
A
A
A
A
A
A
A
A
A
A
N/A A
A
A
A
A
A
N/A N/A
A
A
D
F27
(–)
16-bit data [S1 – S2
→
D]
Availability
Step
7
All series
6-3. Description of High-level Instructions
16-bit equivalent constant or 16-bit area (for minuend)
16-bit equivalent constant or 16-bit area (for subtrahend)
16-bit area (for result)
Ladder Diagram
Boolean Non-ladder
Address
Instruction
10
X0
F27 – , DT 0 , DT 2 , WY1
S1
D
Trigger
S2
10
11
ST
X
0
F
27 (– )
DT
0
DT
2
WY
1
S1
S2
D
Содержание FP1
Страница 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Страница 28: ...20 ...
Страница 98: ...90 ...
Страница 150: ...142 ...
Страница 208: ...200 ...
Страница 226: ...218 ...
Страница 280: ...272 ...