EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC Q Series

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #684 background imageLoading...
Page #684 background image
7-310
BCOS(P)
7.12.30 BCD type COS operations (BCOS(P))
BCOS(P)
Function
(1) Calculates COS (cosine) value of value (angle) designated by , then stores the sign for
the operation result in the word device designated by , and the operation result in the
word device designated by +1 and +2.
(2) The value designated at is a BCD value which can be between 0 and 360 degrees
(in units of degrees).
(3) The sign for the operation result stored in will be "0" if the result is a positive value, and
"1" if the result is a negative value.
(4) The operation results stored in +1 and +2 are BCD values between 1.000 and 1.000.
(5) Operation results are rounded off from the fifth decimal place.
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.
• The data designated by is not a BCD value. (Error code: 4100)
• The data designated by is not in the range of from 0 to 360. (Error code: 4100)
• The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU, LCPU.) (Error code: 4101)
: Data of which the COS (cosine) value is obtained or head number of the devices where the data is stored
(BCD 4 digits)
: Head number of the devices where the operation result will be stored (BCD 4 digits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– –– ––
Process
High
performance
Redundant
Universal
Basic
LCPU
BCOS
Command
Command
BCOSP
BCOSP
BCOS S D
S D
S
D
S
D
S
D
D D
+2
D
S
Integer part Decimal fraction part
.
D
Sign
COS
+1
D
S
D
D D
S
S
D

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals