User manual

Instruction Set
Compute 3-15
compute instructions continued...
Instruction Description
Clear
CLR
When the input conditions are true, clear BCD file 9, word 34 (set to zero).
Cosine
COS
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
When the input conditions are true, take the cosine of the Source (F8:13) and store the result in
the Destination (F8:14). The Source is interpreted as radians.
CLR
Dest D9:34
0000
CLR
Status Bit Description
Calways reset
Valways reset
Zalways set
Salways reset
COSINE
Source F8:13
0.7853982
Destination F8:14
0.7071068
COS
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