C 1 Appendix C DL 305

C 1 Appendix C DL 305

Appendix C

DL 305

Application Example

1

C

In This Appendix. . . .

— DL305 Program Example (DL330/DL340 Only)

C–2

DL305 Application Example (DL330/DL340 Only)

Understanding the

Example Programs

The following example program uses a Cement Kiln System to demonstrate the ladder logic required to support the various OP-panel features. The program provides ladder logic which supports controlling pushbuttons, lamps, messages and menu operations.

For training purposes the items listed in the figure below such as Hopper Selection,

Kiln Speed, Kiln Zone Temperatures are monitored and controlled by the OP-panel example programs.

The example program listed on the following pages is designed for DirectLOGIC

DL305 PLC systems. The program is included on the 3 1/2 inch floppy disk provided with this manual.

These same example programs and additional technical support information may be accessed on PLC Direct ’s worldwide web site:

http:\\www.plcdirect.com

(website for general info/file transfers)

You may also find these programs on our 24-hour per day BBS system at:

770–844–4209

If you find a problem with any of our products, services, or manuals, please fill out and return the ‘Suggestions’ card that was shipped with this manual.

C–3

DL305 Application Example (DL330/DL340 Only)

DirectLOGIC DL305 Example Program

a:\1510_305.prj

OP-1510

Kiln Demo

RUNG 1

The example program listed on the following pages is designed for DirectLOGIC

DL305 PLC systems. The program supports the OP–1510 Kiln Demo application.

This program is included on the 3 1/2 disk labeled “OP–1500/OP–1510 Example

Disk” which is provided with this manual.

This example program (1510_305.PRJ) should be used with the OP–1510 configuration file 1510_305.OCF. Load these program files to the PLC and OP-panel for connection and operation of the Kiln Demo application. You may also refer to the

Appendix A “Example Worksheets” to help understand how the OP-panel is configured.

This program is designed to be used with the

DirectLogic DL305 and compatible systems. The following program is intended for training purposes and may not resolve all possible OP-panel applications. Some PLC programming knowledge is required to fully understand and implement the following program examples.

If the CPU power cycles or machine and operator conditions are idle this rung will initialize OP-panel and display message #1 and message #2.

(OP–1510)

FirstScan

C374

(OP–1510)

Clear/Abort

C207

Green

Lamp1

C220

Pushbutton

F2 Status

C201

Internal

Kiln Starting

C251

DirectSOFT

DSTR

K1

F50

Load constant K1 to select message #1 for top line display.

DOUT F60

R400

Output to base register m+0 (R400) for top line message display.

DSTR

K2

F50

Load constant K2 to select message #2 for bottom line display.

DOUT

F60

R402

OP–1510 Only

Menu Enable

C227

SET

OP–1510 Only

Menu Return

C230

SET

Output to base register m+1 (R402) for bottom line Message display.

ME bit set ON allows menu operations.

MR bit set ON returns to last menu selected.

Status Register

BD

C231

SET

Beeper Disable set ON which disables pushbutton and keypad beeper.

Green

L1 Lamp

C220

RST

Red

L3 Lamp

C222

SET

L1 bit reset OFF which de-energizes Green

Lamp.

L3 bit set ON which energizes Red Lamp.

C–4

RUNG 2

DL305 Application Example (DL330/DL340 Only)

Memory Mapping

This rung is necessary for all DirectLOGIC CPUs which do not support bit of word instructions. Mapping the Status and Control registers into internal control relays is necessary to have bit level access to this data. The Status and Control register bits are used to monitor pushbuttons, control lamps, and perform asynchronous data exchange between the OP-panel and PLC.

First

Scan

C374

RUNG 3

DSTR F50

R414

DOUT

F60

RC200

DSTR F50

RC220

DOUT

F60

R416

Load the Status Register (m+6) R414/R415.

Output Status Register into Internal Control

Relays C200–C217.

Load the Internal Control Relays C220–C237.

Output to Control Register (m+7) R416/R417.

Kiln Start Control

This rung starts the machine process. The internal control relay Kiln Start (C251) is used to start the Startup Delay Timer, and will remain ON until the L1 control register bit (C220) is energized.

Pushbutton

F1

C200

Green

L1 Lamp

C220

Internal

Kiln Start

C251

Internal

Kiln Start

C251

OUT

Kiln Start signal is energized (ON) if start pushbutton F1 pressed.

RUNG 4

Internal

Kiln Start

C251

Kiln Starting Lamp Control

This rung controls the annunciator lamps during startup mode.

Yellow

L2 Lamp

C221

SET

Yellow

L2F Flash

C224

SET

Red

L3 Lamp

C222

RST

Yellow Lamp (L2) set ON.

Yellow Flash (L2F) set ON.

Reset Red Lamp (L3) OFF.

RUNG 5

DL305 Application Example (DL330/DL340 Only)

Startup Delay Timer

This delay timer signals the System Running (C252) control relay.

Internal

Kiln Starting

C251

Pushbutton

System Startup

F2

C201

Delay Timer

T600

TMR

System Startup

Delay Timer

T600

K20

Kiln Start Delay Timer is energized (ON) if start pushbutton F1 pressed.

C–5

RUNG 6

System Startup

Delay Timer

T600

System Running

This rung sets internal control relay (C252) System Running (C52) ON.

Internal

System Running

C252

SET

Set ON when timer T600 accumulative = preset.

RUNG 7 System Running Lamp Control

This rung controls the annunciator lamps during startup mode.

Internal

System Running

C252

RUNG 8

Green

L1 Lamp

C220

SET

Yellow

L2 Lamp

C221

RST

Yellow

L2 Flash

C224

RST

Kiln running sets Green Lamp (L1) ON.

Resets Yellow Lamp (L2) OFF.

Reset Yellow Flash (L2F) OFF.

Reset System Running

This rung resets internal control relay (C252) System Running when alternating pushbutton 2 (F2) is OFF.

Pushbutton

F2

C201

System Startup

Delay Timer

T600

Internal

System Running

C252

RST

Reset C252 System Running control relay.

C–6

RUNG 9

DL305 Application Example (DL330/DL340 Only)

Kiln Starting Message

This rung displays “Kiln Starting” message when internal (C251) is ON.

Internal

Kiln Starting

C251

RUNG 10

Load integer value K3 = 3.

DSTR

K3

F50

DOUT

F60

R400

Output top Line message #3.

Load integer value K4 = 4.

DSTR

K4

F50

Output bottom line message #4.

DOUT F60

R402

System Running Message

This rung displays the “System Running” message when internal input (C252) is ON.

Internal

System Running

C252

RUNG 11

DSTR

K5

F50

DOUT

F60

R400

Load integer value K5 = 5.

Output top line message #5.

DSTR

K6

F50

DOUT

F60

R402

Load integer value K6 = 6.

Output bottom line message #6.

Kiln System Stopped Message

This rung displays “Kiln System Stopped” when the system is not running or not starting and F2 (pushbutton 2) is pressed.

Internal

Kiln Running

C252

Pushbutton

F2

C201

Internal

Kiln Starting

C251

DSTR

K7

F50

DOUT F60

R400

DSTR

K8

F50

DOUT

F60

R402

Load integer value K7 = 7.

Output top line message #7.

Load integer value K8 = 8.

Output bottom line message #8.

C–7

DL305 Application Example (DL330/DL340 Only)

RUNG 12 Maps R404 (Function Select) to R610

The DL305 only allows the compare statement when using timer and counter registers. This rung maps the function selection number into Timer/Counter registers for compare statement.

Function

Select Bit

C206

RUNG 13

DSTR

R404

F50

DOUT F60

TCA610

Load function selection register value.

Output the function selection number to storage register TCA610.

Setpoint #1 Message Controls

This rung is executed when the Function Select Bit and Menu Enabled are ON and the compare statement is equal such as menu function 1 has been selected.

The output displays the message “Meal Hopper (1–3): ”

“Arrow UP/DOWN = ”

Function

Select Bit

C206

OP–1510 Only

Menu Enable

C227

Top Line

Data/Menu

CT610

=

K1 Load integer value in K9 = 9.

DSTR

K9

F50

DOUT F60

R400

Output top line message #9.

DSTR

K10

F50

Load integer value K10 = 10.

DOUT

F60

R402

Output bottom line message #10.

Load value in Storage register for Setpoint#1.

DSTR

F50

R500

DOUT F60

R404

SP1 In

Process

C341

SET

OP–1510 Only

Menu Enable

C227

RST

Output top line data for SP1 current value.

Set operator entry internal SP1 in process.

Reset ME control bit OFF.

C–8

DL305 Application Example (DL330/DL340 Only)

RUNG 14

