26Cos Operation On Data In Bcd Format - Mitsubishi MELSEC-Q Series Programming Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

BCOS
7.12.26
COS operation on data in BCD format
BCOS(P)
Structured ladder
BCOS
EN
ENO
s
Input argument,
EN:
s:
Output argument,
ENO:
d:
Setting
data
s
d
Function
(1) Evaluates the cosine function on the value (angle) specified for
the operation result to the word device specified for
device specified for
(2) The value specified for
(in degrees).
(3) The sign for the operation result stored to
the result is a negative value.
(4) The operation results stored to
(5) The value of the operation result is rounded off at the fifth digit of decimal fraction.
7.12 Special Function Instructions
7-286
7.12.26 COS operation on data in BCD format
ST
ENO:=
BCOS
d
Executing condition
Data on which the cosine function is evaluated, or start
number of the device that stores data
Execution result
Start number of the device that stores the operation result
Internal device
R, ZR
Bit
Word
+1 and
d
d
d
COS
s
Sign
is a BCD value which can be between 0 and 360 degrees
s
P: Executing condition
instructions.
BCOS
(EN, s, d);
:Bit
:ANY16
:Bit
:Array of ANY16 (0..2)
J
\
U
\G
Bit
Word
, and the operation result to the word
d
+2.
d
+1
d
Integer part
Decimal fraction
.
will be 0 if the result is a positive value, and 1 if
d
+1 and
+2 are BCD values between
d
d
BCOS
Universal
UD
:
indicates any of the following
BCOSP
Constant
Zn
K, H
, then stores the sign of
s
+2
1.000 and 1.000.
High
Performance
Others

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents