EasyManua.ls Logo

Hitachi SJ700-2 Series - UB ( ) or Ubw (Internal User Contact Control)

Hitachi SJ700-2 Series
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 5 Instruction Words
5 - 19
UB ( ) or UBw (internal user
contact control)
Instruction to access internal user contacts
Symbol 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
- Formats
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 programs
Sample 1: Statement to read internal user contact status as bit data (format 1)
:
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)
:
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)
:
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)
:
UBw(00)= U(00) : Write word data of U (00) to UBw.
:

Table of Contents

Related product manuals