Allen-Bradley PLC-5 User Manual page 309

Enhanced and ethernet plc-5 programmable controllers
Hide thumbs Also See for PLC-5:
Table of Contents

Advertisement

Instruction
Clear
CLR
CLR
CLR
Dest
D9:34
0000
Cosine
COS
COS
COSINE
Source
F8:13
0.7853982
Dest
F8:14
0.7071068
Instruction
Division
DIV
DIV
DIVIDE
Source A
N7:3
3
Source B
N7:4
1
Dest
N7:12
3
Instruction Set Quick Reference
Description
When the input conditions are true, clear decimal file 9, word 3
(set to zero).
Status
Description
Bit
C
always reset
V
always reset
Z
always set
S
always reset
When input conditions go true, take the cosine of the value
in F8:13 and store the result in F8:14.
Status
Description
Bit
C
always 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
Description
When the input conditions are true, divide the value in
Source A (N7:3) by the value in Source B (N7:4) and store
the result in the Destination (N7:12).
Status
Description
Bit
C
always resets
V
sets if division by zero or overflow;
otherwise resets
Z
sets if the result is zero;
otherwise resets; undefined if overflow is set
S
sets if the result is negative;
otherwise resets; undefined if overflow is set
Publication 1785-UM012D-EN-P - July 2005
D-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents