![Omron CS1W-MCH71 - Скачать руководство пользователя страница 412](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367412.webp)
367
Command Details
Section 6-3
• If the types are different on both sides, the type on the right is converted
to that of the left.
• If the value on the right side cannot be stored in the left side, the alarm
[2005h: Operation overflow] will occur.
Precaution for Handling the Data Types
1,2,3...
1.
Bit type
• When the bit type is used, all the operands must be the bit type.
• The integer immediate values 0 and 1 are treated as the bit type.
2.
Types other than the bit type
• Types other than the bit type are prioritized in the following order
Real number type > Long word type > Word type
• Operation is performed in the type of the highest priority, and the op-
eration result will be stored after being converted to the type on the left.
• The integer immediate value is treated as long word type, and the dec-
imal immediate value is treated as real number type.
6-3-9
Bit Operation
Specified Bit ON/OFF
(SET/RESET)
According to the result of logic operation expression, the SET/RST command
turns ON or OFF the specified bit of the specified variable.
Command type
SET:
Not executed as an independent command (no type).
RESET: Not executed as an independent command (no type).
Format
<First term> = SET <logic operation expression>;
<First term> = RESET <logic operation expression>;
Ex: #MB01000 = SET #MB01001 & #MB01002;
Operand
)
Description
• If the logic operation expression on the right side is true, SET command
turns ON the bit specified on the left side.
• If the logic operation expression on the right side is true, RESET com-
mand turns OFF the bit specified on the left side.
ACOS
ARC COSINE
Finds the arc cosine of the specified data. (Units: [deg])
The specified data is real number type only.
ATAN
ARC TANGENT
Finds the arc tangent of the specified data. (Units: [deg])
The specified data is real number type only.
SQR
SQUARE ROOT Finds the square root of the specified data.
EXP
EXPONENT
Finds the exponent of the specified data.
LOG
NATURAL LOG-
ARITHM
Finds the natural logarithm of the specified data. (Base: e)
FRAC
DECIMAL
Extracts the decimal portion of the specified data.
SGN
SIGN
Extracts the sign of the specified data.
Value of specified data
≥
0
→
1
Value of specified data < 0
→
−
1
Notation
Function
Description
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
First term
Variable
No
Yes
No
No
No
No
No
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...