Y ( ) Or Yw (Contact Output) - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

Sample 2 : Program to acquire input terminal status as word data and output only the status of terminals X (02) to X (05) as
word data to output terminals Y (00) to Y (03)
Label
Mnemonic
entry
LOOP
U(00)=
U(00)=
U(00)=
Yw=
goto
end

Y ( ) or Yw (contact output)

- Format
Format
1
Y (ii)=
<variable>
(ii = 00 to 05)
2
Yw=
<variable>
- Explanation
This instruction writes
<variable>
data. You can write and read data to and from
output terminals Y (00) to Y (05) in <variable>. Details of the formats are explained below.
Format 1 : With this format, the instruction outputs
(0 = off, 1 = on, 2 or more = off)
(Examples)
To turn terminal Y (00) off: Y (00)= 0
To turn terminal Y (01) on: Y (01)= 1
Format 2 : With this format, the instruction outputs
(Examples)
To turn terminal Y (00) on and turn terminals Y (01) to Y (05) off: Yw= 1
To turn terminals Y (00) to Y (04) off and turn terminal Y (05) on: Yw= U (00) (U (00) = 32)
Note :
In the SJ700/L700/SJ700B Series, the setting of terminal active state (C031 to C036) is reflected in the
polarity (on or off) of contact inputs Y (00) to Y (05) and Yw when the data is output to intelligent output
terminals 11 to 15 and the relay output terminal. When you create a user program, consider the on and off
states of actual intelligent output terminals.
In the WJ200 Series, the setting of terminal active state (C031, C032, and C036) is reflected in the polarity (on
or off) of contact inputs Y (00), Y (01), Y (05) and Yw when the data is output to intelligent output terminals 11,
12 and the relay output terminal. When you create a user program, consider the on and off states of actual
intelligent output terminals.
parameter1
parameter2
parameter3
Xw
U(00)
/
4
U(00)
and
15
U(00)
LOOP
Instruction to access contact outputs
This instruction assigns
or
<constant>
contact output data.
or
<constant>
This instruction assigns
contact outputs.
or
<contact>
to contact output terminals Y (00) to X (05) in units of bits or words to output the
<variable>
<variable>
<variable>
parameter4
parameter5
Description
<variable>
<variable>
or <contact>. You can also fetch and store the status data of contact
to the ii'th bit of contact output terminal.
as word data to contact output terminals.
2-19
Chapter 2 Syntax
: Fetch input terminal status and store it in
the user variable.
: Cut off the data of X (00) to X (01).
: Mask the data of X (06) to X (07).
: Output the data of X (02) to X (05) as
word data.
or
<constant>
to the ii'th bit of
or
<constant>
as word data to

Advertisement

Table of Contents
loading

Table of Contents