Bcd Type Sin Operation - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

BCD type SIN operation

BSIN(P)
Basic
High
Process
performance
(S): Data of which the SIN (sine) value is obtained or the number of the device where the data is stored (BCD 4 digits)
(D): Head number of the devices where the operation result will be stored (BCD 4 digits)
Setting
Internal device
data
Bit
(S)
(D)
Processing details
• Calculates the SIN (sine) value of value (angle) designated by (S), and stores the sign of the operation result in the device
designated at (D), and the operation result in the devices designated at (D)+1 and (D)+2.
D
SIN
S
Sign
• The value designated at (S) is a BCD value which can be between 0 and 360 degrees (in units of degrees).
• The sign for the operation result stored in (D) will be "0" if the result is a positive value, and "1" if the result is a negative
value.
• The operation results stored in (D)+1 and (D)+2 are BCD values within the range of -1.0000 and 1.0000.
• Operation results are rounded off to four decimal places.
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.
Error
Error details
code
4100
The data specified in (S) is not a BCD value.
The data specified in (S) is not within the range from 0 to 360.
4101
The points of the device specified in (D) exceeds those of the corresponding
device.
7 APPLICATION INSTRUCTIONS
650
7.12 Special Function Instructions
Redundant Universal
LCPU
BSIN
BSINP
R, ZR
Word
D
+ 1
D
+ 2
Integer part
Decimal fraction part
.
Command
Command
J\
Bit
Word
Q00J/
Q00/
Q01
S
D
BSIN
BSINP
S
D
U\G
Zn
Constant
K, H
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents