3) application instructions – Hitachi NJI-350B User Manual
Page 118

Chapter 5 Instruction Specifications
5-68
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
z
z
z
z
z
26
Lower case: DW
Instruction format
Number of steps
Condition
Steps
BSET (d, n)
3
35
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
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.
. . . . . . . . . . . . . . . . . .
5
d
4
3
2
1
0
n
1
n-1
n+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).
BE
ST (
d, n
)