Chapter 2 Syntax
2-22
UB ( ) or UBw (internal user contact
control)
Instruction to access internal user contacts
Variable name
Range of values
Default
Unit
Data size
Attribute
UB (00) to
UB (07)
Internal user contact
(bit access)
0: OFF
1: ON
0
-
Unsigned
1-word data
Readable
and writable
UBw
Internal user contact
(word access)
0 to 255
0
-
Unsigned
1-word data
Readable
and writable
- Format
Format
Description
1
<variable>
= UB (ii)
(ii = 00 to 07)
This instruction assigns the ii'th bit of internal user contact data to
<variable>
.
2
UB (ii) =
<variable>
or
<constant>
(ii = 00 to 07)
This instruction assigns
<variable>
or
<constant>
to the ii'th bit of
internal user contact data.
3
<variable>
= UBw
This instruction assigns internal user contact data as word data to
<variable>
.
4
UBw =
<variable>
or
<constant>
This instruction assigns
<variable>
or
<constant>
as word data to
internal user contact data.
- 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
<variable>
or
<constant>
to the ii'th bit of internal user contact data.
(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
<variable>
or
<constant>
as word data to internal user contact data.
- Sample program
Sample 1 : Statement to read internal user contact status as bit data (format 1)
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
U(00)= UB(00)
㩷
㩷
㩷
㩷
: Assign bit data of UB (00) to U (00).
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Sample 2 : Statement to turn an internal user contact on (format 2)
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
UB(00)= 1
㩷
㩷
㩷
: Assign "1" (bit-on status) to UB (00).
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Sample 3 : Statement to read internal user contact status as word data (format 3)
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
U(00)= UBw
㩷
㩷
㩷
㩷
: Assign word data of UBw to U (00).
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Sample 4 : Statement to change internal user contact status in units of words (format 4)
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
UBw(00)= U(00)
㩷
㩷
㩷
㩷
: Write word data of U (00) to UBw.
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...