
290
Command Overview
Section 6-2
6-2-2
Command Format
The following notation is used for the format.
Simple
arithmetic
operations
ASSIGN
=
@ M
Assigns values to variables.
Result assigned.
ADD
+
@ x
Performs addition.
Result assigned.
SUBTRACT
−
@ x
Performs subtraction.
Result assigned.
MULTIPLY
*
@ x
Performs multiplication
Result assigned.
DIVIDE
/
@ x
Performs division.
Result assigned.
REMAINDER
%
@ x
Finds the remainder of a division
operation.
Result assigned.
EXPONENT
^
@ x
Applies exponents.
Result assigned.
Logic oper-
ations
OR (LOGICAL OR)
|
@ x
Calculates logical OR.
Result assigned.
XOR (LOGICAL
EXCLUSIVE OR)
~
@ x
Calculates logical exclusive OR.
Result assigned.
AND (LOGICAL
AND)
&
@ x
Calculates logical AND.
Result assigned.
NOT (REVERSE)
!
@ x
Reverses bits.
Result assigned.
Functions
ABSOLUTE VALUE
ABS
@ x
Finds the absolute value.
Result assigned.
SINE
SIN
@ x
Finds the sine.
Result assigned.
COSINE
COS
@ x
Finds the cosine.
Result assigned.
TANGENT
TAN
@ x
Finds the tangent.
Result assigned.
ARC SINE
ASIN
@ x
Finds the arc sine.
Result assigned.
ARC COSINE
ACOS
@ x
Finds the arc cosine.
Result assigned.
ARC TANGENT
ATAN
@ x
Finds the arc tangent.
Result assigned.
SQUARE ROOT
SQR
@ x
Finds the square root.
Result assigned.
EXPONENT
EXP
@ x
Finds the exponent.
Result assigned.
NATURAL LOGA-
RITHM
LOG
@ x
Finds the natural logarithm.
Result assigned.
DECIMAL
FRAC
@ x
Finds the decimal portion.
Result assigned.
SIGN
SGN
@ x
Returns 1 for 0 or greater, and -1
for negative values.
Result assigned.
Bit opera-
tions
SPECIFIED BIT ON
SET
@ x
Turns ON specified bits.
Bit operation com-
pleted.
SPECIFIED BIT OFF RESET
@ x
Turns OFF specified bits.
Bit operation com-
pleted.
SHIFT RIGHT
SFTR
@ M
Shifts to right for specified
amount.
Shift completed.
SHIFT LEFT
SFTL
@ M
Shifts to left for specified
amount.
Shift completed.
Data opera-
tions
BCD-TO-BIN
BIN
@ x
Converts BCD data to BIN data.
Result assigned.
BIN-TO-BCD
BCD
@ x
Converts BIN data to BCD data.
Result assigned.
BLOCK TRANSFER
XFER
@ M
Transfers data block.
All data transferred.
CLEAR
CLEAR
@ M
Clears data block to zero.
All data cleared.
Classifica-
tion
Command/func-
tion name
Code
Applicable
task
Summary
Completion condi-
tion (Proceed to
next block)
Motion
Symbol
Meaning
<>
Indicates the content, data
{ }
Optional operand, omissible
---N---
The operand that can be specified up to the number shown.
_
Required en quad
Содержание 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 ...