GSK218M CNC System Connection and PLC Manual
61
Output:
W=0: Operation correct.
W=1: Operation incorrect.
When W=1, the result of subtraction exceeds the specified data length.
5.27 ANDF(logical and)
Function:
The ANDF instruction ANDFs the contents of address A with a constant( or the contents of address
B), and stores the result at address C.
Format:
Control conditions:
ACT=0 : The ANDF instructin is not executed.
ACT=1 : The ANDF instruction is executed.
Parameter:
Length :Specify a data length (1 or 2 bytes), and an input data format(constant or
addressspecification).
S1 : Input data to be ANDFed. The data that is held starting at this address and
hasthe data length specified in Length format specification is treated as input
data.
S2 :Input data to be ANDFed with. When address specification is selected in
formatspecification, the data that is held starting at this address and has the
data length specified in Length format specification is treated as input data.
ANDF
Length
Format
specification
S1
Address A
S2
Constant or
address B
S3
Address C
O O
Data length specification
1:1byte length data
2:2 bytes length data
Format specification
0:Constant
1:Address
ACT