Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
7  APPLICATION INSTRUCTIONS
7.12  Special Function Instructions
659
7
BCD type arc cosine operation
BACOS(P)
Processing details
 • Returns the COS
-1
 (inverse cosine) value of the value designated by (S), and stores operation results at device designated 
by (D).
 • A sign for the operation data is set at (S). If the operation data is a positive value, this is set at "0", and if it is a negative 
value, it is set at "1".
 • The part before the decimal point and fraction part are stored at (S)+1 and (S)+2 respectively, as BCD values. (Settings can 
be between 0 and 1.0000.)
 • The operation results stored at (D) will be a BCD value in the range of between 0 and 180
 (degree units).
 • Calculation results are a value from which the decimal fraction part has been rounded.
Operation error
 • In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(S):   Number of the device where data of which the COS
-1
 (inverse cosine) value is obtained is stored (BCD 4 digits)
(D):   Head number of the devices where the operation result will be stored (BCD 4 digits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit
Word
Bit
Word
(S)
(D)
Error 
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH
QnPRH QnU
LCPU
4100
The operation data specified in (S) is not a BCD value.
The operation data specified in (S) is not in the range from -1.0000 to 
1.0000.
4101
The points of the device specified in (S) exceed those of the corresponding 
device.
Process
High
performance
Redundant Universal
LCPU
Basic
BACOS
Command
Command
BACOSP
BACOSP
BACOS
S
D
S
D
COS
+2
Integer part
Decimal fraction part
.
Sign
+1
)
(
D
S
S
S
1