7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
797
7
Calculating the cosine of BCD data
BCOS(P)
These instructions calculate the cosine of the angle specified by a BCD value.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=BCOS(EN,s,d);
ENO:=BCOSP(EN,s,d);
FBD/LD
Instruction Execution condition
BCOS
BCOSP
Operand Description Range Data type Data type (label)
(s) Data used for cosine calculation, or the device containing
the data
0 to 9999 BCD 4-digit ANY16
(d) Start device for storing the operation result BCD 4-digit ANY16_ARRAY
(Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)