Hitachi NJI-350B User Manual

Page 146

Advertising
background image

Chapter 5 Instruction Specifications

5-96

Item number

Application instructions-24

Name

Unit

Ladder format

Condition code

Processing time (

µs)

Remark

R7F4

R7F3

R7F2

R7F1

R7F0

Average Maximum

UNIT (d, s, n)

DER

ERR

SD

V

C

z

z

z

z

Instruction format

Number of steps

Condition

Steps

As per the table

below.

UNIT (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

Unity result write
destination I/O

{

{

s

Unity destination head I/O

{

n

Numbers of words to be
united

{ n=0 to 4

Function

• Sets the values in the lower four bits of each of the n (1 to 4) words starting from s to the lower four bits of each word in d.
• If n is 1 to 3, the bits not set in d will be “0.”
• The data stored in s to s + n – 1 will be retained even if UNIT is executed.
• Use this instruction so that s + 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 lower four bits within the range between s and I/O will be set in d.

s

s+1

s+2

s+3

B1

B2

B3

B4

B4

B3

B2

B1

d

When n is 1 : B2 to B4 of d are 0
When n is 2 : B3 to B4 of d are 0
When n is 3 : B4 of d is 0

When n=4

Upper digits

Lower digits

4 bits

Ignored

Notes

• When n=0, it is not executed.
• When n>5, it is not executed.

UNI

T

(d, s,

n)

Processing time (

µs)

n

Average

Maximum

0

75

1

100

2

103

3

106

4

109

Advertising