beautypg.com

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

Page 36

background image

Publication 1760-QS002A-EN-P - April 2004

6-4 Lesson 4

1. Drag the P Button operands and counter (C..) in succession from

the Toolbox, drop them onto the circuit diagram and arrange
them as shown in the following figure.

2. The Properties field window in the Mode tab will propose the

operand number 1.

We will accept the proposed number 1.

The first line of our program will look as follows:

3. As the counter function block is to count the rising edges only,

we must select the option C_ counter coil and Rising edge in
the list box.

4. Select in the Properties field window the Parameters tab.

5. We assign the function block with setpoints in the Function

Block Inputs field. In the SH area for defining the upper
setpoint we select NU (Number = constant value) in the left box
and then enter 16 in the entry box on the right.

6. We want to save the counter result in marker byte 1 (contains

the marker bits 1-8). In the Function Block Output field we
thus have to assign the word output QV to MB 1.

7. In the Parameter Set list box, select the setting Call Enabled.