Hitachi NJI-350B User Manual

Page 114

Advertising
background image

Chapter 5 Instruction Specifications

5-64

Item number

Arithmetic instructions-19

Name

< Relational expression

Ladder format

Condition code

Processing time (

µs)

Remark

R7F4

R7F3

R7F2

R7F1

R7F0

Average Maximum

d = s1 < s2

DER

ERR

SD

V

C

Upper case: W

z

z

z

z

z

40

Lower case: DW

Instruction format

Number of steps

Condition

Steps

d = s1 < s2

s is a word

4

70

s is a double word

6

Bit

Word

Double word

Usable I/O

X

Y

R,

M

TD, SS,

CU, CT

WX WY

WR,

WM TC DX DY

DR,

DM

C

onstant

Other

d

Substitution destination

{

{

s1 Comparand

{

{

{

{

{

{

{

{

s2 Relational number

{

{

{

{

{

{

{

{

Function

• Substitutes “1” when s1 is less than s2 and otherwise “0” into d, assuming s1 and s2 as binary data.

Notes

• The combinations of d, s1 and s2 are as follows:

d

s1

s2

Bit

Word

Word

Bit

Double word

Double word

Program example

R0 = TC100 < TC101

[
R0 = TC100 < TC101

]

Program description

• When TC100 < TC101, R0 is set to “1.” Otherwise, R0 is reset to “0.”

(TC n is the progress value of the no. n timer or counter.)

d =

s1

<

s2

Advertising