Omron CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 Manual page 351

Motion control unit
Hide thumbs Also See for CS1W-MCH71 MOTION CONTROL UNIT - 09-2004:
Table of Contents

Advertisement

Command Details
Simple Arithmetic
Operations (+, −, *, /,
%, ^)
Command type
Format
Operand
Operand
Setting range
First term
Variable
Second term
Operation
numerical value
range (See
note.)
Third term
Operation
numerical value
range (See
note.)
Note
Description
328
This command executes the specified simple arithmetic operations.
+, − , *, /, %, and ^: Not executed as an independent command (no type).
<First term> = <Second term> Operator <Third term>;
Ex: #MF1000 = #MF0010 + #MF0012;
Decimal
Bit
No
No
Yes
No
Yes
No
Both immediate values and variables can use the values within the ranges
defined for each type.
• Integer immediate value: − 2147483648 to 2147483647
• Decimal immediate value: − 2147483648. to 2147483647.
• Bit type: 0, 1
• Word type: − 32768 to 32767
• Long word type: − 2147483648 to 2147483647
• Real number type: ± (1.175E-38 to 3.402E+38), 0
• Indirect specification type: 0 to 10239
• The following operators are used in operations.
Operator
Function
+
Add
Subtract
*
Multiply
/
Divide
%
Reminder
^
Exponent
• 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.
Variable specification
Word
Long
Real
word
number
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Description
Adds the 2nd and 3rd terms, and assigns the result
to the 1st term.
Subtracts the 3rd term from the 2nd, and assigns the
result to the 1st term.
Multiplies the 2nd and 3rd terms, and assigns the
result to the 1st term.
Divides the 2nd term by the 3rd, and assigns the
result for the 1st term.
Remainder from the division of the 2nd term by the
3rd is assigned to the 1st term.
Raises the 2nd and the 3rd terms, and assigns the
result for the 1st.
Section 6-3
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
Yes
No
Yes
No

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Sysmac cs-series

Table of Contents