Section 6 To Ladder Logic and Programming: Netwrk Ed
Section 6 To Ladder Logic and Programming: Netwrk Ed
This section provides the information necessary to create, read, delete, and insert
networks as well as edit individual networks. It also describes how to use the
reference screens and the search function.
This section also describes the basic ladder logic used in programming the 884
PC. The logic elements used include relay contacts, coils, references, registers,
and function blocks. The controller’s logic is structured into networks, and
programmed into the 884 PC via a P190 Programmer. The controller scans each
network and solves the logic which controls the input to other logic in the program,
or controls an output (i.e., turning ON a switch, stopping a process, resetting a
meter, etc.).
The P190 Programmer is organized into two logic editing modes; the Element
Editor and the Network Editor. Both editing modes use a series of P190 display
screens and software labels. Instructions on how to use the editing modes and the
appropriate software labels are also covered in this section.
1. Insert the 884 PC Programmer and Configurator Tape into the P190 tape drive.
(The 884 PC must be configured to meet your specifications before a program
will run as programmed. Section 5 provides the configuration and Traffic Cop
information needed to accomplish this).
NOTE
Leave the tape in the drive. The P190 rereads the tape from
time to time.
This is the Attached Level. These software label keys are used to change the
884 PC’s status. (If passwords have been used, the Password Level is next,
not Attached Level. See Appendix C for Password Operation instructions.)
3. Press the PROGRAM software label key and then the PROCEED software
label key. (A thirty second delay occurs while the programming instructions
are read from the tape).
A power rail appears on the left of the P190 screen and the cursor is located in the
top left node. The following software labels are displayed:
NETWRK ED
6-1
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
Each software label key, when pressed, brings up another set of software labels.
The software label keys needed to enter a program are illustrated in a flow chart
in Figure 6-5. To return to the original set of software labels, shown at the top of
Figure 6-5, from any level of software labels except the Power-Up level, press the
PREV MENU software label key.
6.2 NETWORKS
A network is a set of interconnected logic elements which represents all, or part,
of the user’s 884 PC program. Each network has a maximum width of 11 columns
and a maximum length of 7 rows. The eleventh column is provided exclusively for
coils. See Figure 6-1.
A network can contain any combination of relay contacts, coils (eleventh column
only), counters, timers, and arithmetic, data transfer (DX), and special function
blocks. The logic can occupy the whole network area or just a portion of it.
-0
-0
UP TO
-0
7
ROWS
4)
-0
-0
-0
UP TO 7 COILS
6.3 REFERENCES
Reference numbers are used to identify relay contacts, coils, inputs, outputs,
latches and registers. There are seven types of references. Each type has a
different code digit to identify it; this digit is the first of five consecutive digits. The
reference types and their functions are listed in Table 6-1.
NOTE
These numbers refer to actual registers or discretes within
the controller which contain numerical values or ON/OFF
conditions. An X is any digit, 0 through 9; however, it may
have a specific limit (e.g., max. 6) as designated in the
configuration table.
6-2
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
SXXXX - Latch
. A discrete used only in a Latch function block.
. Its state is maintained through a power cycle.
6-3
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
When the coil or discrete input is ON, the normally open (NO) contact is closed and
passes power, and the normally closed (NC) contact is open and does not pass
power.
When the coil or discrete input is OFF, the NO contact is open and does not pass
power, and the NC contact is closed and passes power. See Table 6-2.
NO Contact NC Contact
Since there are two different transitions (OFF to ON and ON to OFF), there are two
transitional contacts:
6-4
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
To change the type of relay contact, position the cursor over the contact to be
changed and press the desired software label key. To change the reference
numbers below a contact, position the cursor over the contact, enter a new value
into the AR, and press the ENTER key.
Vertical shorts are used to connect contacts and function blocks one above the
other in a network. Vertical shorts can also be used to connect inputs or outputs
in a function block to create either/or conditions. When two contacts are
connected by vertical shorts, a vertical short on each side, power is allowed to
pass through if either, or both, contacts receive power.
To enter a vertical short, position the cursor to the left and above the reference
desired for the short, and press the VER OPENlVER SHORT software label key. A
vertical short is cleared (or opened) by pressing the VER OPEN software label key
and the SHIFT key.
Horizontal shorts are used in combination with vertical shorts to expand logic
within a network without breaking the power flow. They can be used to create
either/or conditions using basic relay contacts. (See Figure 6-2.)
A vertical short is used to connect the horizontal short to the top logic line.
To enter a horizontal short, position the cursor over the reference desired for the
short and press the horizontal short software label key. To clear a horizontal short,
press the D
‘ ELETE NODE software label key.
500 - 09999
i t-
10001
100
’ 40001
SUB SUB
40001 - 40001
1
l- __----- --
3)
Figure 6-2. Shorts 0001
6-5
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
6.6 COILS
A coil is used to activate logic within a program, and/or to control an output circuit.
It is represented by a OXXXX reference number and either of two symbols:
A Normal, Non-retentive Coil, + )_! is turned OFF if power is
removed and later restored (power cycle).
A Latched, Retentive Coil, -( Lt-1 retains its previous state through
a power cycle.
NOTE
A normal, non-retentive, disabled coil retains its disabled
state through a power cycle.
Coils are always displayed in the far right (eleventh) column of a network, although
they are actually located and solved in the column of the network in which they
were programmed. Each network can contain a maximum of seven coils.
Each OXXXX reference can be used as a coil only once, but can be referenced to
any number of relay contacts. Some logic functions use coils in groups of 16 (eg.,
DRUM, T+R, BLKM, etc.). Partially programmed logic elements can refer to a
OXXXX coil more than once because the 884 PC’s logic solver passes over
elements displaying I‘????” references on the CRT screen.
A logic coil is inserted into a program the same as a relay contact, except that the
cursor does not have to be over column eleven. The cursor can be directly beside
the last logic element in a row. When the COIL software label key
(< I-or<+-) is pressed, dashed lines are inserted and the coil is placed
in the coil column. The only reference allowed is a OXXXX reference, unlike relay
contacts which allow OXXXX, 1XxXx, or 2XXSS references.
The following coils are reserved for special status indicators:
761 Battery OK
762 Memory Protect
763 Remote l/O Health
764-768 Reserved
6.7 DISABLE/ENABLE
Any logic coil or discrete input in a program can be disabled, and forced ON or
OFF, from the P190 keyboard. DISABLE separates the state of the coil from control
of the PC logic. On inputs, DISABLE separates the input state from the actual field
device. This is an important difference. DISABLE/ENABLE is used for debugging
and wiring l/O devices and allows you to test the changes before you actually
change your existing logic.
Disabling a coil or input causes the programmed logic to bypass that particular
coil or input. Use of the FORCE ON and FORCE OFF software label keys allow you
to control the state of that particular coil or input. Memory Protect must be OFF.
To disable a coil or input, follow the instructions below:
1. Ensure that Memory Protect is OFF on both the P190 Programmer and the 884
PC.
4. Enter the coil reference number or discrete input reference number in the
Assembly Register (AR).
6-6
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
5. Press the GET COUGET REF software label key or the ERASE/GET key.
The reference number appears at the cursor position with its state, ON or OFF, and
the following software labels appear on the screen:
The coil or input is now DISABLED ON or DISABLED OFF, depending on its state
when the DISABLE key was pressed.
Coils may also be DISABLED or ENABLED from the logic screen. If you have a
network displayed on the CRT, and want to DISABLE a coil, position the cursor on
the coil and press the COILS software label key. The DISABLE/ENABLE and
FORCE ON/FORCE OFF software label keys are now displayed and you may
proceed.
Press the FORCE ON or FORCE OFF software label keys to change the state of
the coil or input. Press the ENABLE software label key to enable the coil or input.
If the coil or input is enabled, it cannot be forced ON or forced OFF; it retains the
actual state, based on the logic or real input status.
WARNING
Coils are displayed in the eleventh column on the P190 screen. This does not mean
that they are always solved in this column. If the logic controlling a particular coil
is in column 6 and dashed lines connect the logic to the coil, that coil is solved
in column 7. For example, in Figure 6-4, coil 00006 is solved before contacts 10004
and 10005 and coil 00003.
The scan starts in network 1, continues in network 2 and continues until the scan
reaches the end of the program. This means that when a column of logic is solved,
its solutions are available for use in the next column. Then the outputs are serviced
and the logic solve cycle starts over again.
6-7
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
. ’ P. P . P . P. P . P . P . P . P.
. . . . . . . . . l
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
.
t ’ t + t t .t .t t .t l
l
LJWdULJLJiJU~
l l l
I
3
START SCAN OF
NEXT NETWORK
H I-N-I l-N----
r
10002 10003 10004 10005 00003
1-1 t-______---_-_+ )-
6-8
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
MEM AVAIL
+I- --fLI-- ENABLE DISABLE FORCE ON FORCEOFF PREV MENU
DX MOVES
P
DX MATRIX
I CALCS
I
6-10
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
Press the PROGRAM software label key (on the PC Operation Menu) and then
press the PROCEED software label key. A message is displayed:
When the loading is complete the Element Editor screen, containing the following
software label keys, is displayed on the CRT.
MEM AVAIL
READ NET CREATE NET DEL NET NETWORKED
OPERS
If the 884 PC is running, you can enter one element at a time and see the power
flow change instantly. If the 884 PC is stopped, you can enter an entire network
or group of networks. As soon as the 884 PC is started, the new network, or group
of networks, will run at once. If the 884 PC is running, the power rail is highlighted;
if the 884 PC is stopped, the power rail is dim. See Figure 6-5 for the software label
key flowchart of the Element Editor.
Enter the number of the network to be displayed in the AR. Press the READ NET
software label key and the following software labels are displayed:
The number of the network appears in the upper left-hand corner of the screen. The
network power flow is displayed if the 884 PC is running and if the network is not
within an active skip block. Press the EDIT NET software label key to display the
cursor on the CRT screen and to edit the displayed network.
6-11
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
When the CREATE NET software label key is pressed, the new network will start
at the end of your current group of networks. If you have seven networks in your
system, this will CREATE NET #8.
Both CREATE NET and START NEXT go to the end of the program and start
the next network in sequence.
CREATE NET goes to the end of the program and starts the next network in
sequence.
START NEXT creates a new network, numbered one more than the one
displayed. It then renumbers the remaining networks.
3. If there are any numbers (from 00001 to the highest network number) in the
AR, both CREATE NET and START NEXT will define a new, empty network
using the value in the AR. Any higher numbered networks are renumbered.
To access the Element Editor software labels from the START NEXT screen, press
PREV MENU software label key. The following software label keys appear:
Press the EDIT NET software label key to get the software label keys needed to
create a network.
As the network is entered onto the P190 screen it is entered into the 884 PC.
Enter the number of the network to be deleted in the AR. Press the READ NET
software label key; then press DEL NET to delete the network.
If there are 10 networks in the 884 PC and network #l is deleted, the remaining
networks are renumbered, starting at 1 and ending at 9.
6-12
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
NOTE
Press the EXP/COMP software label key, with the shift key, and the following
software label keys are displayed:
MEM AVAIL
EXPAND V EXPAND H COMPRES V COMPRES H
PREV MENU
NOTE
6-13
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
I I HC ____-_--____-_-_----~~~~-~~~~ 4)
I i t-_____________________________--- -0
t 1 t- __-________--___--__~~~-~~~~-~~-~-~ 0
t I t- _--___-__________--_~~~~~~~-~~~ ___--( )
__-_______-___--__---___-_----___
41
I I_. H ~------______--__---___--____~ )
t i b__________________-----_--____ ____--_O
t 1 I-_________________--____----- __--_-_-_o
I = CURSOR AR = 00000
6-14
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
If you key a non-zero number, such as “2” in the AR, two contacts, beginning with
the contact the cursor is over, will be moved down. Look at the examples in Figure
6-6~ and 6-6d.
.
t
P I i b
t-1
Hl-
H
__________-----_--------_--_--m-w-_
c____-------___-_________---__~
___________-___--_-_----_-------
4
0
)
t 1
____---------mmem------_------em-
4)
I = CURSOR AR = 00002
1-j H l------------------------j)
4t- ____----------------------mm
--4)
l- ____------____----__------- - --_-_( )
t I l- ____-------------- ____-----------_j )
t I l- ______-_--_----_-- ___----------__-()
_----___--____-____- __--__--__+
I I= CURSOR AR = 00002
6-15
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
NOTE
The cursor can be placed anywhere in the column to be created. It does not have
to be over an element. There must be a blank column to the right of the cursor or
the Expand Horizontal is not allowed.
I i HC ______---_-____--____________ 4)
t 4 t-__---____-___---y___----_-______ 4:)
______----_-----------~-~-~~~~~~~~~
I i t- 0
t i b -_______-______-_--------_______ ---4 1
me_--------_----__--__-_---_-----
4)
= CURSOR AR = 00000
-tH H t----------___--__-------m( )
-----------------------_---
-t t I t- -0
-t t t t- ----_____----__-__-_--------- 4)
+
--_--------_---e------------w
4)
t,
El = CURSOR AR = 00000
6-16
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
If the AR has 00002 in it, two contacts, the contact where the cursor is positioned
the one below it are moved horizontally as shown in Figure 6-7~ and 6-7d.
I-___-_____-_--_--___----_-----_-- 4
-------___
__--_----______-_-_----------------
t- 4
t- --------------_--_------_----___--- 4
4
El = CURSOR AR = 00002
-IHHHb __-_-__-__-__-_-___------------ 3)
)HHk e-e_----------------_---w---w- -0
I
----tHk ______----_----_____-~~-~~-~~-~-~ -0
1 H k--_----_-_-- ________--_--__-_______-__I J
I ______-___-_-______-_-_-____--__-____ -0
.
r 1 =CURSOR AR = 00002
6-17
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
NOTE
Compress Vertically is not allowed if the cursor is placed
over a programming element or if the row to be deleted
contains a programming element.
HHI- --______-----_____-_-------- 4)
Hk -_-_----___-_---___-~~~~--~-~~~ 4)
k _____-____---_----------_______---__ 41
:
-0
F”
__---mm----------_--------__---____
El = CURSOR AR = 00000
PHIHI _---___________-___---------- -0
IHHI- ----------mm----------e----w_ 3)
HHt- ___--___--_----___--__________ -0
----------------------------------~ _(I
I =CURSOR AR = 00000
6-18
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
b
‘ If you key a non-zero number, such as 2 in the AR, two contacts, beginning at the
contact the cursor is over, will be deleted, and any contacts below will be moved
up as shown in Figure 6-8~ and 6-8d.
HHHk -----------------------~~--~~--
0
HHF ___-_--------_-__-____________---
. -0
_--_----------_-mm-------------------
0
_____-_---------------------------_-
-0
El = CURSOR AR = 00002
HH Hl- _____-_----_--_--___------- -0
E HH
H+
I- -____-___-__-__-_____-___-__-_____
----_---__--_--__-_--__-___________
-0
-0
____________-___-_--____-___--_-----_--
-0
t
I = CURSOR AR = 00002
6-19
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
The logic in Figure 6-9a shows a network, with 00000 in the AR, before pressing
the COMPRESS HORIZONTAL software label key. The revised network is shown
in Figure 6-9b.
NOTE
Compress Horizontal is not allowed if the cursor is located
over a programming element or if the column to be deleted
contains a programming element.
I_, H I_____________~~--~-~_~~~~~~-~~~ )
= CURSOR AR = 00000
-lHk __-__-__-_-_-_____-_~-~~~-~~~~~~~~~~~~~~ i)
+I- ____________________~~~~~~~~~~~~-~~~~~~~~~~~~
4)
____-___-__-____-__-_--_-__-_____-________ 4)
I I= CURSOR AR = 00000
6-20
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
If you key a non-zero number, such as 2 in the AR, two contacts, beginning with
.
the contact the cursor is positioned on will be moved horizontally as shown in
Figure 6-9c and 6-9d.
HHC _---_--___----_-----______o
HI- _-------____-_______------------ 4
l-__--_----____--____-------~~~~~~-~---~ 41
.
1-4 ~-_-______________---___--____-----_~ )
I
-lH b _---_-----me----me------------m----e-
i)
I+ k ______---_---______-___ _--____--__-_( )
= CURSOR AR = 00002
6-21
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
Press the EDIT NET software label key to reach the programming elements
software labels. (As soon as EDIT NET is pressed the cursor appears on the CRT
screen over the first element of the displayed network.) The following software
labels are displayed:
Press the SHIFT key and the PREV NET software label key to display the network
before the one currently displayed. For example, if network 3 is displayed and
SHIFT key and the PREV NET software label key are pressed, network 2 takes the
place of network 3 on the screen.
Press the NEXT NET software label key (without the SHIFT key) to move to the
network after the one currently displayed.
For example, if network 5 is displayed and the NEXT NET software label key is
pressed, network 6 replaces network 5 on the screen.
This means that you can build an entire network in the NETWORK EDITOR, and
INSERT it anywhere in your existing program. You can also build a new network
in the NETWORK EDITOR and REPLACE a network currently in your existing
program. Troubleshooting is easier because you can make changes to an existing
network, use the EXCHANGE NET function to test them, and if the changes do not
work, use a FLIP NET and another EXCHANGE NET to get back the original
network. These functions are explained later in this section. See Figure 6-10 for the
software label key flowchart of the Network Editor.
6-22
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
,
MEM AVAIL
-_(I- -fLI- ENABLE DISABLE FORCEON FORCEOFF PREV MENU
DX MOVES
1DX MATRIX
I CALCS
6-24
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
To get to the Network Editor mode, press the PROGRAM software label key on the
PC Operations Menu. The Element Editor screen automatically appears with the
following software label keys:
NETWRK ED OPERS
Press the NETWORK ED software label key. Notice the change in the software
label keys:
MEM AVAIL
READ NET -CREATE NET DEL NET
PREV MENU
Enter the number of the network to be read in the AR. Press the READ NET
software label key to read the network from the controller and display it on the
P190 screen. The number of the network appears in the upper left-hand corner of
the screen. Press the EDIT NET software label key to display the cursor and to add
to or change the network. The following software label keys are displayed after you
press READ NET:
b
EXCH NET EXP COMP PREV NET MEM AVAI
READ NET ;ERWTE NET DEL NET REPL NET
_ INSRT NET FLIP NET EDIT NET NEXT NET PREV MEN
NOTE
6-25
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
When this software label key is pressed, the following software labels are
displayed:
If you find that the new A network does not work, and you want the original
network A back, press the FLIP NET software label key, then the EXCH NET
software label key. First the original Network A reappears and then, it replaces
Network A in the 884 PC’s memory.
The FLIP NET function can only be used in conjunction with the EXCH NET
function. The P190 has two memory areas. The contents of one memory area is
visible on the screen. The other memory area is used only for storage of one
network, and its contents are not visible. This part is called the Network Memory
Stack.
6-26
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
To INSERT, create a new network. When it is complete, type the number of the new
network in the AR (00002, for example) and press the INSRT NET software label
key. The message, INSERTED INTO PC, NETWORK:0002 appears, confirming that
the insertion has taken place.
This function allows you to create a network on the screen and then EXCHANGE
it for an existing network in the 884 PC’s memory. For example, if you have a
program with ten networks in the 884 PC, and have a “bug” in network A, you can
read network A into the memory of the P190. Network A can now be edited “off
line”, without disturbing the original network that is still in the 884 PC’s memory.
Press the EXCH NET software label key to exchange the edited A network with the
original A network. A message appears on the screen, CHANGED PC NETWORK:
0005.
If you find that the new A network does not work, and you want the original
network A back, press the FLIP NET software label key, then the EXCH NET
software label key. First the original network A reappears and then it replaces
network A1 in the 884 PC’s memory.
The FLIP NET function can only be used in conjunction with the EXCH NET
function. The PI90 has two memory areas. The contents of one memory area is
visible on the screen. The other memory area is used only for storage of one
network, and its contents are not visible. This part is called the network memory
stack.
The FLIP NET command moves a network shown on the screen into the memory
stack and moves the stored network onto the screen. Figure 6-11 describes the five
commands used in the EXCH NET/FLIP NET functions.
NOTE
6-27
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
P190
NOTES
The Flip Net function can only be used after an Exchange
Network function. Flip Net can be used again and again, i.e.,
as a toggle.
If another function (e.g., Read Network) is used after
Exchange Network, the buffer is cleared and Flip Net is not
allowed (NET EMPTY error message will be displayed.)
6-28
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
After you have pressed CHANGE SCREEN, and accessed whichever function
required, press the LOGIC software label key to return to the Logic screen. You will
find that the network displayed on the Logic screen is exactly as it was prior to
CHANGE SCREEN, including cursor position.
UPDATE GET STEP# ENTER HEX SET BIT CLEAR BIT RESTORE
In the left-hand column is the type of display, the number of the network in which
the Drum function is located, the register or group of discretes holding the
destination, the pointer register, and the drum length. The next column contains
the source register or groups of discretes. Sixteen registers or groups of discretes
can appear in this column at one time. The next column contains the step
numbers. The following four columns contain the register values in binary format
(CONTACT). The last column contains the same register values in hexadecimal
format.
To examine steps which are not currently displayed, enter a step number in the AR
and press the GET STEP software label key, or press the down cursor at the bottom
step.
6-29
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
If the GET STEP function is used, the step requested, plus the next fifteen steps,
if fifteen exist, are displayed.
To change a contact value move the cursor to the CONTACT using the cursor
control keys. Position the cursor over the value to be changed and press either the
ON (= 1) or OFF (=O) software label key. The value changes and the cursor
automatically moves one position to the right. The hexadecimal value
automatically changes to agree with the binary.
CONTACT
DESTINATION
40010
POINTER
21100
SIZE
05
AR = 00000
6-30
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
10002 = OFF
10003 = ON DISABLED
10004 = OFF
10005 = OFF
10006 = ON DISABLED
10007 = OFF
10008 = OFF
10009 = OFF
10010 = OFF
10011 = OFF
10012 = OFF
10013 = OFF
10014 = OFF
10015 = OFF
10016 = OFF
10017 = OFF
10018 = OFF
10019 = OFF 10001 = OFF
AR: 00000
When the FULL REF software label key is pressed, the GET COUGET REF software
label appears on the screen.
The Get Column function is used to list a column of references on the screen.
Enter a valid reference number in the AR. Press the GET COL software label key
and the SHIFT key. Starting at the cursor position, with the reference in the AR,
.
a column of references, and their states or values, are displayed. The column
displays the particular type of reference number, up to a maximum of 18
references (three on partial reference screen). If there are not enough of the
specified reference types to fill the column, the listing stops; the next type of
reference numbers are not displayed.
NOTE
6-31
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
When the PREV REF software label key is pressed with the SHIFT key, the cursor
moves up one position and the previous reference is read in and displayed, erasing
the old reference at the cursor position.
When the cursor reaches the top of the screen, it remains in that position and
displays the new reference over the old reference each time the PREV REF
software label key is pressed.
The Next Reference function is similar to the Previous Reference function. To get
the Next Reference, press the NEXT REF software label key. The cursor moves
down one position and gets the next reference. The new reference writes over the
old reference.
If the cursor is at the bottom of the screen, each time the next reference function
is selected, the new reference writes over the bottom reference.
NOTE
The PREV REFlNEXT REF software label key is only
available if the cursor is over a reference.
Press the ERASE REF software label key to delete a single reference and its state
or contents from the screen. The cursor remains in its original position.
NOTE
The ERASE COLlERASE REF software label key is only
available when the cursor is over a reference.
Press the DISP HEXlDlSP DEC software label key to display the register’s contents
in decimal format. The display looks like this: 40001 = 0000 DECIMAL
NOTE
This software label key is only available when the cursor is
over a register reference (2Xx00, 3XXXX, 4XXXX, or 5XxXx).
6-32
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
Press the DISP BIN software label key to display the register’s contents in binary
format. The display looks like this: 40001 = 1111000011110000.
NOTE
Position the cursor over a register reference displayed binary (2Xx00, 3XXXX, or
4XXXX) and press the SET ALL software label key with the SHIFT key. All the bits
in the specified register are set to one (ON) and the cursor moves to the first bit
position.
To set bits individually, position the cursor over a bit and press the SET BIT
software label key. The cursor moves one bit position to the right. On the 16th bit
the cursor will wrap to bit position one.
NOTE
Position the cursor over a register reference displayed in binary and press the
CLEAR ALL software label key with the SHIFT key. All the bits in the specified
register are cleared to zero (OFF) and the cursor moves to the first bit position.
To clear individual bits, position the cursor over the bit to be cleared, and press
the CLEAR BIT software label key. The cursor moves one bit position to the right.
On the 16th bit, the cursor will wrap to bit position one.
NOTE
6-33
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
The CLEAR ALL/CLEAR BIT software label key is only available when the cursor
is over a register reference displayed in binary (2Xx00, 3XXXX, or 4XXXX). It is not
available when the cursor is over a 5XXXX reference.
These keys only appear when the cursor is over a 5XXXX register reference in the
decimal display mode.
Press the PLUS software label key to make the value in the register positive.
Press the MINUS software label key to make the value a negative.
Press the ENABLE software label key, with the SHIFT key, to enable a disabled coil
or discrete. Press the DISABLE software label key to disable a coil or discrete and
allow that coil or discrete to be forced ON or OFF.
Press the FORCE ON software label key with the SHIFT key to cause a disabled
coil or discrete input to the ON state. For example,
00002 = OFF
Press DISABLE
00002 = OFF DISABLED
Press FORCE ON
00002 = ON DISABLED
Press the FORCE OFF software label key to force a disabled coil or discrete to the
OFF state.
NOTE
FORCE ON/FORCE OFF are available only when the cursor
is over a coil (OXXXX) or discrete input (1XxXx) reference
and may be used only if that reference has been disabled.
6-34
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
NETWORK: 01
/ tf H I--_-----------_-_----__------_____________( )
oiIoo3
H t--_-___--__________---__-__________~ )
00005
t----____--_________---_ _______ --__< )
00006
AR: 00000
PREVREF ERASECOL
ENABLE1 DISABLE FORCEON FORCEOFF
NEXTREF ERASEREF
When the PART. REF software label key is pressed, the GET COLIGET REF
software label key appears. The other software labels, and their functions, are the
same as those used with the Full Reference screen. These are explained in section
6.11.4.
Press the SRCH DSPLY software label key and the cursor moves to the search area
on the network screen (lower right-hand corner). Enter a single search parameter
in the AR. Press the ENTER key, followed by the SEARCH hardware key on the
P190 keyboard. A relay contact, coil, function block, or a function block with a
specific reference can also be searched for. The latter are entered via the
applicable software label key. To return to the Logic screen, press the CHANGE
SCREEN hardware key and then the LOGIC software label key.
6-35
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
Software labels for the relay contacts appear on the screen, along with other
software labels not needed at this time.
3. Press _I +.
4. Press + .
6. Press _I k .
7. Press _ .
9. Press + .
10. Press + .
Software labels for coils appear on the screen, along with other software
labels not needed at this time.
6-36
INTRODUCTION TO LADDER LOGIC AND PROGRAMMING
14. Press -( )- .
15. Press B .
The cursor moves to the first node in the same row (wrap-around).
19. Press 1
20 Enter 12 into the AR.
22. Press i
I-.
6-37