Mitsubishi Electric Q173CPU Programming Manual page 32

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

1 OVERVIEW
Classification
Symbol
=
Substitution
+
Addition
-
Subtraction
Binary operation
*
Multiplication
/
Division
%
Remainder
~
Bit inversion (complement)
&
Bit logical AND
|
Bit logical OR
Bit operation
^
Bit exclusive OR
>>
Bit right shift
<<
Bit left shift
Sign
-
Sign inversion (complement of 2)
SIN
Sine
COS
Cosine
TAN
Tangent
ASIN
Arcsine
ACOS
Arccosine
ATAN
Arctangent
SQRT
Square root
Standard function
LN
Natural logarithm
EXP
Exponential operation
ABS
Absolute value
RND
Round-off
FIX
Round-down
FUP
Round-up
BCD
BIN
BIN
BCD
SHORT Convert into 16-bit integer type (signed)
USHORT Convert into 16-bit integer type (unsigned)
LONG
Convert into 32-bit integer type (signed)
ULONG Convert into 32-bit integer type (unsigned)
Type conversion
Regard as signed data and convert into 64-
FLOAT
bit floating point type
Regard as unsigned data and convert into
UFLOAT
64-bit floating point type
(None)
ON (normally open contact)
Bit device status
!
OFF (normally closed contact)
SET
Device set
RST
Device reset
Bit device control
DOUT
Device output
DIN
Device input
OUT
Bit device output
(2) Table of the operation control/transition instruction
Function
BIN conversion
BCD conversion
Format
Basic steps
(D)=(S)
(S1)+(S2)
(S1)-(S2)
(S1)*(S2)
(S1)/(S2)
(S1)%(S2)
~ (S)
(S1)&(S2)
(S1)|(S2)
(S1)^(S2)
(S1)>>(S2)
(S1)<<(S2)
-(S)
SIN(S)
COS(S)
TAN(S)
ASIN(S)
ACOS(S)
ATAN(S)
SQRT(S)
LN(S)
EXP(S)
ABS(S)
RND(S)
FIX(S)
FUP(S)
BIN(S)
BCD(S)
SHORT(S)
USHORT(S)
LONG(S)
ULONG(S)
FLOAT(S)
UFLOAT(S)
(S)
!(S)
SET(D)
SET(D)= (conditional
expression)
RST(D)
RST(D)=(conditional
expression)
DOUT(D),(S)
DIN(D),(S)
OUT(D)=(conditional
expression)
1 - 11
Usable step
Y/N
transition's
conditional
F/FS
G
expression
4
4
4
4
4
4
2
4
4
4
4
4
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
4
3
4
4
4
4
Section of
reference
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
7.5.1
7.5.2
7.5.3
7.5.4
7.5.5
7.5.6
7.5.7
7.6.1
7.6.2
7.6.3
7.6.4
7.6.5
7.6.6
7.6.7
7.6.8
7.6.9
7.6.10
7.6.11
7.6.12
7.6.13
7.6.14
7.6.15
7.7.1
7.7.2
7.7.3
7.7.4
7.7.5
7.7.6
7.8.1
7.8.2
7.9.1
7.9.2
7.9.3
7.9.4
7.9.5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents