7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
805
7
Calculating the arc tangent of BCD data
BATAN(P)
These instructions calculate the arc tangent of the angle specified by a BCD value.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=BATAN(EN,s,d);
ENO:=BATANP(EN,s,d);
FBD/LD
Instruction Execution condition
BATAN
BATANP
Operand Description Range Data type Data type (label)
(s) Start device containing the data used for arc tangent
calculation
0 to 9999 BCD 4-digit ANY16_ARRAY
(Number of elements: 3)
(d) Device for storing the operation result BCD 4-digit ANY16
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)