beautypg.com

Programming with pico-link functions, Programming with pico-link functions -6 – Rockwell Automation 1760 Pico GFX-70 Controllers Quick Start User Manual

Page 48

background image

Publication 1760-QS002A-EN-P - April 2004

7-6 Lesson 5

We shall not, however, discuss the possible settings of Baud Rate and Bus
Delay any further at this point. For the purposes of our exercise, we will use
the default values offered.

To complete our project, only the third device is now required.

1. We then add a 1760-LDFC processor module, a 1760-DUB display

module, and a 1760-IB12XOB4IOF I/O module to the Workbench
using drag and drop.

2. A Pico-Link ID address is automatically proposed in the same way as

when the second device was added. You can also determine the
geographical location of the device. As we already have two devices on
the Workbench, it is possible to place the third device between the first
and the second at location 2.

In our case, we shall leave this field empty and accept the preset values
by clicking OK.

Our training project is now complete so that we can continue with creating the
program.

Programming with
Pico-Link Functions

Our practice program needs to perform the following tasks:

• Pressing the cursor button P1 of device 2 ten times should set output

Q1 on device 3 to “1”.

• Output Q1 of device 3 is to be reset to “0” via the push-button P2 on

device 2.

• Counting is then to start from the beginning.

Device 3 is an input/output device, i.e. does not have its own circuit diagram.

We shall start with the program in device 2 (Pico-Link ID 2), which contains
the reading of cursor buttons P1 and P2. Double-click the Project View on
device 2 (Pico-Link ID 2) to switch to Circuit Diagram View.

As device 2 is a slave and cannot control the outputs of an input/output
device, the signals have to be passed on to the master. This is implemented
using the operand SN bit output via the bus. We use this operand to notify
Pico-Link stations that P1 and P2 were actuated. Wire up your circuit diagram
as shown in the figure below.