• No results found

Sample Application Planned with Worksheets

In document Catalog Number 2711-ND1. User Manual (Page 101-114)

Figure 4.8

The Main Screen, as designed with the Screen Worksheet

00

Screen Worksheet for Keypad Terminal

Screen Name:

Figure 4.9

Screen 1 The Main Screen on the Development Computer

22062

V1 Size: 2,243 Screen: 1 MAIN SCREEN Oct 15 1992 14:23 CONVEYOR CONTROLS PUMPCONTROLS SCREEN MENU: Add Edit Move Delete Memorize Recall Options Exit

M . A . I . N . G . S . C . R . E . E . N . . . . .

Screen 1 consists of:

one Text object, titled MAIN SCREEN. Each character is 2 character cells high by 2 character cells wide

two “Go To Screen” Buttons. The first one, labeled CONVEYOR CONTROLS, calls screen 2 and is assigned to the F17 button. The second, labeled PUMP CONTROLS, calls screen 3 and is associated with the F18 button

IMPORTANT: Screen 1 contains only static objects, so they are not assigned to PLC addresses. Consequently, you won’t find an Object Address List for this screen.

Figure 4.10

The Conveyor Controls Screen Worksheet

00

Screen Worksheet for Keypad Terminal

Screen Name:

Figure 4.11

Screen 2 The Conveyor Controls Screen

22089

SCREEN MENU: Add Edit Move Delete Memorize Recall Options Exit

FRONT FRONT

CENTER CENTER BACK

CENTER BACK

MAINSCREEN

C . O . N . V . E . Y . O . R . G . C . O . N . T . R . O . L . S . . . . .

V1 Size: 2,243 Screen: 2 CONVEYOR Oct 15 1992 12:31 O.N. O.N. O.N. O.N. O.N.

O.F.F. O.F.F. O.F.F. O.F.F.

O.F.F.

Screen 2 consists of:

one Text object with the screen title CONVEYOR CONTROLS.

one “Return To Previous Screen” Button labeled MAIN SCREEN.

five Momentary Push Buttons—Normally Open with indicator state text inside the buttons and “outer text” above the buttons

five Momentary Push Buttons—Normally Closed with indicator state text inside the buttons

Each push button has two possible states to which different text and attributes will be assigned.

Each of the ten push buttons on this screen has a unique PLC input bit address. You will program your PLC controller to turn on a conveyor when its respective Momentary Push Button (Normally Open) is pressed, and to turn it off again when its respective Momentary Push Button (Normally Closed) is pressed.

Each of the ten buttons also has a unique PLC output bit address. These are referred to as the “Indicator Control Bits”. Your PLC program should include the logic to set the appropriate Indicator Control Bits to show that the conveyor is on or off.

The Text objects and the “Return To Previous Screen” Button are static objects, and therefore are not included on the completed Object Address List or the I/O Usage Worksheet.

Figure 4.12

The Pump Controls Screen Worksheet

00

Screen Worksheet for Keypad Terminal

Screen Name:

Figure 4.13

Screen 3 The Pump Controls Screen

22109

V1 Size: 2,243 Screen: 3 PUMP Oct 15 1992 12:31 SCREEN MENU: Add Edit Move Delete Memorize Recall Options Exit

UP

DOWN

CROSSOVR MAINOUTPUT INPUT BACKUP

_NNNN _NNNN _NNNN _NNNN _NNNN

MAINSCREEN

ONON ONON ON

PUMP_CONTROLS PRESSURE_(PSI):

P . U . M . P . G . C . O . N . T . R . O . L . S . . . . .

O.N.

O.F.F.

Screen 3 consists of:

three Text objects including the screen title: PUMP CONTROLS, and the two text labels: PUMP CONTROLS and PRESSURE (PSI) one Control List Selector Without Enter with five selections labeled

CROSSOVER, MAIN, OUTPUT, INPUT, and BACKUP. The Control Selector’s two cursor control buttons are assigned to F3 and F11 and are labeled UP and DOWN

five Multi-State Indicators positioned immediately to the right of the Control List Selector Without Enter Button. Each Multi-State Indicator has been assigned two states. One state is labeled ON, the other OFF.

More states could be assigned

five Numeric Display Objects positioned to the right of the Control List Selector Without Enter Button and Multi-State Indicators

one Box object surrounding the Control List Selector Without Enter Button, the Multi-State Indicators, the Numeric Displays, and two of the text objects

two Momentary Push Buttons (Normally Open) labeled ON and OFF assigned to F4 and F12

one Return to Previous Screen button labeled MAIN SCREEN, assigned to F17

The Control List Selector Without Enter Button has been defined as a five-state object using the bit position data type. Thus, there is a string of four bits that the PLC controller uses to determine the current selection.

When the operator uses the UP and DOWN buttons, the PanelView terminal turns off the current bit; turns on the next higher or lower bit in this bit string; and scrolls the highlight bar up or down through the selections.

