Mitsubishi Electric M800VW Series Programming Manual page 432

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
BSIN, BSINP: BCD type SIN operation
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BSIN
BSINP
 Setting data
Setting data
Data for which the SIN (sine) value is obtained or the first number of the device
S
where data is stored.
D
The first number of the device to store the operation result.
 Functions
BSIN
 Returns the SIN (sine) value of the value (angle) designated by (S) and stores the sign of the operation result in the device
designated by (D), and the operation result in the devices designated by (D+1) and (D+2).
Sign
SIN S
=
 BCD values from 0 to 360 degrees (units of degrees) can be designated by (S).
 The sign for the operation result stored in (D) will be "0" if the operation result is a positive value, and "1" if the operation
result is a negative value.
 The operation result stored in (D+1) and (D+2) are BCD values within the range of -1.0000 to 1.0000.
 Operation results are rounded off to four decimal places.
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The data designated by (S) is not a BCD value. (Error code: 34)
- The data designated by (S) is outside the range of 0 to 360. (Error code: 34)
- The range of the device designated by (D) exceeds the relevant device range. (Error code: 82)
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
D
D+1
D+2
Decimal
Integer part
.
fraction part
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
411
Digit
Pointer
designa-
Index
tion
H
P
indicates the sign "BSIN".
S
D
P
S
D
Data type
BCD 4-digit
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents