Instruction Set
Compute 3-14
compute instructions continued...
Instruction Description
Arc Tangent
ATN
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
When the input conditions are true, take the arc tangent of the Source (F8:21) and store the
result in the Destination (F8:22). The Source is interpreted as radians.
Average
AVE
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
Status Bits:
EN-Enable
DN-Done Bit
ER-Error Bit
When the input conditions go from false-to-true, add N7:1, N7:2, N7:3, and N7:4. Divide the
sum by 4 and store the result in N7:0.
ARCTANGENT
Source F8:21
0.7853982
Destination F8:22
0.6657737
ATN
Status Bit Description
Calways resets
V sets if overflow is generated; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets
AVERAGE FILE
File #N7:1
Dest N7:0
Control R6:0
Length 4
Position 0
AVE
Status Bit Description
Calways resets
V sets if overflow is generated; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets
Comments to this Manuals