SP1

In Process

C341

Data Available

DA

C205

Setpoint #1 Data Storage

This rung stores the up/down arrow value selected for Setpoint #1 after the ENTER key is pressed and Data Available status bit is ON.

DSTR

R410

F50

Load bottom line data entry value.

DOUT F60

R500

Output to Setpoint #1 storage register R500.

DOUT F60

R404

SP1 In

Process

C341

RST

Internal

Entry Complete

C340

SET

Output top line data for SP1 current value.

Reset operator entry internal SP1 in process.

Set operator entry complete.

RUNG 15

C–9

DL305 Application Example (DL330/DL340 Only)

Setpoint #2 Message Controls

This rung is executed when the Function Select Bit and Menu Enabled are ON and the compare statement is equal such as menu function 2 has been selected.

The output displays the message “Kiln Speed (%) : ”

“New Kiln Speed = ”

Function

Select Bit

C206

OP–1510 Only

Menu Enable

C227

RUNG 16

Top Line

Data/Entry

CT610

=

K2

DSTR F50

K11

DOUT F60

R400

DSTR F50

K12

DOUT

F60

R402

DSTR

F50

R502

DOUT F60

R404

Load integer value in K11 = 11.

Output top line message #11 selection.

Load integer value K12 = 12.

Output bottom line message #12 selection.

Load value in storage register for Setpoint #2.

Output top line data for SP2 current value.

SP2 In

In Process

C342

SET

OP–1510 Only

Menu Enable

C227

RST

Set operator entry internal SP2 in process.

Reset ME control bit OFF.

Setpoint #2 Data Storage

This rung stores the keypad entry value for Setpoint #2 after the ENTER key is pressed and Data Available status bit is ON.

SP2

In Process

C342

Data Available

DA

C205

DSTR

R410

F50

Load bottom line data entry value.

DOUT F60

R502

Output to Setpoint #2 storage register R502.

DOUT F60

R404

SP2

In Process

C342

RST

Internal

Entry Complete

C340

SET

Output top line data for SP2 current value.

Reset operator entry internal SP2 in process.

Set operator entry complete.

C–10

DL305 Application Example (DL330/DL340 Only)

RUNG 17 Setpoint #3 Message Controls

This rung is executed when the Function Select Bit and Menu Enabled are ON and the compare statement is equal such as menu function 3 has been selected.

The output displays the message “Zone1 Temp SP : ”

“Enter New Temp.= ”

Function

Select Bit

C206

OP–1510 Only

Menu Enable

C227

RUNG 18

Top Line

Data/Entry

CT610

=

K3 Load integer value in K13 = 13.

DSTR F50

K13

DOUT F60

R400

Output top line message selection.

Load integer value K14 = 14.

DSTR F50

K14

DOUT

F60

R402

Output bottom line message selection.

Load value in storage register for Setpoint #3.

DSTR

F50

R504

DOUT F60

R404

SP3

In Process

C343

SET

OP–1510 Only

Menu Enable

C227

RST

Output top line data for SP3 current value.

Set operator entry internal SP3 in process.

Reset ME control bit OFF.

Setpoint #3 Data Storage

This rung stores the keypad entry value selected for Setpoint #3 after the ENTER key is pressed and Data Available status bit is ON.

SP3

In Process

C343

Data Available

DA

C205

Load bottom line data entry value.

DSTR F50

R410

Output to Setpoint #3 storage register R504.

DOUT F60

R504

DOUT F60

R404

SP3

In Process

C343

RST

Output top line data for SP3 current value.

Reset operator entry internal SP3 in process.

Internal

Entry Complete

C340

SET

Set operator entry complete.

RUNG 19

DL305 Application Example (DL330/DL340 Only)

C–11

Setpoint #4 Message Controls

This rung is executed when the Function Select Bit and Menu Enabled are ON and the compare statement is equal such as menu function 4 has been selected.

The output displays the message “Zone2 Temp SP : ”

“Enter New Temp.= ”

Function

Select Bit

C206

OP–1510 Only

Menu Enable

C227

Top Line

Data/Entry

CT610

=

K4

DSTR F50

K15

DOUT F60

R400

DSTR F50

K16

DOUT

F50

R402

DSTR

F50

R506

Load integer value in K15 = 15.

Output top line message selection.

Load integer value K16 = 16.

Output bottom line message selection.

Load value in storage register for Setpoint #4.