When the operator presses the ON or OFF button, the PLC program checks which of the five Control Selector bits is on. It then turns the related pump on or off.

Each Multi-State Indicator has a PLC output bit associated with it. The PLC program sets the bit on when the pump is on, and sets the bit off when the pump is off. The PanelView terminal monitors these bits, and displays the ON or OFF label depending on the state of each bit.

Now for the five Numeric Displays. In this sample application we’ve restricted ourselves to using one quarter rack. Each Numeric Display requires a full PLC word. If you were restricted to discrete addressing, a quarter rack wouldn’t be adequate; at least a 3/4 rack would be necessary.

The quarter rack limitation can be met by using a block transfer file.

In defining the block transfer file, a control byte was assigned in both the Input and Output section of the image table. This is noted in the Discrete I/O Usage Worksheet. You can’t use this control byte for any other purpose. Program your PLC block transfer instruction to use this control byte.

The Text objects, the Box, and the Return to Previous Screen button don’t change state or communicate with the PLC controller. Therefore, they are not included on the completed Object Address List or the I/O Usage Worksheet.

Figure 4.14

Object Address List Worksheet for Screen 2 Object Address List

1 Momentary N/O PB FRONT ON Momentary N/O PB INDICATOR 2 Momentary N/C PB FRONT OFF Momentary N/C PB INDICATOR 3 Momentary N/O PB FRONT CENTER ON

Momentary N/O PB INDICATOR 4 Momentary N/C PB

Momentary N/C PB INDICATOR FRONT CENTER OFF

5 Momentary N/C PB CENTER ON Momentary N/C PB INDICATOR 6 Momentary N/C PB CENTER OFF

Momentary N/C PB INDICATOR 7 Momentary N/O PB BACK CENTER ON

Momentary N/O PB INDICATOR 8 Momentary N/C PB BACK CENTER OFF

Momentary N/C PB INDICATOR 9 Momentary N/O PB BACK ON

Momentary N/O PB INDICATOR 10 Momentary N/C PB BACK OFF

Momentary N/C PB INDICATOR

D I 1 0 0

Figure 4.15

Object Address List Worksheet for Screen 3 Object Address List

11 Control Selector PUMP CONTROLS 12 Momentary N/C PB PUMP ON

Momentary N/C PB INDICATOR 13 Momentary N/C PB PUMP OFF

Momentary N/C PB INDICATOR 14 Numeric Display CROSSOVER PUMP 15 Numeric Display MAIN PRESSURE 16 Numeric Display OUTPUT PRESSURE 17 Numeric Display INPUT PRESSURE 18 Numeric Display BACKUP PRESSURE 19 Multi–State Indicator CROSSOVER PUMP

21 Multi-State Indicator OUTPUT PUMP 22 Multi-State Indicator INPUT PUMP 23 Multi-State Indicator BACKUP PUMP

D I 1 0 12

20 Multi-State Indicator MAIN PUMP

Figure 4.16

Discrete I/O Usage Worksheet for the Sample Application Discrete I/O Usage Worksheet

Application File Name: Rack Number:

PLC Output Bit Numbers

17 16 15 14 13 12 11 10 7 6 5 4 3 2 1

PLC Input Bit Numbers

0

The Words from 2 to 7 are empty as illustrated in Word 2

x x

Figure 4.17

Block Transfer Worksheet for the Sample Application only page 1 is shown, page 2 is left empty

Block Transfer I/O Usage Worksheet (Page 1 of 2)

Application File Name:

Block Transfer File Number: 1 2 3 4 5 (Circle One) Number of Words:

READ (PLC Inp) or WRITE (PLC Out) (Circle One)

PLC Bit Numbers

From Word 5 to 31 is unused as illustrated in Word 5 & 6

*

Figure 4.18

PLC Communications Worksheet for the Sample Application PLC Communications Worksheet

Application File Name:

PLC/Scanner Type:

Baud Rate: 57.6K (10,000 Ft) 115.2K (5,000 Ft) 230.4K (2,500 Ft)

Note: You must make at least one rack assignment. Additional rack assignments (up to a maximum of 8) are optional. Write in the Rack Number and circle appropriate Rack Size, Starting Module Group, and Last Rack designation.

Rack Assignments

Rack Number Rack Size Starting Module Group Last Rack

1/4 1/2 3/4 1

0 2 4 6 Y N

Note: Block Transfers are optional. Circle the Block Transfer File Number, write in one of the rack numbers from above, circle the appropriate Module Group and Byte, and fill in the Block Transfer file size.

Block Transfer Assignments

Block Transfer

File Number Module Group

0 1 2 3 4 5 6 7 Hi Lo

Once the application is planned, the next step is to use PanelBuilder to

In document Catalog Number 2711-ND1. User Manual (Page 101-114)