beautypg.com

Rockwell Automation 1760 Pico GFX-70 Controllers Quick Start User Manual

Page 39

background image

Publication 1760-QS002A-EN-P - April 2004

Lesson 4 6-7

What is now still missing is the resetting of the counter when the
actual value has reached 16. We also want to zero the wired outputs.
To do this, we use the function block contact OF of the counter.

As previously described, OF is set to “1” if the counter actual value is
greater than or equal to the upper setpoint. OF then switches the reset
input of the counter as well as activating the MR - Master Reset
function block, which, in turn, clears marker byte 1.

The last two lines of the circuit diagram are shown in the following
figure.

The Master Reset MR1 function block is set so that it clears the
marker double words 1-48. Our marker byte 1 is thus also reset and
outputs Q1-Q4 are set to “0”.

Circuit Diagram and
Function Block Diagram
Simulation

Before downloading our program to the connected device, let us look
at it and check it in the Simulator.

1. To do this select Simulation View, for example by choosing

Simulation in the context menu.