550
BACOS, BACOSP
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program performs a COS
-1
operation on the sign (positive when X0 is OFF, and negative when X0 is ON),
the BCD 1-digit integer part from X30 to X33 and the BCD 4-digit decimal fraction part from X20 to X2F, and outputs the
calculated angle in 4 BCD digits from Y40 to Y4F.
[Ladder Mode]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The operation data specified in is not a BCD value.
The operation data specified in is not in the range from -1.0000 to
1.0000.
––
4101
The points of the device specified in exceed those of the
corresponding device.
–– –– –– ––
S
S
S
Turns M0 ON when D1>1 or D1=1 and D2 0
Sets the decimal fraction part of a COS value ( )
Sets the sign of a COS value ( )
Sets the integer part of a COS value ( )
Executes COS
-1
operation and outputs
the result of operation to Y40 to Y4F ( )
1
2
3
4
Step Instruction Device