Chapter 5 PLC Functional Code
51
Ⅰ
Programming
Data length
specification
Format
specification
0
0
0
:
Constant
1
:
Address
1
:
1 byte length data
2
:
2 bytes length data
Fig. 5-30-2
S1
:
Address containing the augend
S2
:
Length specification determines the format of the addend.
S3
:
Specify the address to contain the result of output operation.
Output:
W=0
:
Operation correct.
W=1
:
Operation incorrect.
When W=1, the result of addition exceeds the specified data length.
5.31 SUB
(
Binary Subtraction
)
Function:
This instruction executes the subtraction operation in the binary format of 1 or 2 bytes. In the
operation result register, operation data is set besides the numerical data representing the operation.
A required number of bytes is necessary to store the subtrahend, and the result.
Format:
SUB
RST
ACT
Length1
Format
specification
S1
Menuemd
address
S2
subtrahend
(address or
constant )
S3
Operation
result
output
address
(
W
)
Fig. 5-31-1
Control conditions:
Reset (RST)
:
RST=0
:
Release reset.
RST=1
:
Reset. W=0.
Activation instruction (ACT)
:
ACT
=
0
:
Do not execute SUB. W does not change.
ACT
=
1
:
Execute SUB.
Parameter:
Содержание 980TC3 Series
Страница 13: ...1 Programming Ⅰ Programming Ⅰ ...
Страница 14: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 2 一 Programming ...
Страница 24: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 12 一 Programming ...
Страница 32: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 20 一 Programming ...
Страница 71: ...59 Operation Ⅱ Ⅱ Operation ...
Страница 72: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 60 Ⅱ Operation ...
Страница 86: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 74 Ⅱ Operation ...
Страница 96: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 84 Ⅱ Operation ...
Страница 97: ...85 III Ⅲ Function III Function ...
Страница 98: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 86 Ⅲ Function ...
Страница 114: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 102 Ⅲ Function ...
Страница 136: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 124 Ⅲ Function ...
Страница 138: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 126 Ⅲ Function ...
Страница 140: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 128 Ⅲ Function ...
Страница 148: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 136 Ⅲ Function ...
Страница 149: ...137 Installation and Connection Ⅳ Ⅳ Installation and Connection ...
Страница 150: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 138 Installation and Connection Ⅳ ...
Страница 156: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 144 Installation and Connection Ⅳ ...
Страница 208: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 196 Appendix Appendix ...
Страница 209: ...197 附 录 Appendix ...
Страница 218: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 206 Appendix ...
Страница 226: ...GSK980TC3 Series Bus Turning CNC system PLC Installation and Connection User Manual 214 Appendix ...