Ub ( ) Or Ubw (Internal User Contact Control) - Hitachi SJ700-2 Series Instruction Manual

Easy-sequence programming software ezsq
Hide thumbs Also See for SJ700-2 Series:
Table of Contents

Advertisement

UB ( ) or UBw (internal user
contact control)
Symbol
Internal user contact
UB (00) to UB (07)
(bit access)
Internal user contact
UBw
(word access)
- Formats
Format
<variable>= UB (ii)
1
UB (ii)= <variable> or <constant>
2
(ii = 00 to 07)
3
<variable>= UBw
4
UBw= <variable> or <constant>
- 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)=
  :
Sample 2: Statement to turn an internal user contact on (format 2)
  :
UB(00)=
Sample 3: Statement to read internal user contact status as word data (format 3)
  :
U(00)=
  :
Sample 4: Statement to change internal user contact status in units of words (format 4)
  :
UBw(00)=
  :
Instruction to access internal user contacts
Variable name
0: OFF
1: ON
0 to 255
This instruction assigns the ii'th bit of internal user contact data to
(ii = 00 to 07)
<variable>.
This instruction assigns <variable> or <constant> to the ii'th bit of
internal user contact data.
This instruction assigns internal user contact data as word data
to <variable>.
This instruction assigns <variable> or <constant> as word data to
internal user contact data.
UB(00)
1
UBw
U(00)
Chapter 5 Instruction Words
Range of
Default
values
0
0
Description
: 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.
5 - 19
Unit
Data size
Unsigned
Readable
-
1-word data
and writable
Unsigned
Readable
-
1-word data
and writable
Attribute

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sj700 series

Table of Contents