• No results found

Ladder Logic Program Development

N/A
N/A
Protected

Academic year: 2021

Share "Ladder Logic Program Development"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

TelePACE Ladder Logic

Program Development

CONTROL

MICROSYSTEMS

SCADA products... for the distance

28 Steacie Drive Telephone: 613-591-1943 Kanata, Ontario Facsimile: 613-591-1022 K2K 2A9 Technical Support: 888-226-6876

(2)

TelePACE Ladder Logic Program Development 1

TelePACE Ladder Logic Program Development

©2000 - 2001 Control Microsystems Inc.

All rights reserved. Printed in Canada.

Trademarks

TeleSAFE, TelePACE, SmartWIRE, SCADAPack, TeleSAFE Micro16 and TeleBUS are registered trademarks of Control Microsystems Inc.

All other product names are copyright and registered trademarks or trade names of their respective owners.

Material used in the User and Reference manual section titled SCADAServer OLE Automation Reference is distributed under license from the OPC Foundation.

(3)

TelePACE Ladder Logic Program Development 2

Table of Contents

TABLE OF CONTENTS ...2

TELEPACE PROGRAM DEVELOPMENT ...3

Configuration of the TelePACE Program ...3

PC Communication Settings ...3

Options ...3

Initializing the Controller ...4

Define Register Assignment ...4

Create Ladder Logic Program ...5

Inserting Elements...5

Inserting Networks...5

Editing Elements ...5

Deleting Elements ...5

Selecting Elements...5

Setting Outputs On Stop...6

Controller Serial Port Settings ...6

Write program to controller...6

Monitor Program On Line ...7

Contact Monitoring ...7

Edit Program On Line ...7

Force Registers ...7

(4)

TelePACE Ladder Logic Program Development 3

TelePACE Program Development

A Ladder Logic program may be developed in any sequence. Best results, particularly for new users, will be obtained using the following sequence:

1. Configure the TelePACE program. 2. Create the ladder program. 3. Create the Register Assignment. 4. Select Outputs-On-Stop settings. 5. Define serial port settings. 6. Create Ladder Logic Program. 7. Initialize controller.

8. Write program to the controller. 9. Run and test program.

These steps are described in more detail in the sections that follow.

Configuration of the TelePACE Program

The configuration of the TelePACE program involves setting the serial port parameters for the target controller and selecting options to customize the Ladder Editor environment.

PC Communication Settings

Configure TelePACE communications to satisfy the requirements of the communication media between the TelePACE program and the target controller. Refer to the PC

Communication Settings in the Communication menu section of the TelePACE Program

Reference.

To optimize performance, minimize the length of messages on com3 and com4. Examples of recommended uses for com3 and com4 are local operator terminals, and programming and diagnostics using the TelePACE program.

Options

Set the Ladder Editor environment options to suit the display resolution and color capability of your computer. From the Options menu select Screen Font to change the Editor screen font and Colors to change the Ladder Logic display color.

The format of floating point numbers may be changed using the Floating-Point Settings option.

The Tool Bar, Title Bar and the Status Bar may be removed from the Editor Display by selecting or de-selecting the option in the Option menu.

Select tag names display options to meet your personal preference. The selections are

Single Tag Names, Double Tag Names, Tag and Address and Numeric Address.

In most cases it is recommended that the Allow Multiple Coils and Warning Messages be selected.

(5)

TelePACE Ladder Logic Program Development 4

Initializing the Controller

The controller should be initialized before a new program is loaded into the controller. The

Initialize Controller dialog appears when Initialize is selected in the Controller menu.

Ladder Logic programs C programs and the Register Assignment may be erased from this dialog.

WARNING

If the controller is initialized, using the Initialize command in the Controller menu, all I/O database registers used for Element Configuration are set to zero. The application program must be re-loaded to the controller. Element Configuration may be used for the following functions.

DIAL – Control Dial-Up Modem INIM – Initialize Dial-Up Modem MSTR – Master Message

SLP – Put Controller into Sleep Mode HART – Protocol Driver

DLOG – Data Logger FLOW – Flow Accumulation

Refer to the Ladder Logic Function Reference section for a description of these functions.

Figure 1 Initialize Controller dialog

Define Register Assignment

All I/O hardware that is used by the controller must be assigned to I/O database registers in order for the I/O points to be used by the ladder program. Ladder logic programs may read data from, or write data to the I/O hardware through user- assigned registers in the I/O database.

The Register Assignment assigns I/O database registers to user-assigned registers using I/O modules. An I/O Module can refer to an actual I/O hardware module (e.g. 5401 Digital Input Module) or it may refer to a set of controller parameters, such as serial port settings.

(6)

TelePACE Ladder Logic Program Development 5

The Register Assignment Reference section describes the purpose of each module and the register assignment requirements for the module.

Register assignments are stored in the user configured Register Assignment and are downloaded with the ladder logic application program.

Create Ladder Logic Program

Inserting Elements

To insert an element in the Ladder network, position the cursor at the network position where the element is to be inserted. Double click the left mouse button. The Insert/Edit Network

Element dialog box pops up and an element or function can be selected to insert.

The Insert/Edit Network Element dialog box only displays the elements and functions that will fit from the cursor position.

Elements can be inserted using the right mouse button and selecting Edit Element from the drop down menu.

Elements can be inserted from the keyboard by positioning the cursor at the desired network position and pressing the Insert key.

Inserting Networks

To insert another network, select Insert from the Edit menu. The Insert dialog pops up. Selections are made in this dialog by moving the mouse pointer to the required radio button and clicking the left mouse button. Networks may be inserted before or after the current network.

Editing Elements

To edit an element in the Ladder network, position the cursor on the element to be edited. Double click the left mouse button. The Insert/Edit Network Element dialog box pops up and the element can be edited.

Elements can be edited using the right mouse button and selecting Edit Element from the drop down menu.

Elements can be edited from the keyboard by positioning the cursor at the desired element the pressing the Insert key.

Deleting Elements

To remove an element from a network, press the Delete key, or select Delete from the Edit menu. The element at the cursor position or selected elements, columns, rows or networks can be selected for deleting.

Selected elements can be deleted using the right mouse button and selecting Delete from the drop down menu.

Selecting Elements

To select multiple elements position the cursor on the first element or function of the selection and press the left mouse button. Hold the button down and drag the pointer to the last element or function. The elements selected will be highlighted in the same way as the cursor. Releasing the mouse button does not change the highlighting.

(7)

TelePACE Ladder Logic Program Development 6

Individual disconnected elements may also be selected and copied to the clipboard. To select disconnected elements position the cursor on the first element. Hold the keyboard shift key down. Using the left mouse button, click on elements to be copied to the clipboard. To select elements or functions with the keyboard move the cursor to the first element or function. Hold the shift key down while using the directional arrow keys to move the cursor to the last element or function. The selected elements are highlighted.

Setting Outputs On Stop

Select Outputs on Stop from the Controller menu and the Output Conditions on

Program Stop dialog appears. This dialog controls the state of the controller analog and

digital outputs when the ladder logic program is stopped.

The state of the digital outputs may be set to hold their last value or to turn off when the ladder program is stopped.

The state of the analog outputs may be set to hold their last value or to go to Zero when the ladder program is stopped.

Figure 2: Output Conditions on Program Stop Dialog

Controller Serial Port Settings

Select the Serial Ports command from the Controller menu to configure the controller serial ports. The Controller Serial Ports Settings dialog box pops up when the Serial Ports command is selected.

To optimize performance, minimize the length of messages on com3 and com4. Examples of recommended uses for com3 and com4 are for local operator terminals, and for

programming and diagnostics using the TelePACE program.

Write program to controller

The Write to Controller command in the Communications menu writes the Ladder Logic program to the controller. The program replaces the program in the controller.

If the program in the controller is executing a dialog box will request whether to stop

execution of the new program when the write is complete or to continue execution of the new program after the write is complete.

WARNING

Exercise caution when selecting the Continue option. The program will execute with the changes you make, even if the changes are not complete. This may cause undesired operation. Select Stop if you are making multiple changes.

(8)

TelePACE Ladder Logic Program Development 7

Monitor Program On Line

The Monitor On Line selection in the Activity menu enables the real time monitoring of a program executing in a controller. The editor shows the power flow through the network on the screen. No changes can be made to the program in monitor mode. The Monitor List window is displayed when Monitor On Line is selected.

Contact Monitoring

It is often necessary, while in Monitor On line mode, to determine whether a contact would pass power if power were supplied to it. This feature is extremely useful when testing the operation of ladder logic programs.

In Monitor On line mode, TelePACE shows the power flow through the network. It also colors contacts that are not powered to show how power would flow if they were.

The following diagram shows how power flow information is displayed in Monitor On line mode.

10001 10002 00003

In the above example, normally open contact 10001 and normally closed contact 10002, are not energized. The shaded background, in contact 10002, indicates power would flow through the contact if the input side were powered.

• The background of a normally open contact is colored when it is energized and its input is not powered.

• The background of a normally closed contact is colored when it is not energized and its input is not powered.

The background is only displayed on contacts if the input side of the contact is not powered. The color used for contact monitoring can be changed using the Colors command.

Edit Program On Line

The Edit On Line selection in the Activity menu is used to edit a ladder logic program that is executing in the controller. All editing commands affect the program in the controller and the program in the TelePACE Ladder Network Editor.

Force Registers

The Edit/Force Register dialog allows the user to modify registers in the memory of the controller. This dialog is only available in the on-line mode. Data modified by the dialog is stored only in the memory of the controller. It does not form part of the ladder logic program. Refer to the Program Reference section for detailed information on Forcing registers.

Preventing Unauthorized Changes

A TeleSAFE Micro16 or SCADAPack controller can be locked to prevent unauthorized changes. A password is required to unlock the controller to make changes.

(9)

TelePACE Ladder Logic Program Development 8

The controller will reject commands sent to the unit when it is locked. A controller that is unlocked operates without restriction. Three levels of locks are provided.

• Locking the programming commands prevents modifying or viewing the program in the controller. Communication protocols can read and write the I/O database.

• Locking programming and database write a command prevent modifying or viewing the program; and prevents writing to the I/O database. Communication protocols can read data from the I/O database, but cannot modify any data.

• Locking programming and database commands prevents modifying or viewing the program and prevents reading and writing the I/O database. Communication protocols cannot read or write the I/O database.

Refer to the sections Lock Controller, Unlock Controller, Override Controller Lock and

References

Related documents

When connecting your Remote Control Receiver (RX) you must connect the white signal wire of the channels (CH1, CH2, CH3 and CH4) from your RX corresponding to the aileron,

In addition, the material in this presentation is subject to the terms of the 401(k) Plan for Employees of the City of New York and Related Agencies and Instrumentalities and

Although population based algorithms tend to require more computation than local methods, they perform a simultaneous search in distinct regions of the search space, thus working

- Save all…: command to save all the parameters, alarms and curves actually set in the controller in a .ters fi le; - Load all…: command to load in the controller all the parameters of

and consultant reports linking highly engaged employees with key performance metrics, such as increased employee retention, increased customer satisfaction, and increased

This study aims to measure personal endotoxin exposure, assess respiratory symptoms and measure fractional exhaled nitric oxide (FeNO) among female flower farm workers in

This paper concretely revealed the geographical extent and the spatial formation of mohallas in Varanasi, which were previ- ously unknown in detail, based on a field survey covering

For interval-valued intu- itionistic fuzzy multicriteria group decision-making problem with incomplete information on the weights of criteria, an entropy weight model is established