Bit Operation; Frac; Sgn - Omron SYSMAC CS1G Operation Manual

Motion control unit
Table of Contents

Advertisement

Command Details
Notation
Function
ACOS
ARC COSINE
ATAN
ARC TANGENT Finds the arc tangent of the specified data. (Units: [deg])
SQR
SQUARE ROOT Finds the square root of the specified data.
EXP
EXPONENT
LOG
NATURAL LOG-
ARITHM

FRAC

DECIMAL

SGN

SIGN
Precaution for Handling the Data Types
1,2,3...
6-3-9

Bit Operation

Specified Bit ON/OFF
(SET/RESET)
Command type
Format
Operand)
Operand
Setting range
First term
Variable
Description
Finds the arc cosine of the specified data. (Units: [deg])
The specified data is real number type only.
The specified data is real number type only.
Finds the exponent of the specified data.
Finds the natural logarithm of the specified data. (Base: e)
Extracts the decimal portion of the specified data.
Extracts the sign of the specified data.
Value of specified data ≥ 0 → 1
Value of specified data < 0 → −1
• 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.
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.
According to the result of logic operation expression, the SET/RST command
turns ON or OFF the specified bit of the specified variable.
SET:
Not executed as an independent command (no type).
RESET: Not executed as an independent command (no type).
<First term> = SET <logic operation expression>;
<First term> = RESET <logic operation expression>;
Ex: #MB01000 = SET #MB01001 & #MB01002;
Decimal
Bit
No
Yes
• 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.
Description
Variable specification
Word
Long
Real
word
number
No
No
No
Section 6-3
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
333

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs1w-mch71Sysmac cs seriesSysmac cs1h

Table of Contents