Chapter 5 Instruction Specifications

Program example

X01001 DIF0

DIST (WR0000, WX0000, 4)

LD X00001 AND DIF0

[

DIST (WR0000, WX0000, 4)

]

Program description

A 4-bit 4-digit Digit switch is connected to the WX0000, and the data for each digit is stored in WR0000 to WR0003 as independent data.

Input

28-point type

Output

WR0003

=H0009

WR0002

=H0007

WR0001

=H0004

WR0000

=H0006

9

7

4

6

X015 to X012

X011 to X008

X007 to X004 X003 to X000

DIST (d, s, n)

5-99

Page 149
Image 149
Hitachi NJI-350B manual X01001 DIF0 Dist WR0000, WX0000 LD X00001 and DIF0