Hitachi SJ700-2 Series Instruction Manual page 56

Easy-sequence programming software ezsq
Hide thumbs Also See for SJ700-2 Series:
Table of Contents

Advertisement

Chapter 5 Instruction Words
(2) Conditional expressions
The table below lists the conditional expressions that can be used for the <condition> parameters in
program control instructions.
Instructio
Mnemonic
n name
code
 
 
 
Comparis
on 
 
 
 
(3) Operational instructions
Instructio
Mnemonic
n name
code
<variable 1>
<variable 1>
Arithmetic
operation 
<variable 1>
<variable 1>
Remainde
<variable 1>
r
Absolute
<variable 1>
value
Substituti
<variable 1>
on
<variable 1>
<variable 1>
Logic
operation 
<variable 1>
<variable 1>
Instruction format
First
Second
argument
argument
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
<= 
constant> 
constant> 
<variable 2
<variable 3/
/constant> 
constant> 
<variable 2/
<variable 3/
>= 
constant> 
constant> 
<variable 2/
<variable 3/
<> 
constant> 
constant> 
Instruction format
First
Second
argument
argument
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
constant> 
constant> 
<variable 2/
<variable 3/
mod 
constant> 
constant> 
<variable 3/
 
abs 
constant> 
<variable 3/
 
 
constant> 
<variable 2/
<variable 3/
or 
constant> 
constant> 
<variable 2/
<variable 3/
and 
constant> 
constant> 
<variable 2/
<variable 3/
xor 
constant> 
constant> 
<variable 3/
 
not 
constant> 
Third
Fourth
argument
argument
argument
 
 
 
 
 
 
 
 
 
 
 
 
Third
Fourth
argument
argument
argument
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5 - 2
Description 
Fifth
"True" when <variable 2/constant> is equal
to <variable 3/constant>
"True" when <variable 2/constant> is less
than <variable 3/constant>
"True" when <variable 2/constant> is not
greater than <variable 3/constant>
"True" when <variable 2/constant> is
greater than <variable 3/constant>
"True" when <variable 2/constant> is not
less than <variable 3/constant>
"True" when <variable 2/constant> is not
equal to <variable 3/constant>
Description 
Fifth
Adds <variable 2/constant> and <variable
3/constant> and assigns the result to
<variable 1>.
Subtracts <variable 3/constant> from
<variable 2/constant> and assigns the
result to <variable 1>.
Multiplies <variable 2/constant> by
<variable 3/constant> and assigns the
result to <variable 1>.
Divides <variable 2/constant> by <variable
3/constant> and assigns the result to
<variable 1>.
Divides <variable 2/constant> by <variable
3/constant> and assigns the remainder to
<variable 1>.
Assigns the absolute value of <variable
3/constant> to <variable 1>.
Assigns <variable 3/constant> to <variable
1>.
Assigns the OR of <variable 2/constant>
and <variable 3/constant> to <variable 1>.
Assigns the AND of <variable 2/constant>
and <variable 3/constant> to <variable 1>.
Assigns the XOR of <variable 2/constant>
and <variable 3/constant> to <variable 1>.
Inverts the bits of <variable 3/constant> and
assigns the inverted bits to <variable 1>.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents