Bottle line example, E–29 – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 472

Advertising
background image

Appendix E
Application Example Programs

E–29

The following application example illustrates how the controller high-speed
counter is configured for an up/down counter. For a detailed explanation of:

LD, SET, RST, and OUT instructions, see chapter 8.

GRT, LES, and GEQ instruction, see chapter 9.

HSC and HSL instructions, see chapter 14.

Stop Fill O:0/0
Slow Fill O:0/1

Sensor IN I:0/0

This section is controlled separately from the two machines.

Sensor OUT I:0/1

Slow Pack O:0/2

Conveyor

Conveyor

Conveyor

Bottle Fill and Cap
Machine

Packing Machine

Holding Area

Bottle Line Operation Overview

The controller on the conveyor, within the specified area above, regulates the
speeds of the bottle fill and packing machines. Each machine is connected to
a separate controller that communicates with the conveyor controller. The
following ladder program is for the conveyor controller.

A conveyor feeds filled bottles past a proximity sensor (IN) to a holding area.
The proximity sensor is wired to the I/0 terminal (up count) of the conveyor
controller. The bottles are then sent on another conveyor past a proximity
switch (OUT) to the packing machine. This proximity switch is wired to the
I/1 terminal (down count) on the same controller.

Bottle Line Ladder Program

Rung 2:0
Loads the high-speed counter with the following parameters:
N7:0 – 0001h Output Mask – Effect only O:0/0
N7:1 – 0001h Output Pattern for High Preset – Energize O:0/0 upon high preset
N7:2 – 350d High Preset – Maximum numbers of bottles for the holding area
N7:3 – 0000h Output Pattern for Low Preset – not used
N7:4 – 0d Low Preset – not used
| First Pass |
| Bit |
| S:1 +HSL–––––––––––––––+ |
|––––] [–––––––––––––––––––––––––––––––––––––––––+HSC LOAD +–|
| 15 |Counter C5:0| |
| |Source N7:0| |
| |Length 5| |
| +––––––––––––––––––+ |

Bottle Line Example

Advertising