Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
Chapter Five PLC Function Code
55
V
o
lume
I Programming
Controllable condition:
Reset (RST):
RST=0: Release the resetting.
RST=1: Reset W=0.
Execution code (ACT):
ACT
=
0: Do not execute the SUB code, W keeps invariable.
ACT
=
1: Execute the SUB code.
Parameter:
Length: Data length specified (1 or 2 bytes) and the addend specifying method (constant or
address).
Fig. 5-31-2
S1 : Specify and store the minuend address.
S2 : The specifying method of the subtractor is determined by Length.
S3 : Specify and output the address of the operation result.
Output:
W=0: Normal operation.
W=1: Abnormal operation.
The subtraction result exceeds the specified data length, W=1.
5.32 ANDF (Bit-by-bit AND)
Function
This code is performed the AND with a constant (or the content from the address B) from the
content of the address A (or the one from the address B), and its result is stored to address C.
Format:
Fig. 5-32-1