Ub ( ) Or Ubw (Internal User Contact Control) - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

Chapter 2 Syntax
UB ( ) or UBw (internal user contact
control)
Variable name
UB (00) to
Internal user contact
UB (07)
(bit access)
Internal user contact
UBw
(word access)
- Format
Format
<variable>
1
UB (ii) =
<variable>
2
(ii = 00 to 07)
3
<variable>
4
UBw =
<variable>
- Explanation
Use this instruction to control the internal contacts that the user can use for general purposes. The inverter has eight
general-purpose contacts that are writable and readable by bit access (UB (00) to UB (07)) or word access (UBw). Details of
the formats are explained below.
Format 1 : With this format, the instruction reads the status of the ii'th bit of internal user contact data into <variable>.
(0 = off, 1 = on)
Format 2 : With this format, the instruction writes
(0 = off, 1 = on, 2 or more = off)
Format 3 : With this format, the instruction reads internal user contact data as word data into <variable>.
Format 4 : With this format, the instruction writes
- Sample program
Sample 1 : Statement to read internal user contact status as bit data (format 1)
Label
Mnemonic
U(00)=
Sample 2 : Statement to turn an internal user contact on (format 2)
Label
Mnemonic
UB(00)=
Sample 3 : Statement to read internal user contact status as word data (format 3)
Label
Mnemonic
U(00)=
Sample 4 : Statement to change internal user contact status in units of words (format 4)
Label
Mnemonic
UBw(00)=
Instruction to access internal user contacts
Range of values
0: OFF
1: ON
0 to 255
= UB (ii)
This instruction assigns the ii'th bit of internal user contact data to
(ii = 00 to 07)
<variable>.
or
<constant>
This instruction assigns
internal user contact data.
This instruction assigns internal user contact data as word data to
= UBw
<variable>.
This instruction assigns
or
<constant>
internal user contact data.
<variable>
<variable>
parameter1
parameter2
UB(00)
parameter1
parameter2
1
parameter1
parameter2
UBw
parameter1
parameter2
U(00)
Default
0
0
Description
<variable>
<variable>
or
<constant>
to the ii'th bit of internal user contact data.
or
<constant>
as word data to internal user contact data.
parameter3
parameter4
parameter5
parameter3
parameter4
parameter5
parameter3
parameter4
parameter5
parameter3
parameter4
parameter5
2-22
Unit
Data size
Attribute
Unsigned
Readable
-
1-word data
and writable
Unsigned
Readable
-
1-word data
and writable
or
<constant>
to the ii'th bit of
or
<constant>
as word data to
: Assign bit data of UB (00) to U (00).
: Assign "1" (bit-on status) to UB (00).
: Assign word data of UBw to U (00).
: Write word data of U (00) to UBw.

Advertisement

Table of Contents
loading

Table of Contents