beautypg.com

Reference – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 389

background image

Application Example Programs

E–39

Rung 2:3
When the part carrier actuates the SHIFT LIMIT SWITCH, three things
happen in this rung: (1) the color of the previously painted part is
unloaded from the FIFO to make room for the color of the new part, (2)
the color of the new part is loaded into the FIFO, (3) the presence or
absence of a part on the part carrier is shifted into the Shift
Register.

| Shift Unload color |
| Limit of previously |
| Switch painted part |
| |
| I:0 +FFU–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––+–+FIFO UNLOAD +–(EU)–+–|
| 0 | |FIFO #N7:0+–(DN) | |
| | |Dest N7:10+–(EM) | |
| | |Control R6:0| | |
| | |Length 4| | |
| | |Position 4| | |
| | +––––––––––––––––––+ | |
| | Load color of | |
| | new part | |
| | +FFL–––––––––––––––+ | |
| +–+FIFO LOAD +–(EU)–+ |
| | |Source N7:4+–(DN) | |
| | |FIFO #N7:0+–(EM) | |
| | |Control R6:0| | |
| | |Length 4| | |
| | |Position 4| | |
| | +––––––––––––––––––+ | |
| | Load the presence | |
| | of the new part | |
| | | |
| | +BSL–––––––––––––––+ | |
| +–+BIT SHIFT LEFT +–(EU)–+ |
| |File #B3:0+–(DN) |
| |Control R6:1| |
| |Bit Address I:0/1| |
| |Length 4| |
| +––––––––––––––––––+ |

Rung 2:4
If there is a part on the part carrier now entering the spraying area,
energize the paint sprayer. If there is not a part on the part
carrier, do not energize the sprayer so you can save paint.

| BSL Spray |
| position 4 Enable |
| |
| B3 O:0 |
|–––[ ]–––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––––|
| 3 3 |

Reference