Operators; Conditional Expressions - Hitachi SJ700-2 Series Instruction Manual

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

Advertisement

Chapter 5 Instruction Words

5.3 Operators

You can describe the following dyadic operations using the operators:
<variable 1> = <variable 2> +
<variable 1> = <variable 2> -
<variable 1> = <variable 2> *
<variable 1> = <variable 2> /
<variable 1> = <variable 2> mod
<variable 1> =
<variable 1> =
<variable 1> = <variable 2> or
<variable 1> = <variable 2> and
<variable 1> = <variable 2> xor
<variable 1> =
Note 1: <variable 2> can be a constant ranging from 0 to 127.
Note 2: <variable 3> can be a constant ranging from -2

5.4 Conditional Expressions

You can use the following conditional expressions (as <condition>) in instruction statements:
Format
<variable 1>
<variable 1>
<variable 1>
<variable 1>
<variable 1>
<variable 1>
Note: <variable 1> and <variable 2> can be constants ranging from 0 to 127.
Format
<variable 3>
<variable 3>
<variable 3>
<variable 3>
<variable 3>
abs
<variable 3>
<variable 3>
<variable 3>
<variable 3>
<variable 3>
not
<variable 3>
=
<variable 2>
<
<variable 2>
<=
<variable 2>
>
<variable 2>
>=
<variable 2>
<>
<variable 2>
Addition
Subtraction
Multiplication
Division
Remainder
Absolute value
Substitution
OR (logical addition)
AND (logical product)
XOR (exclusive-OR)
NOT (negation)
31
31
to 2
-1.
"True" when <variable 1> is equal to <variable 2>
"True" when <variable 1> is less than <variable 2>
"True" when <variable 1> is not greater than <variable 2>
"True" when <variable 1> is greater than <variable 2>
"True" when <variable 1> is not less than <variable 2>
"True" when <variable 1> is not equal to <variable 2>
5 - 14
Description
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents