BEST (d, n)

Chapter 5 Instruction Specifications

Item number

Application instructions-1

 

 

Name

 

Bit set

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ladder format

 

 

 

 

 

 

Condition code

 

 

 

 

Processing time (s)

Remark

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R7F4

 

R7F3

 

R7F2

R7F1

 

R7F0

Average

Maximum

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BSET (d, n)

 

 

DER

 

ERR

 

SD

 

V

 

 

 

C

 

 

 

 

 

 

Upper case: W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26

 

 

Lower case: DW

 

 

 

 

 

 

z

 

 

z

 

 

z

 

z

 

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction format

 

 

 

 

 

 

Number of steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Condition

 

 

 

Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BSET (d, n)

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

35

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

Word

 

Double word

 

Constant

 

 

 

Usable I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Other

 

X

Y

M

 

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

 

 

 

 

 

 

 

R,

 

 

TD, SS,

 

 

 

 

WR,

 

 

 

 

DR,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

d

I/O to be set the bit

 

 

 

 

 

 

 

 

 

 

{

 

{

 

{

 

{

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

Bit location to be set

 

 

 

 

 

 

 

 

 

{

{

 

{

 

{

 

 

 

 

{

 

The constant is set in

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

decimal.

 

Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sets the nth bit in the I/O (word or double word) specified by d to “1.”

Other bit contents are unaltered.

 

 

 

 

 

 

 

 

 

 

d

 

 

 

 

 

 

 

. . . . . . . . . . . . . . . . . .

 

n+1

 

n n-1

. . . . . . . . . . . . . . . . . . . . . . . .

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

“1” is set.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If d is a word:

 

Designates the bit location depending on the contents (0 to 15) of the lower 4 bits (b3 to b0) of n (WX,

 

 

 

WY, WR, WM, TC). (Upper bits are ignored and considered as “0.”)

 

 

 

The n (constant) can be set to 0 to 15 (decimal).

 

 

 

 

If d is a double word:

 

Designates the bit location depending on the contents (0 to 31) of the lower 5 bits (b4 to b0) of n (WX,

 

 

 

WY, WR, WM, TC). (Upper bits are ignored and considered as “0.”)

 

 

 

The n (constant) can be set to 0 to 31 (decimal).

 

 

 

 

5-68

Page 118
Image 118
Hitachi NJI-350B manual Application instructions-1, Bit set, Bset d, n, Bit location to be set Constant is set Decimal