On/off circuit instruction list program – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 491

Advertising
background image

Appendix E
Application Example Programs

E–48

On/Off Circuit Instruction List Program

File 2, Rung 0

Does a one-shot from the input push button to an internal bit – the
internal bit is true for only one scan. This prevent toggling of the
physical output in case the push button is held ”ON” for more than one
scan (always the case).

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
Pushbutton Input
I/0 0

29 –OSR– AND–OSR
OSR #1
B/1 0

40 –( )– OUT
Pushbutton false-to-true
B/0 0

File 2, Rung 1

If the push button input has gone from false-to-true and the output is
presently OFF, turn the output ON and jump over the following rung to the
rest of the programs. If the JMP instruction was missing, the following
rung would be true and would turn the output back OFF.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
Pushbutton false-to-true
B/0 0

23 –]/[– ANI
Toggling Output
O/0 0

41 –(L)– SET
Toggling Output
O/0 0

130 JMP
Go to rest of program
LBL# 1

File 2, Rung 2

If the push button input has gone from false-to-true and the output is
presently ON, turns the output OFF.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
Pushbutton false-to-true
B/0 0

22 –] [– AND
Toggling Output
O/0 0

42 –(U)– RST
Toggling Output
O/0 0

Advertising