Chapter 5 Instruction Specifications

d = s

Program example

X00000 DIF0

WR0000 =WX0000

X00001 DIF1

WR0000(WM000)=WX0000

X00002 DIF2

WR0000 =WR0000(WM001)

X00003 DIF3

WR0000(WM000)=WR0000(WM001)

1]

 

2]

Array variables are used at the

 

substitution destination

3]

Array variables are used at the

 

substitution source

4]

Array variables are used at both

 

substitution destination and source

Program description

1]

The value of WX0000 is substituted into WR0000 at the leading edge of input X00000.

2]

The value of WX0000 is substituted into the WR number designated by WR0000 + WM000 at the leading edge of input

 

X00001.

 

1) When WM000 = H0010, it holds the same meaning as WR0010 = WX0000.

3]

The word number of the I/O advanced by the amount designated by WR0000 + WM001 due to the I/O assignment is

 

substituted into WR0000 at the leading edge of input X00002.

 

1) When WM001 = H0010, it hods the same meaning as WR0000 = WR0010.

4]

The I/O value designated by WR0000 + WM001 at the leading edge of input X00003 is substituted into the I/O of the value

 

designated by WR0000 + WM000.

 

Example) When WM000 = H0010 and WM001 = H0015, it holds the same meaning as WR0010 = WR0015.

5-46

Page 96
Image 96
Hitachi NJI-350B manual X00001, Substituted into WR0000 at the leading edge of input, Designated by WR0000 + WM000