beautypg.com

Hitachi NJI-350B User Manual

Page 148

background image

Chapter 5 Instruction Specifications

5-98

Item number

Application instructions-25

Name

Distribute

Ladder format

Condition code

Processing time (

µs)

Remark

R7F4

R7F3

R7F2

R7F1

R7F0

Average Maximum

DIST (d, s, n)

DER

ERR

SD

V

C

z

z

z

z

Instruction format

Number of steps

Condition

Steps

As per the table

below.

DIST (d, s, n)

4

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

o

nstant

Other

d

Distribution result write
destination head I/O

{

s

I/O to be distributed

{

{

{

{

{

n

Number of words to be
distributed

{ n=0 to 4

Function

• Distributes s into four bit sections and sets to the lower four bits of the n words starting from d.
• The upper 12 bits of the range d to d + n – 1 will be “0.”
• The value of s will be retained even if DIST is executed.
• Use this instruction so that d + n - 1 does not exceed the I/O range (WRFFF and WM3FF). If it exceeds the I/O range, DER

is equal to '1' and the distribution data for s will be set in the lower four bits within the range between d and the I/O.

d

d+1

d+2

d+3

B1

B2

B3

B4

B4

B3

B2

B1

0

0

0

0

0

0

0

0

s

4 bits

Upper digits

Lower digits

When n = 4:

Notes

• When n=0, it is not executed.

DI

S

T

(d,
s

, n)

Processing time (

µs)

n

Average

Maximum

0

62

1

87

2

90

3

92

4

94