Output top line data for SP4 current value.

DOUT F60

R404

SP4

In Process

C344

SET

Set operator entry internal SP4 in process.

OP–1510 Only

Menu Enable

C227

RST

Reset ME control bit OFF.

RUNG 20

SP4

In Process

C344

Data Available

DA

C205

Setpoint #4 Data Storage

This rung stores the keypad entry value selected for Setpoint #4 after the ENTER key is pressed and Data Available status bit is ON.

DSTR

R410

F50

Load bottom line data entry value.

DOUT

R506

F60

Output to Setpoint #4 storage register R506.

DOUT

R404

F60

SP4

In Process

C344

RST

Internal

Entry Complete

C340

SET

Output top line data for SP4 current value.

Reset operator entry internal SP4 in process.

Set operator entry complete.

C–12

DL305 Application Example (DL330/DL340 Only)

RUNG 21 Setpoint #5 Message Controls

This rung is executed when the Function Select Bit and Menu Enabled are ON and the compare statement is equal such as menu function 5 has been selected.

The output displays the message “Zone3 Temp SP : ”

“Enter New Temp.= ”

Function

Select Bit

C206

OP–1510 Only

Menu Enable

C227

RUNG 22

Top Line

Data/Entry

CT610

=

K5 Load integer value in K17 = 17.

DSTR F50

K17

DOUT F60

R400

Output top line message selection.

Load integer value K18 = 18.

DSTR F50

K18

DOUT

F60

R402

Output bottom line message selection.

Load value in storage register for Setpoint #5.

DSTR

F50

R510

DOUT F60

R404

SP5

In Process

C345

SET

OP–1510 Only

Menu Enable

C227

RST

Output top line data for SP5 current value.

Set operator entry internal SP5 in process.

Reset ME control bit OFF.

Setpoint #5 Data Storage

This rung stores the keypad entry value selected for Setpoint #5 after the ENTER key is pressed and the Data Available status bit is ON.

SP5

In Process

C345

Data Available

DA

C205

Load bottom line data entry value.

DSTR F50

R410

Output to Setpoint #5 storage register R510.

DOUT

R510

F60

DOUT F60

R404

SP5

In Process

C345

RST

Output top line data for SP5 current value.

Reset operator entry internal SP5 in process.

Internal

Entry Complete

C340

SET

Set operator entry complete.

RUNG 23

Status Register

Data Available

C205

DL305 Application Example (DL330/DL340 Only)

C–13

Data Entry Acknowledge

This rung controls confirmation to the OP-panel that data entry and storage are complete.

Control Register

Data Acknowledge

C226

Output is ON when input C5 is ON.

OUT

RUNG 24 Post Entry Control

This rung prepares the program for the next OP-panel operation.

Internal

Entry Complete

C340

Data Availabe

DA

C205

OP1510 Only

Menu Enable

C227

SET

Sets ME control register bit ON.

Internal

Entry Complete

C340

RST

Resets internal control relay Data Entry

Complete.

RUNG 25

SP1 in Process

C341

SP2 in Process

C342

SP3 in Process

C343

SP4 in Process

C344

SP5 in Process

C345

Entry Mode

This rung set internal control relay for Setpoint Entry Mode interlocking.

Setpoint

Entry Mode

C300

SET

Sets internal Setpoint Entry Mode ON.

C–14

DL305 Application Example (DL330/DL340 Only)

RUNG 26 Entry Mode

This rung enables the menu operation, resets setpoint in process, internal control relay for Setpoint Entry Mode interlocking.

OP–1510

Clear/Abort

C207

RUNG 27

Setpoint

Entry Mode

C300

OP–1510

Clear/Abort

C207

Setpoint

Entry Mode

C300

Internal

Entry Complete

C340

Data

Available

C205

OP–1510 Only

Menu Enable

C227

SET

Setpoint

Entry Mode

C300

RST

ME bit set ON allows Menu Operations.

Reset internal setpoint entry mode.

SP1 in Process

C341

RST

Reset internal Setpoint #1 in Process.

SP2 in Process

C342

RST

Reset internal Setpoint #2 in Process.

SP3 in Process

C343

RST

Reset internal Setpoint #3 in Process.

SP4 in Process

C344

RST

Reset internal Setpoint #4 in Process.

SP5 in Process

C345

RST

Reset internal Setpoint #5 in Process.

End of program

This rung marks the END of program.

END

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement