GEFanuc Automation
Programmable Control Products
Series 90 -70
I/O Link
Interface Module
GFK–0644A
February 1993
Preface
Content of this Manual
This book is a reference to the features, operation, installation, and configuration of the
GE Fanuc Series 90 -70 I/ O Link Interface Module (IC697BEM721).
Chapter 1. Introduction: Describes the functions and features of the Series 90-70 I/ O
Link Interface Module.
Chapter 2. Installation: Includes basic setup procedures.
Chapter 3. Series 90-70 PLC Configuration: Shows how to add an I/ O Link Interface
Module to the Series 90-70 PLC system.
Chapter 4. Series 90-70 PLC Programming: Explains how to configure, monitor, and
control the I/ O Link Interface Module.
Related Publications
Logicmaster 90-70 Users’s Manual (GFK–0263). Reference manual for system operators
and others using the Logicmaster 90-70 software to program, configure, monitor, or
control a Series 90-70 PLC and/ or a remote drop.
Power Mate Connection, Programming, Maintenance Manual (GFZ–61613). Reference
manual to setting up, programming, operating, and maintaining a Power Mate system.
Series Zero Connection Manuals. For 0 and 00-TC, TF, TTC, MC, MF, GCC, GSC, and PC
controls, the connection manual is GFK–61393. For 0-L and 00-L controls, the connection
manual is GFZ-61573.
Series Zero Operator Manuals. For 0 and 00-TC, TF, TTC, and GCC controls, the operator
manual is GFZ-61394. For 0 and 00-MC, MF, and GSC controls, the operator manual is
GFZ-61404. For 0-PC and 00-PC controls, the operator manual is GFZ-61594. For 0-L and
00-L controls, the operator manual is GFZ-61574.
Series 15 Connection Manual (GFZ-61213E).
Series 15 Operator/Programming Manual (GFZ-61213E).
Series 16 Connection Manual (GFZ-61874E).
Series 16 Operator Manuals. For the 16-MA control, the operator manual is GFZ-61874. For
16-TA and 16-TTA controls, the operator manual is GFZ-61804.
Series 16 Maintenance Manual (GFZ-61805).
We Welcome Your Comments and Suggestions
At GE Fanuc automation, we strive to produce quality technical documentation. After
you have used this manual, please take a few moments to complete and return the
Reader ’s Comment Card located on the next page.
Jeanne Grimsby
senior technical writer
iii
GFK–0644A
Contents
Chapter 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Application Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Module Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Module Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Cable Types for the I/ O Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Optical Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operation of the I/ O Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
3
4
5
6
8
9
14
Chapter 2
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
Installing the I/ O Link Interface Module in the Rack . . . . . . . . . . . . . . . . . . .
Removing the I/ O Link Interface Module from the Rack . . . . . . . . . . . . . . .
Connecting the I/ O Link Interface Module to Other Devices . . . . . . . . . . . .
Serial Port Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Optical Adapter Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
16
17
18
20
Chapter 3
Chapter 4
Logicmaster 90-70Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
ProgrammingGuide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Selecting a Program Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Adding the Program Block Logic to an Application Program . . . . . . . . . . . .
Calling the Program Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program (%P) References for the I/ O Link Program Blocks . . . . . . . . . . . . .
Global (%G) References for the I/ O Link Program Blocks . . . . . . . . . . . . . . .
ConfiguringI/ OLinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Controlling the I/ O Link Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Monitoring Link Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23
24
24
25
26
27
28
30
32
iv
GFK–0644A
Series 90 -70 I/O Link Interface Module User’s Manual - February 1993
restart lowapp ARestart oddapp: ARestarts for autonumbers that do not restart in
each chapter. figure bi level 1, reset table_big level 1, reset chap_big level 1, reset1
Lowapp Alwbox restart evenap:A1app_big level 1, resetA figure_ap level 1, reset
table_ap level 1, reset figure level 1, reset Figure 1. table level 1, reset Table 1.
these restarts oddbox reset: 1evenbox reset: 1must be in the header frame of
chapter 1. a:ebx, l 1 resetA a:obx:l 1, resetA a:bigbx level 1 resetA a:ftr level 1 resetA
c:ebx, l 1 reset1 c:obx:l 1, reset1 c:bigbx level 1 reset1 c:ftr level 1 reset1
Reminders for autonumbers that need to be restarted manually (first instance will
always be 4) let_in level 1: A. B. C. letter level 1:A.B.C. num level 1: 1. 2. 3.
num_in level 1: 1. 2. 3. rom_in level 1: I. II. III. roman level 1: I. II. III. steps level 1:
1. 2. 3.
Chapter 1 Introduction
section level 1 1
figure bi level 1
table_big level 1
1
System Overview
The Series 90–70 I/ O Link Interface Module (IC697BEM721) is used to interface a Series
90–70 PLC to GE Fanuc and Fanuc products which may also be placed on the
proprietary Fanuc I/ O Link. The Fanuc I/ O Link is a serial interface that provides
high–speed exchange of I/ O data between a master device and up to 16 slaves.
SERIES 90–70 PLC
POWER MATE POWER MATE
SLAVE 0 SLAVE 1
a44979
MASTER
WORKMASTER II
PROGRAMMER
FANUC
I/O LINK
(LINK #1)
POWER MATE POWER MATE POWER MATE
SLAVE 0 SLAVE 1 SLAVE 2
MASTER
FANUC
I/O LINK
(LINK #2)
Up to four I/ O Link Interface Modules can be installed in a Series 90–70 PLC. They can
be located in the CPU rack and in expansion racks. Each I/ O Link Interface Module can
be used in either master or slave mode.
Two I/ O Link Interface Modules are shown in the example system illustrated
above––one in the CPU rack and the other in an expansion rack. Each module is set up
as a master with its own I/ O Link. In this example, both of the I/ O Link Interface
Modules exchange data with Power Mate CNCs. Usually, when there are multiple I/ O
Link Modules in the same PLC, they are on separate I/ O Links as shown here. However,
it is possible to have more than one I/ O Link Interface Module in the Series 90–70
connected to the same link, if that suits the needs of the application.
1
GFK-0644A
1
Master or Slave Operation
When used as a master, an I/ O Link Interface Module can receive up to 1024 discrete
inputs from devices on the I/ O Link, and send up to 1024 discrete outputs. Potential
slave devices include the Series 90–30 PLC and the Power Mate CNC.
When used as a slave, the Series 90–70 I/ O Link Interface Module can receive up to 64
discrete inputs from the master, and send up to 64 discrete outputs. The master may be
another Series 90–70 PLC, a Series 15, Series 16, or Series 18 CNC, a Series 0 Model C
CNC, or an F–D Mate CNC. The Series 90–70 PLC and Series 0 CNC can be used as
either master or slave.
In the example system shown below, the Series 90–70 PLC shown at the top functions
as an area controller for three machine cells. The area controller has two I/ O Link
Interface Modules, each of which operates as an I/ O Link master.
AREA CONTROLLER
a45002
SERIES 90–70 PLC
SERIES 0 CNC
I/O LINK
CELL #3
SERIES 90–70 PLC
I/O LINK
POWER MATE POWER MATE
I/O LINK
I/O LINK
POWER MATE POWER MATE
SERIES 0 CNC
SERIES 90–30 PLC
SERIES 90–30 PLC
SERIES 90–30 PLC
CELL #1
CELL #2
In this system, the left I/ O Link from the area controller goes to cell 1, where a Series 0
CNC, two single–axis Power Mate CNCs, and a Series 90–30 PLC are the slaves. They
control the operations of a large machine and its auxiliary equipment. The right I/ O Link
from the area controller goes to another Series 90–70 PLC. That PLC serves as a slave
on the link to the area controller, and as a master on two other links to smaller machine
cells. In cell 2, a Series 0 CNC and a Series 90–30 PLC are the slaves. In machine cell 3,
the slaves are a Series 90–30 PLC and two Power Mate CNCs.
GFK-0644A
2
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
Application Software
The Series 90–70 I/ O Link Interface Module is provided with two application software
diskettes (catalog number IC641SWP708), a 3-inch and a 5-inch diskette. The content
of these diskettes is the same.
This application software can be used to integrate up to four I/ O Link Interface Modules
into the PLC’s application program. There are three Program Blocks on a diskette. Each
will transfer I/ O data between the module and the PLC, perform diagnostics functions,
and transfer application program commands to the module.
One Program Block is selected as being most appropriate for the application, and added
to the application program. Additional application program logic can be created to
perform the following functions:
1. To specify the number of I/ O Link Interface Modules present in the PLC.
2. To specify, for each I/ O Link Interface Module:
A. A rack and slot location in the Series 90–70 PLC.
B. Master or slave operation.
3. And, for each I/ O Link Interface Module that will be a master:
A. To assign a data length and I/ O addresses for each slave on its link.
B. To control operation of the link and monitor module and link status.
Chapter 4 explains how to select the best Program Block for your system, and how to
incorporate it in an application program.
GFK–0644A
Chapter 1 Introduction
3
1
Module Description
An I/ O Link Interface Module occupies one module slot in a Series 90–70 PLC rack. It
can be installed in any rack, in any slot except rack 0 slot 1, which is reserved for the CPU
Module.
a45015
MODULE OK
LINK ACTIVE
LINK CFG
RESET
PUSHBUTTON
MODEL 70
BEM 721
MODEL 70
BEM 721
MODULE OK
MODULE OK
LINK ACTIVE
LINK ACTIVE
LINK CFG
LINK CFG
ON OR BLIN K = OK
ON OR BLIN K = OK
PUSH TO RESET
I/O LINK
PUSH TO RESET
I/O LINK
INTERFACE
INTERFACE
MODULE FUNCTION
MODULE FUNCTION
SERIES 90–70
SERIAL I/O LINK
INTERFACE
SERIES 90–70
SERIAL I/O LINK
INTERFACE
: MASTER MODE
: MASTER MODE
: SLAVE MODE
RS–422/485
RS–422/485
SERIAL PORT
SERIAL PORT
RS–422/485
CONNECTOR
NEXT
NEXT
(JD1A)
(JD1A)
PREVIOUS
(JD1A)
RS–422/485
RS–422/485
SERIAL PORT
SERIAL PORT
RS–422/485
CONNECTOR
NOT
NOT
USED
USED
NEXT
(JD1A)
MODULE
MODULE
IC697BEM721
LABEL
IC697BEM721
LABEL
44A726758–125R01
44A726758–126R01
LEDs
The I/ O Link Interface Module has three LEDS that show its operating, configuration,
and communications status.
Module OK:
Link Active:
Link Cfg:
indicates the module’s operating status.
indicates the module’s communications status.
indicates whether I/ O Link configuration has occurred.
GFK-0644A
4
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
ResetPushbutton
The Reset pushbutton provides a convenient means of reset if a failure occurs. If the
module is being used as a master, pushing the Reset button resets both the module and
operation of the link. The application program must be used to re–initialize the link. If
the module is being used as a slave and a fault has caused the module to stop operating,
pushing the Reset button resets the module while the rest of the link continues to
function.
Note
The Reset pushbutton should not be used if the link is operating
normally. Pressing Reset during normal operation causes the link to
stop operating. The diagnostic program logic interprets this as an
external link failure.
Serial Ports
The front of the module has two 20–pin, D connector, RS–422/ 485 serial ports. These
ports are used for connection to the I/ O Link.
Module Specifications
Physicaldimensions:
6.3in x 9.19in (160mm x 233mm).
Occupies single slot in Series 90–70 rack.
Moduletype:
Series 90–70PLC module, providing I/ O Link commu-
nications with up to 16 slave devices in master mode.
Current requirementfrom +5–volt bus
1.0Amp without Optical Adapter.
0.2Amp per Optical Adapter.
LEDs:
ModuleOK,I/ O Link Active,I/ OLinkConfigured
ResetI/ OLink
Pushbutton:
I/O Points:
In master mode
In slave mode
1024inputs,1024outputsmaximum
64inputs,64outputs maximum
Environmental:
Operatingtemperature
Storagetemperature
Humidity
0ºC to +60ºC (32ºF to +140ºF)
–40ºC to +85ºC (–40ºF to +185ºF)
5% to 95% (non–condensing)
3.5mm displacement 5–9Hz
1 G 10–200Hz
Vibration and shock
15G for 11mSduration
RS–422/485 Serial Ports:
1.5MHz transmission rate.
GFK–0644A
Chapter 1 Introduction
5
1
Cable Types for the I/O Link
The following cables and connectors can be used to complete the I/ O Link between
devices.
Item
CatalogNumber
Vendor
Description
Cable
A03B–0807–K801
GE Fanuc
5 meter length with connectors on both ends.
Connects between master and slave device, or
between two slave devices.
Cable
Cable
A03B–0807–K802
AMW2076
GE Fanuc
10 meter length with connectors on both ends.
Connects between master and slave device, or
between two slave devices.
OKI
Electric
Cable
10–pair shielded cable without connectors, for
making custom–length cable. Connects
between master and slave device, or between
two slavedevices.
Connector
Connector
A02B–0120–K301
GE Fanuc
20–pin connector with solder lug. Consists of
the two following parts.
PCR–E20FS
Honda
20–pin female connector with solder lug.
Connectorcover.
PRC–V20L
Honda
Cable
A03B–0807–K803
GE Fanuc
1 meter length with connectors on both ends.
Connects between master or slave and Optical
Adapter. This cable can only be used with an
OpticalAdapter;do not useit for master/ slave
orslave/ slaveconnections.
Optical
Adapter
A138–154–B001
A66L–6001–009
GE Fanuc
GE Fanuc
Required for opticalfiber cable.
Cable
Optical fiber cable for use with Optical
Adapter.
”
”
”
”
”
”
”
”
”
”
#L10R03
#L15R03
#L20R03
#L30R03
#L40R03
#L50R03
#L60R03
#L80R03
#L90R03
#L100R03
10m
15m
20m
30m
40m
50m
60m
80m
90m
100m
GFK-0644A
6
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
Cable Lengths on the I/O Link
The maximum distance between the master and the first slave, and between successive
slaves, depends on whether electrical or optical cable is used.
The maximum length of an electrical cable link is 10 meters (33 feet).
The maximum length of an optical fiber cable is 100 meters (330 feet).
Electrical and optical cables can be used in the same I/ O Link.
a45006
10m
MASTER
SLAVE
0
10m
1m
SLAVE
1
OPTICAL ADAPTER
OPTICAL FIBER CABLE
100m
OPTICAL ADAPTER
1m
SLAVE
2
10m
SLAVE
03
SLAVE
15
GFK–0644A
Chapter 1 Introduction
7
1
Optical Adapter
An Optical Adapter (A138–154–B001) can be used to interface the electrical cable of the
I/ O Link with optical cable.
a45007
OPTICAL
CONNECTOR
ELECTRICAL
CONNECTOR
JD1
COP1
Use pairs of adapters in applications where:
distances of up to 100 meters (330 feet) are required between any two devices on the
I/ OLink.
the I/ O Link runs between different cabinets, and it is not possible to connect the
2
cabinets with a wire of 5.5mm or thicker.
excessive electromagnetic noise may affect the cable. This includes noise from
machinery such as a welding machine, and noise–generating cable such as power
cable that runs for long distances with the I/ O Link cable.
GFK-0644A
8
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
Operation of the I/O Link
The I/ O Link consists of a full duplex communications channel. Physically, the link
consists of two twisted pairs of wire and a signal ground conductor. These wires are
contained in a cable that has an over–all shield. Signals are of the differential type and a
wire pair is used for each signal. Signal levels are compatible with specification EIA
RS–422/ RS–485. The signal baud rate is 1.5 Mbaud maximum.
Input and Output Data
The master on an I/ O Link can send 1024 outputs and receive up to 1024 inputs from
slave devices. A slave can send and receive either 32 or 64 inputs and outputs. For each
link device, inputs and outputs have the same meaning:
Input Data is data received from the link.
Output Data is data sent to the link.
So the same set of data is considered output data by the device that sends it and input
data by the device that receives it.
a45008
MASTER
INPUTS
SLAVE
INPUTS
OUTPUTS
OUTPUTS
For each Series 90–70 I/ O Link Interface Module used as a master, %I and %Q
references and data lengths for each slave are assigned within the application Program
Block, using Logicmaster 90. Instructions for doing this are given in chapter 4. For other
types of devices on the link, references and data lengths are assigned differently. For
details on how a specific type of device handles its I/ O Link data, you should refer to the
User’s Manual for that device.
GFK–0644A
Chapter 1 Introduction
9
1
Data Sent by the Master
The master sends output data for all slave devices together. If a Series 90–70 PLC is the
master on an I/ O Link, it simply places the data to be sent into the %Q output references
assigned to the I/ O Link Interface Module.
Slaves receive the data in order of their positions on the link. Each slave in turn reads
out its configured amount of data, and passes the remainder on to the next slave. To a
slave, data received from the master is input data. If a Series 90–70 PLC is a slave, it
obtains the data received from the master by reading the %I input references assigned to
the I/ O Link Interface Module.
a45009
MASTER
SLAVE
1
SLAVE
2
SLAVE
3
INPUTS
INPUTS
INPUTS
OUTPUTS
OUTPUTS
OUTPUTS
1
2
3
OUTPUTS
2
3
OUTPUTS
3
OUTPUTS
Data Returned by Slaves
The master continuously reads the output data from each slave. If a Series 90–70 PLC is
a slave, it provides this data by placing it into the %Q references configured for the I/ O
Link Interface Module. If a Series 90–70 PLC is the master, it reads the data from the %I
references assigned to the I/ O Link Interface Module.
a45004
MASTER
SLAVE
1
SLAVE
2
SLAVE
3
INPUTS
MASTER
SLAVE
1
SLAVE
2
SLAVE
3
OUTPUTS
The master identifies each set of data it receives with respect to the slave’s position on
the link. To the master, data received from slaves is input data.
GFK-0644A
10
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
Inputs and Outputs Hold Last State
The inputs and outputs of the I/O Link Interface Module will hold their last states if one of
the following events occurs:
the link is broken.
the master resets.
the slave resets.
the Series 90-70 PLC is put into STOP mode.
the Series 90-70 PLC is powered-down.
When the disruption is corrected, the module initializes all inputs and outputs to zero,
then quickly resets them to their actual states.
GFK–0644A
Chapter 1 Introduction
11
1
Faults on the I/O Link
A. The Series 90–30 PLC, Series 90–70 PLC, and Power Mate CNC without a separate
encoder port handle faults as described below. The following information applies
only if there are no other types of devices on the link.
If one of the following faults occurs, communications stop at the fault location. If
there are prior devices on the link, they are still able to transfer data with the master.
If there are subsequent devices on the link, however, they cannot.
Power is removed from any device.
There is a fault in the I/ O Link cable such as an open or shorted wire.
A module fault, software fault, or hardware fault occurs in the master or slave.
POWER
REMOVED
HERE
a45010
MASTER
SLAVE
1
SLAVE
2
SLAVE
3
DATA
If the master is a Series 90–70 PLC and one of the following faults occurs,
communications continue on the rest of the link.
A slave has been set up for the wrong amount of data.
A Series 90–30 slave is in Stop mode.
The sequence of slaves on the link is not the same as the sequence expected by
the master.
PLACED
IN STOP
MODE
a45011
MASTER
SLAVE
2
SLAVE
1
SLAVE
3
DATA
B. If the link is connected to any other type of device, including a Power Mate CNC
that has a separate encoder port, a fault on any device causes the entire link to shut
down as a safety precaution. If that happens, follow this procedure to restore link
operation.
1. Correct the condition that caused the fault.
2. With the master inactive on the link, clear system errors by power cycling each
CNC slave (turn power off, then on again).
3. Cycle power to each Series 90–30 I/ O Link module, to clear the Logicmaster
fault table.
4. Reset the I/ O link from the master.
GFK-0644A
12
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
1
Diagnostics
The application Program Block automatically provides the Series 90–70 PLC with
diagnostic information about the I/ O Link Interface Module, and about link operation if
the module is operating as a master. The diagnostic information is placed into %P
references assigned to that I/ O Link Interface Module. Additional program logic can be
created to read these %P references for monitoring the following:
Whether an invalid configuration has been provided during link initialization. The
link will not operate until a valid configuration has been supplied.
Whether the I/ O Link Module is operating properly.
Whether input data is being received.
Whether a link fault has occurred.
Chapter 4 explains how to add these diagnostics to an application program.
LinkControl
In addition, the Program Block automatically reads other %P references in the Series
90–70 PLC to receive commands from the application program. These %P references
can be used to instruct the I/ O Link Interface Module to do the following:
Operate as a master or a slave.
Disable or enable the input and/ or output update between the master and slave(s).
Start or restart link operation.
Reset or stop link operation.
Use of these program references is also explained in chapter 4.
GFK–0644A
Chapter 1 Introduction
13
1
Getting Started
To install and configure a Series 90–70 I/ O Link Interface Module, follow these basic
steps:
1. Install the module and complete the I/O Link
Follow the instructions in chapter 2 to install the Series 90–70 I/ O Link Module.
After installing the other devices on the link (as instructed in their individual User ’s
Manuals), complete the I/ O Link cabling. This is also described in chapter 2.
2. Add the I/O Link Module to the Series 90–70 PLC Configuration
Follow the instructions in chapter 3 to complete the Logicmaster 90 configuration
screen for an I/ O Link Interface Module.
3. Select and install an application Program Block from the diskette
Chapter 4 explains how to choose the most appropriate Program Block from an
application diskette, and how to add it to a Program Folder.
4. Complete the program logic for the I/O Link Module
This is also explained in chapter 4.
GFK-0644A
14
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
Chapter 2 Installation
section level 1 1
figure bi level 1
table_big level 1
2
This chapter tells how to install an I/ O Link Interface Module, and how to complete the
I/ O Link that joins the module to other devices.
Installing the I/O Link Interface Module in the Rack
The I/ O Link Interface Module must not be located to the left of any board that
generates interrupts (such as a PCM, Genius Bus Controller, Analog, GEnet LAN, or
Ethernet module).
Caution
Rack power MUST be OFF when installing or removing the I/O Link
Module.
1. Grasp the module firmly with your hand and insert it into the card guide.
2. Align the module’s printed circuit board with the connector on the rack backplane
and slide it towards the connector until it has started to seat.
3. Place one thumb on the left side of the top plastic flange and the other thumb on the
left side of the bottom plastic flange. Push the board into the connector until the top
and bottom latches click onto the rack rails.
4. Visually inspect the board to be sure it has seated properly.
Caution
Make sure no exposed wiring touches any conductive material. Such
contact could damage the module, and other units to which it is
connected.
15
GFK-0644A
2
5. A CPU module must be present in rack 0 slot 1 before applying power to the I/O Link
InterfaceModule. Turn on power, and observe the LEDs.
LED Name LED Status
Indication
Module OK
On
TheI/ O LinkInterface Module has passed its powerup
diagnostics and the hardware is operating properly.
OFF
The module has failed a diagnostic test, or a run–time failure
has been detected.
LinkActive
Link Cfg
On
The module is communicating with the I/ O Link.
OFF
A failure has occurred with the I/ O Link, and
communicationsarenotpossible.
ON
I/ OLinkconfiguration hasoccurred, and the module is ready
tocommunicate.
OFF
The module has not been configured for link operation.
Note
If a CPU is powered up for the first time after being received from the
factory (or for the first time after its configuration has been cleared or its
battery has been removed), and there is an I/ O Link Interface Module
present in one of the racks of the PLC, a “Loss of Module” diagnostic is
generated in the PLC.
To proceed, clear the fault and download a configuration to the CPU.
See chapter 3 for configuration instructions. Once the CPU has been
configured, the “Loss of Module” diagnostic will only occur if the
module subsequently fails or is removed.
Removing the I/O Link Interface Module from the Rack
1. Remove power from the rack.
2. Squeeze the rack clips on the back of the cover to disengage the clips from the rack
rail.
3. Pull the module firmly to remove it from the backplane connector.
4. Slide the board along the card guide and remove it from the rack. Avoid contact with
neighboring boards and wiring.
GFK-0644A
16
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
2
Connecting the I/O Link Interface Module to Other Devices
Using the appropriate cable, connect the devices on the I/ O Link. Notice that the cables
are marked JD1A on one end and JD1B on the other.
Ports on the I/O Link Module
The functions of the ports on the I/ O Link Interface Module depend on whether the
module is used as a master or as a slave.
a45016
Series 90-70
I/O Link
Series 90-70
I/O Link
Interface Module
(as slave)
Interface Module
(as master)
JD1A
JD1B
JD1B
JD1A
not
used
If the system also includes a Series 90–30 PLC, you will notice that the port functions for
the Series 90–30 I/ O Link Interface Module are the same as the port functions on the
Series 90–70 I/ O Link Interface Module when it is used as a slave.
I/O Link Module Used as a Master
If the module will be used as a master, connect the cable from the first slave to the upper
port. The lower port is not used in master mode.
a45017
JD1A
JD1B
JD1B
not
used
GFK-0644A
Chapter 2 Installation
17
2
I/O Link Module Used as a Slave
If the module will be used as a slave, connect the cable from the previous device (either
the master or another slave) to the upper port. If the module is followed by another
slave on the link, connect the cable from that device to the lower port.
a45018
JD1A
JD1B
JD1A
JD1B
Order of the Devices on the Link
The devices on an I/ O Link must be installed in the order expected by the master. If the
Series 90–70 PLC is the master, be sure to connect the devices on a link in the order that
agrees with the information provided to the application Program Block.
Serial Port Pin Assignments
Pin #
Signal
Pin #
Signal
1
2
SIN
*SIN
11
12
13
14
15
16
17
18
19
20
0volts
0volts
0volts
0volts
0volts
0volts
3
SOUT
*SOUT
4
5
6
7
8
+5 volts
+5 volts
9
+5 volts
10
The +5–volt output from each connector powers the fiber optic link modules for long
distance applications. The +5–volt output is not used otherwise.
GFK-0644A
18
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
2
Cable Diagram, No Optical Adapter
The following illustration shows connection details for electrical cable used between a
master and slave or between two slave devices. This cable (A03B–0807–K801,
A03B–0807–K802, or cable made using AMW 2076 and connectors A02B–0120–K301)
does not include the +5–volt signal. Optical Adapter cable, which includes the +5 volt
signal, must not be used to directly connect master and slave devices.
a45019
JD1A
01
JD1B
11
SIN
01
02 SIN*
03
SIN
8SIN
0V
0V
0V
0V
0V
0V
0V
0V
11
12
13
02
03
04
05
06
07
08
09
10
PCR–E20FS
12
13
14
15
16
17
18
19
20
SOUT
*SOUT
SOUT
04 SOUT* 14
05
06
07
08
09
10
15
16
17
18
19
20
JD1A
JD1B
SIN
SIN
(1)
(2)
(3)
(3) SOUT
(4) SOUT*
(1) SIN
(2) SIN*
(11) 0V
*
*SOUT (4)
MASTER
OR
SLAVE
0V (11)
SLAVE
0V (12)
0V (13)
0V (14)
(12) 0V
(13) 0V
(14) 0V
The differential signals, SIN/ *SIN, and SOUT/ *SOUT must be connected using twisted
pair wires.
Caution
The I/O Link cable’s shield must be connected to chassis ground in
your system. Use the grounding cable (44A729227) provided.
GFK-0644A
Chapter 2 Installation
19
2
Optical Adapter Installation
The Optical Adapter is an optional component used to interface the electrical cable to
optical cable.
An Optical Adapter must be installed in a sealed enclosure. Avoid contact with other
electrical components or wiring, which could short the unit. Use the adapter ’s casing
screws to make earth ground connection. The electrical potential of the earth ground
used for the adapter must be the same as that of the I/ O Link to which it is connected.
CableConnections
Connection between two optical adapters is made using optical fiber cable
A66L–6001–009. Lengths of 10 to 100 meters are available. Connect the optical fiber
cable to COP1 on the adapter unit.
a45014
OPTICAL
I/O LINK
ADAPTOR
OPTICAL
I/O LINK
ADAPTOR
UNIT
UNIT
ELECTRICAL
CABLE
OPTICAL
CABLE
ELECTRICAL
CABLE
JD1A
JD1
COP1
COP1
JD1
JD1B
Connection between a master or slave device and an Optical Adapter is made using
electrical cable A03B–0807–K803, which is a one–meter cable with connectors on both
ends. Connect this cable to JD1 on the adapter. A connection diagram is shown below.
Cable Diagram, Electrical Cable to Optical Adapter
Cable A03B–0807–K803 provides the +5–volt signal required by the Optical Adapter.
Do not use this cable to directly connect master or slave devices; use it only with an
Optical Adapter.
a45020
UNIT SIDE
JD1A, JD1B
ADAPTER SIDE
JD1
SIN
*SIN
SOUT
*SOUT
+%V
+5V
+5V
0V
(01)
(03) SOUT
SIN
SIN
0V
0V
0V
0V
0V
0V
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
*
(02)
(03)
(04)
(09)
(18)
(20)
(11)
(12)
(13)
(14)
(15)
(16)
(04) SOUT
(01) SIN
(02) SIN*
(09) +5V
(18) +5V
(20) +5V
(11) 0V
(12) 0V
(13) 0V
(14) 0V
(15) 0V
(16) 0V
*
SOUT
SOUT
*
0V
0V
0V
0V
+5V
+5V
+5V
0V
Note
The +5–volt output on the Series 90–70 I/ O Link Module is fused with
a 0.5 Amp fuse. The fuse is not field replaceable.
GFK-0644A
20
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
Chapter 3 Logicmaster 90-70 Configuration
section level 1 1
figure bi level 1
table_big level 1
3
This chapter explains the Logicmaster 90–70 software configuration steps related to a
Series 90–70 I/ O Link Interface Module. For the I/ O Link Module, this configuration only
designates the location of the module; it does not assign I/O references. After the module itself has
been “installed” using Logicmaster 90, you will set up and initialize the I/O Link as explained in
chapter 4.
ConfigurationSteps
1. In the LM90 configuration software, select I/ O Configuration.
2. Display the configuration screen for the rack where the module will be located. The
Next Page and Prev Page keys are used to move between rack configuration screens.
3. In the correct rack display, move the reverse video cursor to the module’s intended
slot. (Use the left and right cursor keys to move the cursor).
Note
DO NOT locate an I/ O Link Interface Module to the left of any board that
generates interrupts (such as a PCM, Genius Bus Controller, Analog, GEnet
LAN, or Ethernet module).
21
GFK-0644A
3
4. If you are using version 4 of Logicmaster, press F1 (vme) to display the catalog list
shown below. Select Foreign VME from the list.
If you are using version 3 of Logicmaster instead press F2 (vme) to display the
catalog list. From the list, select Foreign VME (no interrupt).
5. No further configuration is required; press Rack (Shift–F1) or the Escape key to
return to the rack display.
GFK-0644A
22
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
Chapter 4 ProgrammingGuide
section level 1 1
figure bi level 1
table_big level 1
4
This chapter explains how to incorporate logic for one to four I/ O Link Interface
Modules in an application program for the Series 90–70 PLC. Programming instructions
for other devices on the link are not included.
Overview
The Program Blocks on the diskettes provided with the I/ O Link Interface Module will
transfer input and output data between the Series 90–70 PLC and up to four I/ O Link
Interface Modules. The Program Blocks also monitor diagnostics from each I/ O Link
Interface Module in the PLC, and provide a mechanism for controlling link operation
from the application program.
One Program Block is selected for the application, and added to the application program
using the Librarian function of Logicmaster 90–70.
Logic must be added to the application program to call the Program Block, which will
execute once each time it is called. Normally, it is called once per PLC sweep.
The Program Block utilizes a range of %P references, set aside in PLC memory, to
exchange data with the Series 90–70 PLC. The application program interfaces with the
Program Block by reading and writing the same %P references. The Program Block also
makes use of a small group of %G references. These do not require any application
program interaction. However, it is important to be sure that these %G references are
not used for any other purpose.
23
GFK-0644A
4
Selecting a Program Block
There are three Program Blocks on a diskette. Select the Program Block that provides
the level of functionality and performance required for the application.
Program Block
Identifier
Number of I/O
Link Modules
Maximum Number
of References
Compatible CPUs
LINK73X
LINK77X
LINK78X
1
2
4
512points
2048points
4096points
731/ 7327,71/ 7727,81/ 782
771/ 7727,81/ 782
781/ 782
The LINK73X Program Block provides the fastest update speed and has the lowest
memory requirements, but is limited to a single I/ O Link Interface Module per 90–70
system and 512 I/ O points. LINK77X provides up to two I/ O Link Interface Modules per
90–70 PLC and 2048 I/ O points, but it is slightly slower and requires more memory.
LINK78X accommodates up to four I/ O Link Interface Modules per PLC and provides
up to 4096 I/ O points. Its update rate is slower than the other two Program Blocks, and
it uses more memory.
For the 731/ 732 CPU, the LINK73X Program Block is required. For the 771/ 772CPU,
either LINK73X or LINK77X can be used. For the 781/ 782 CPU, any of the three
Program Blocks can be used. Remember that the smaller Program Blocks will give better
performance.
Addingthe Program Block Logic to an Application Program
To add a Program Block to an application program, follow these steps:
1. Copy the selected Program Block library file from the diskette to the Logicmaster
90–70 library directory(suchas:c:\ lm90\ p70\ p70_lib).
2. Using the Librarian function (available with Logicmaster 90–70 version 3.0 or later),
import the Program Block into the working folder.
3. If the application program will use nicknames for the Program Block %P references
(see page 27), include the nicknames in the Variable Declaration Table. The
nicknames are provided as three .SDE files in the program folder on the application
software diskette: LINK73SX.SDE, LINK77SX.SDE, and LINK78SX.SDE. To include
the appropriate file, go to the Variable Declarations in the working folder, select
“include”, and enter the path and filename (such as: c:\ link\ link73sx.sde).
4. Complete the application program logic as described on the following pages.
GFK-0644A
24
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
Calling the Program Block
To call the LINKxxX block, place a Call instruction as close as possible to the start of the
main program. To assure consistent mapping of link I/ O data, do not use permissive
logic to the call. Include at least one call to the LINKxxX block each program sweep, to
assure that the link status is routinely updated and the link retry mechanism is enabled.
This is discussed in more detail later in the chapter.
Example Call Instruction
In this example, the Call instruction calls Program Block LINK73X.
[
[
INTERRUPTS
START OF PROGRAM BLOCK ]
]
CALL LINK73X
Using Multiple Calls to the Program Block
For most applications, the main program will include only one Call instruction to the
LINKxxX Program Block. However, it is possible to use multiple calls in the program. For
example, a call might be used at a particular place in the program to update inputs, outputs,
or both. In this way, the Program Block call would serve as a “DoI/ O” instruction.
In applications with long communications windows or in Constant Sweep Time mode, a
call to LINKxxX might be used at the beginning of the program to update only inputs,
with another call at the end to update only outputs.
When using multiple calls to the LINKxxX Program Block, all additional calls after the first
should use the set status of the “Link Active” status bit as a permissive to their execution.
GFK–0644
Chapter 4 Programming Guide
25
4
Program (%P) References for the I/O Link Program Blocks
The I/ O Link Program Blocks use the program registers (%P) shown below. The
references for devices 1 to 15 are used only if the I/ O Link Module is a master, and it has
more than one slave.
Information in Reference
Program Reference
Nickname
Number ofI/ O Link Modules
(1–4)
%P0001
numlink
1stModule
2nd Module
3rd Module
4th Module
Nickname
Nickname
Nickname
Nickname
Program
Ref.
Program
Ref.
Program
Ref.
Program
Ref.
Rack location # (0–7)
Slot location # (2–9)
%P0002
%P0003
%P0004
%P0005
%P0006
L1rack
L1slot
L1stat
L1cntrl
L1dev0
%P0054
%P0055
%P0056
%P0057
%P0058
L2rack
L2slot
L2stat
L2cntrl
L2dev0
%P0106
%P0107
%P0108
%P0109
%P0110
L3rack
L3slot
L3stat
L3cntrl
L3dev0
%P0158
%P0159
%P0160
%P0161
%P0162
L4rack
L4slot
L4stat
L4cntrl
L4dev0
Status word (see page 32.)
Control word (see page 30.)
Device 0 (or I/ O Link Module used as
slave), slave data length (32 or 64)
” slave start address of %I
%P0007
%P0008
L1dev0I
L1dev0Q
%P0059
%P0060
L2dev0I
L2dev0Q.
%P0111
%P0112
L3dev0I
L3dev0Q
%P0163
%P0164
L4dev0I
L4dev0Q
” slave start address of %Q
Device 1, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0009
%P0010
%P0011
L1dev1
L1dev1I
L1dev1Q
%P0061
%P0062
%P0063
L2dev1
L2dev1I
L2dev1Q
%P0113
%P0114
%P0115
L3dev1
L3dev1I
L3dev1Q
%P0165
%P0166
%P0167
L4dev1
L4dev1I
L4dev1Q
Device 2, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0012
%P0013
%P0014
L1dev2
L1dev2I
L1dev2Q
%P0064
%P0065
%P0066
L2dev2
L2dev2
IL2dev2Q
%P0116
%P0117
%P0118
L3dev2
L3dev2I
L3dev2Q
%P0168
%P0169
%P0170
L4dev2
L4dev2I
L4dev2Q
Device 3, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0015
%P0016
%P0017
L1dev3
L1dev3I
L1dev3Q
%P0067
%P0068
%P0059
L2dev3
L2dev3I
L2dev3Q
%P0119
%P0120
%P0121
L3dev3
L3dev3I
L3dev3Q
%P0171
%P0172
%P0173
L4dev3
L4dev3I
L4dev3Q
Device 4, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0018
%P0019
%P0020
L1dev4
L1dev4I
L1dev4Q
%P0070
%P0071
%P0072
L2dev4
L2dev4I
L2dev4Q
%P0122
%P0123
%P0124
L3dev4
L3dev4I
L3dev4Q
%P0174
%P0175
%P0176
L4dev4
L4dev4I
L4dev4Q
Device 5, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0021
%P0022
%P0023
L1dev5
L1dev5I
L1dev5Q
%P0073
%P0074
%P0075
L2dev5
L2dev5I
L2dev5Q
%P0125
%P0126
%P0127
L3dev5
L3dev5I
L3dev5Q
%P0177
%P0178
%P0179
L4dev5
L4dev5I
L4dev5Q
Device 6, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0024
%P0025
%P0026
L1dev6
L1dev6I
L1dev6Q
%P0076
%P0077
%P0078
L2dev6
L2dev6I
L2dev6Q
%P0128
%P0129
%P0130
L3dev6
L3dev6I
L3dev6Q
%P0180
%P0181
%P0182
L4dev6
L4dev6I
L4dev6Q
Device 7, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0027
%P0028
%P0029
L1dev7
L1dev7I
L1dev7Q
%P0079
%P0080
%P0081
L2dev7
L2dev7I
L2dev7Q
%P0131
%P0132
%P0133
L3dev7
L3dev7I
L3dev7Q
%P0183
%P0184
%P0185
L4dev7
L4dev7I
L4dev7Q
Device 8, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0030
%P0031
%P0032
L1dev8
L1dev8I
L1dev8Q
%P0082
%P0083
%P0084
L2dev8
L2dev8I
L2dev8Q
%P0134
%P0135
%P0136
L3dev8
L3dev8I
L3dev8Q
%P0186
%P0187
%P0188
L4dev8
L4dev8I
L4dev8Q
Device 9, slave data length (32 or 64)
” slave start address of %I
” slave start address of %Q
%P0033
%P0034
%P0035
L1dev9
L1dev9I
L1dev9Q
%P0085
%P0086
%P0087
L2dev9
L2dev9I
L2dev9Q
%P0137
%P0138
%P0139
L3dev9
L3dev9I
L3dev9Q
%P0189
%P0190
%P0191
L4dev9
L4dev9I
L4dev9Q
Device 10, slave data length (32 or 64) %P0036
L1dev10
L1dv10I
L1dv10Q
%P0088
%P0089
%P0090
L2dev10
L2dv10I
L2dv10Q
%P0140
%P0141
%P0142
L3dev10
L3dv10I
L3dv10Q
%P0192
%P0193
%P0194
L4dev10
L4dv10I
L4dv10Q
” slave start address of %I
%P0037
” slave start address of %Q
%P0038
Device 11, slave data length (32 or 64) %P0039
L1dev11
L1dv11I
L1dv11Q
%P0091
%P0092
%P0093
L2dev11
L2dv11I
L2dv11Q
%P0143
%P0144
%P0145
L3dev11
L3dv11I
L3dv11Q
%P0195
%P0196
%P0197
L4dev11
L4dv11I
L4dv11Q
” slave start address of %I
%P0040
” slave start address of %Q
%P0041
Device 12, slave data length (32 or 64) %P0042
L1dev12
L1dv12I
L1dv12Q
%P0094
%P0095
%P0095
L2dev12
L2dv12I
L2dv12Q
%P0146
%P0147
%P0148
L3dev12
L3dv12I
L3dv12Q
%P0198
%P0199
%P0200
L4dev12
L4dv12I
L4dv12Q
” slave start address of %I
%P0043
” slave start address of %Q
%P0044
Device 13, slave data length (32 or 64) %P0045
L1dev13
L1dv13I
L1dv13Q
%P0097
%P0098
%P0099
L2dev13
L2dv13I
L2dv13Q
%P0149
%P0150
%P0151
L3dev13
L3dv13I
L3dv13Q
%P0201
%P0202
%P0203
L4dev13
L4dv13I
L4dv13Q
” slave start address of %I
%P0046
” slave start address of %Q
%P0047
Device 14, slave data length (32 or 64) %P0048
L1dev14
L1dv14I
L1dv14Q
%P0100
%P0101
%P0102
L2dev14
L2dv14I
L2dv14Q
%P0152
%P0153
%P0154
L3dev14
L3dv14I
L3dv14Q
%P0204%
P0205
%P0206
L14ev14
L4dv14I
L4dv14Q
” slave start address of %I
%P0049
” slave start address of %Q
%P0050
Device 15, slave data length (32 or 64) %P0051
L1dev15
L1dv15IL1d %P0104
v15Q %P0105
%P0103
L2dev15
L2dv15I
L2dv15Q
%P0155
%P0156
%P0157
L3dev15
L3dv15I
L3dv15Q
%P0207
%P0208
%P0209
L4dev15
L4dv15I
L4dv15Q
” slave start address of %I
%P0052
” slave start address of %Q
%P0053
GFK-0644A
26
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
Using Nicknames for the %P References
If you want to use the %P nicknames listed in the table, add them to the Variable
Declaration Table (see page 24).
Global (%G) References for the I/O Link Program Blocks
The %P references listed in the previous table are used for link configuration, control,
and monitoring. They will be included in the application program as explained on
subsequent pages.
An I/ O Link Program Block also uses certain %G references for its own operations.
These %G references should not be included in the application program. They should be
reserved for the exclusive use of the Program Block.
Program Block Identifier
%G References to be
Reserved
LINK73X
LINK77X
%G1025 – %G1040
%G1025 – %G1040
%GA1025 – %GA1040
%GB1025 – %GB1040
%G1025 – %G1040
LINK78X
%GA1025 – %GA1040
%GB1025 – %GB1040
%GC1025 – %GC1040
%GD1025 – %GD1040
GFK–0644
Chapter 4 Programming Guide
27
4
ConfiguringI/O Links
In the application program, use Move and Block Move instructions to configure the I/ O
Links in the system by placing the required data in the appropriate %P program
references.
ConfigurationLogic, Example
Use Move instructions to supply the number of I/ O Link Interface Modules (1), and the
rack location (0), and slot location (5) of that module.
|
+–––––+
+–––––+
+–––––+
+––––––––+MOVE_+–––––––––––––––––+MOVE_+–––––––––––––––––+MOVE_+–
|
|
| INT |
| NUMLINK
| INT |
| L1RACK
| INT |
| | L1SLOT
|
|
| CONST –+IN Q+–%P00001 CONST –+IN Q+–%P00002 CONST –+IN Q+–%P00003
| +00001 | LEN |
+00000 | LEN |
|00001|
+00005 | LEN |
|00001|
|
|
|
|00001|
+–––––+
+–––––+
+–––––+
Block Move instructions can supply the data lengths and beginning %I and %Q
addresses for six slaves on the link, which is link 1 in this example.
|
+–––––+
+–––––+
+–––––+
+––––––––+BLKMV+–––––––––––––––––+BLKMV+–––––––––––––––––+BLKMV+–
|
|
| INT |
| L1DEV0
| INT |
| L1DEV2
| INT |
| | L1DEV4
|
|
| CONST –+IN1 Q+–%P00006 CONST –+IN1 Q+–%P00012 CONST –+IN1 Q+–%P00018
| +00032 | LEN |
+00032 | LEN |
|00001|
+00032 | LEN |
|00001|
|
|
|00001|
|
|
|
|
|
|
| CONST –+IN2 |
CONST –+IN2 |
CONST –+IN2 |
| +00001 |
|
|
+00097 |
|
|
|
+00151 |
|
|
|
|
|
| CONST –+IN3 |
CONST –+IN3 |
CONST –+IN3 |
| +00001 |
|
|
+00097 |
|
|
|
+00151 |
|
|
|
|
|
| CONST –+IN4 |
CONST –+IN4 |
CONST –+IN4 |
| +00064 |
|
|
+00032 |
|
|
|
+00064 |
|
|
|
|
|
| CONST –+IN5 |
CONST –+IN5 |
CONST –+IN5 |
| +00033 |
|
|
+00129 |
|
|
|
+00215 |
|
|
|
|
|
| CONST –+IN6 |
CONST –+IN6 |
CONST –+IN6 |
| +00033 |
|
|
+00129 |
|
|
|
+00215 |
|
|
|
|
|
| CONST –+IN7 |
CONST –+IN7 |
CONST –+IN7 |
| +00000 |
|
+00000 |
|
+00000 |
|
|
+–––––+
+–––––+
+–––––+
The first Block Move configures the length and beginning %I and %Q addresses of
devices 0 and 1. The second Block Move configures devices 2 and 3. The third Block
Move configures devices 4 and 5. To simplify programming, IN7 in these Block Moves is
not used. If there were more I/ O Links, or more devices on link 1, they would be
configured in the same manner.
GFK-0644A
28
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
ConfigurationGuidelines
To configure the I/ O Link(s) in a PLC system, enter constant data values into the
appropriate %P registers. These values determine:
The number of I/ O Link Interface Modules in the PLC.
The rack and slot location of each I/ O Link Interface Module.
The data length for each slave device (32 or 64 for a Power Mate).
The beginning address in PLC %I memory for input data.
The beginning address in PLC %Q memory for output data.
This must be done before the start command is issued to any I/ O Link Interface Module
(as explained later in this chapter).
Program references for the I/ O Link Program Blocks are listed in the table opposite.
Specify the Number of I/O Link Modules
The total number of modules specified in %P must be compatible with the Program
Block being used:
A. for LINK73X, %P00001 must be 1
B. for LINK77X, %P00001 may be 1 or 2
C. for LINK78X, %P00001 may be 1 to 4
Configuring the I/O Link Module as a Master
If the I/ O Link Interface Module is a master, specify a data length and references for each
slave on the I/ O Link. The data length (I/ O count) for each device must be 0, 32, or 64.
No other values are correct.
The starting %I and %Q addresses must be compatible with the Program Block being used:
A. for LINK73X, the range is (1 to 481) or (1 to 449)
B. for LINK77X, the range is (1 to 2017) or (1 to 1985)
C. for LINK78X, the range is (1 to 4065) or (1 to 4033)
Configure all devices to have consecutive numbers; do not leave any “holes” in the
configuration for a module. If a 0 is configured for a slave’s data length, the data lengths
of all subsequent slaves on the same link must also be 0.
Note
All %P references from %P0009 through %P0209 which are not used for the
application must be set to 0 before the link is activated.
Configure all %I and %Q starting addresses at word boundaries.
Configuring the I/O Link Module as a Slave
If the module is a slave, configure it to be Device 0. Specify its data length (32 or 64) and
references.
Assign a starting %I and %Q address for the module that is compatible with the
Program Block being used. The %I and %Q addresses must begin on word boundaries.
Set to 0 the unused %P references for devices 1 through 15. See “Configuring theI/ O
Link Module as a Master ”, above.
GFK–0644
Chapter 4 Programming Guide
29
4
Controllingthe I/O Link Module
Operation of the module is controlled by setting or clearing bits in the control word,
which is located at:
%P00005 for link 1
%P00057 for link 2
%P00109 for link 3
%P00161 for link 4
The bits in the control word for each I/ O Link Interface Module contain the following
information:
MSB
LSB
unlabelled bits not used
16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
Disable output update = 1
Disable input scan = 1
reserved (must be 0)
Reset/stop link = 1
Start link = 1
Always set to 0
Master = 1
Slave=0
These are one–shot commands. Do not repeatedly write to these bits––that would
unnecessarily increase program PLC sweep time and cause unexpected link results.
Set Master or Slave Mode (bit 16)
Set the most significant bit of the control word as part of the configuration routine that
loads all of the other %P registers with the correct values. To use the module as a master,
set this bit to 1. To use the module as a slave, set it to 0.
Start/Restart (bit 15)
After loading a valid configuration into the appropriate %P registers, write a 1 into
control bit 15 using a one–shot permissive. The module confirms receipt of the start
command by resetting this bit to a 0.
If the module is being used as a master, setting this bit to 1 starts the module and the
link. It can also be used to restart the link after a link reset has occurred.
If the module is being used as a slave, use this bit to start or restart the module itself (not
the link).
Reset or Stop (bit 13)
To stop or reset the module, write a 1 to control bit 13, using a one–shot permissive. The
module confirms receipt of the command by resetting bit 13 to a 0. The status shows
Error Code 6, indicating that a reset was issued and the fault bit was not set.
GFK-0644A
30
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
If the module is a master, this bit resets or stops both the module and the I/ O Link. If
the module is a slave, setting this bit to 1 resets or stops only the module itself, not the
I/ OLink.
Disable or Enable the Input Update (bit 10)
To disable the input update portion of the I/ O scan, write a 1 to control bit 10. This might
be done during program debugging, or if the program uses multiple calls to the
LINKxxX Program Block. Disabling the input update causes the module to ignore new
inputs it receives. To re–enable input updates, clear control bit 10 by writing a 0 to it.
Remember that input data is considered to be output data by the device that sends it
(see page 26 for an explanation of input and output data).
If the module is a master, setting this bit to 1 causes all input references assigned to
devices on the link to hold their last states. The slaves continue to send data to the
master, but the new data is ignored by the master; no data is written to the input table.
If the module is a slave, setting this bit to 1 causes the input references assigned to the
module to hold their last states. The master continues to send data to the slave, but the
new data is ignored by the slave. No data is written to the input table.
Disable or Enable the Output Update (bit 9)
Disabling the output update keeps the module from updating outputs; it does not keep
the module from sending them. If outputs are disabled, the module keeps sending its last
set of output data repeatedly. This might be desirable during program debugging, or if
the program uses multiple calls to the Program Block.
Remember that output data is considered to be input data by the device that receives it.
To disable the output update, write a 1 to control bit 9. To re–enable output updates,
clear control bit 9 by writing a 0 to it.
If the module is a master, disabling the output update means that no new data will be
sent to any slaves on the link. They will continue to receive the same set of data from
the master repeatedly.
If the module is a slave, disabling the output update means that no new data will be sent
to the master. It will continue to receive the same set of data from that specific slave
repeatedly.
GFK–0644
Chapter 4 Programming Guide
31
4
Monitoring Link Operation
For each link, the Program Block uses a specific program register (%P) for status data.
These are:
%P00004 for link 1
%P00056 for link 2
%P00108 for link 3
%P00160 for link 4
Monitor the status word for information about:
A. the operation of the interface module
B. the operation of the link
C. detailed error codes to help diagnose problems
Bits in the status word for an I/ O Link contain the following information:
MSB
LSB
unlabelled bits not used
16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
reserved
Error code
Fault active = 1
Link failed = 1
Link active = 1
Board OK = 1
Bits 9 to 12 of the status word are reserved; they should be zeros.
Monitor the Module (bit 16)
This bit shows the status of module operation, and of link operation if the module is a
master. The application program should monitor this bit. If it is 0, the program should
take appropriate action such as ignoring any I/ O or status information from the module.
The Program Block automatically sets bit 16 to 1 when the module passes its powerup
diagnostics, the correct rack and slot are placed in the %P configuration registers, and
VME backplane communications have been established.
The Program Block resets bit 16 to 0 if a module hardware fault is detected, or backplane
communications are interrupted.
Pressing the I/ O Link Interface Module’s Reset pushbutton does not clear this bit. The
Program Block will only try to reinitialize the module after completing powerup
diagnostics. An automatic retry will occur only after link faults; the user must restart the link
after a hardware reset.
Monitor Communications Status (bit 15)
Monitor status bit 15 to check the status of communications on the link. If this bit is a 0,
input data is NOT being received, and appropriate action should be taken. The Program
GFK-0644A
32
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
Block automatically sets this bit to 1 shortly after the application program sets control bit
15 (start bit) to a 1.
If the module is a master, bit 15 is 1 if all link devices are providing input data and are
ready to receive output data. The Program Block automatically resets this bit to a 0 if any
link fault occurs.
If the module is a slave, bit 15 is 1 if the module is ready to exchange data with the
master.
Monitor for Link Failure (bit 14)
If the module is a master, after a link fault occurs, and the specified number of retries
have failed, the Program Block sets this bit to a 1. It is necessary to manually intervene
to find the cause of the failure. Look at the error code in the least significant byte of the
status word. Error codes are listed in the next table.
After the problem is corrected, reinitialize and restart the link. The Program Block
automatically clears status bit 13 when a restart is attempted.
Monitor for an Invalid Configuration or Link Fault (bit 13)
The application program should monitor this bit to verify operation of the I/ O Link.
If status bit 13 is a 1, either an invalid configuration was provided during link
initialization, or a fault has occurred on an active link. The Program Block sets this bit to
a 1 immediately after the problem occurs.
If the problem occurs during initialization, initialization stops. It will be necessary to
enter a valid configuration into the %P registers before initialization can continue. The
error code in the least significant byte of the status word will indicate what the
configuration problem is.
If the module is a master and the problem is an active link fault, the Program Block
automatically tries to restart the link the specified number of times.
The Program Block automatically clears this bit when the link becomes active again. If
this bit continually cycles on and off, the link wiring and devices should be inspected. The
application program can keep track of the number of link faults over time, and take appropriate
action if too many faults occur.
GFK–0644
Chapter 4 Programming Guide
33
4
Error Codes: Troubleshooting
The less significant byte of an I/ O Link status register contains an error code supplied by
the Program Block. Error codes are listed below and on the next page.
Error
Code
Descriptionof
Error
RecommendedAction
0
1
No error
None
I/ OLinkmodule
hardware fault
Reset the module by pressing the pushbutton or cycling power. If the
problem persists, replace the module.
2
ExternalI/ Olink
failure
This fault can be caused by pressing the Reset pushbutton while the link is
operating. If that is not the cause, inspect all cabling and examinecarefully
each link device. Reset the link. If the problem persists, remove devices
from the link one at a time to isolate the defective unit. This error code may
also be caused by a hardware problem on the I/ O Link Interface Module.
3
4
Configuration error Try to reinitialize the link interface. If the problem persists, contact the GE
Fanuc PLC service hotline (phone number: 1–800–978–5747).
Link interface is not Check that the I/ O Link Interface Module is installed in the rack and slot
responding
location specified in the %P configuration data. Also determine if the
module is inserted completely in the backplane, and the VME bus is
operating to other modules in that rack. Make sure that the Logicmaster
configuration has been correctly completed for the module as described in
chapter 4. Reset the module by cycling power on the rack. If the problem
persists, replace the link module.
6
9
Link Reset
This code indicates that a reset has occurred, or that the application program
has reset the link by writing a 1 to control bit 13. The fault bit (status bit 12)
is not set. The I/ O Link Module automatically resets control bit 13 to 0 to
acknowledge that it has received the command.
Invalid Number of
I/ OLinkModules
This code means that the number of I/ O Link Interface Modules is not in the
range of 0–2 or 0–4, as specified in program reference %P0001.
GFK-0644A
34
Series 90 -70 I/O Link Interface Module User’s Manual – February 1993
4
ConfigurationError Codes
Error Codes 10 to 91, listed below, describe configuration errors. If the I/ O Interface
Module is being used as a slave, only Error Codes 10, 11, 12, 28, and 44 are used.
Error Descriptionof Error
Code
RecommendedAction
Error Description ofError
Code
RecommendedAction
10
Invalid rack ID
Must be in range 0–7
44
Dev. 0, invalid %Q
startingaddress
Must not be greater
thanmaximumI/ Odata
length.
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Dev. 1
Dev. 2
Dev. 3
Dev. 4
Dev. 5
Dev. 6
Dev. 7
Dev. 8
Dev. 9
Dev. 10
Dev. 11
Dev. 12
Dev. 13
Dev. 14
Dev. 15
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
11
12
Invalid slot ID
Must be in range 2–9
Must be 0, 32, or 64.
60
Link devices not de-
fined with consecu-
tiveaddresses
Alldata length register
values must be 0, fol-
lowing the first occur-
rence of 0.
Dev. 0, Invalid data
length
61
62
Dev. 0, configured
Link doesn’t operate.
but not responding.
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Dev. 1
Dev. 2
Dev. 3
Dev. 4
Dev. 5
Dev. 6
Dev. 7
Dev. 8
Dev. 9
Dev. 10
Dev. 11
Dev. 12
Dev. 13
Dev. 14
Dev. 15
”
”
”
”
”
”
”
”
”
Dev. 1
”
Link continues to oper-
ate with dev. 0
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Dev. 2
Dev. 3
Dev. 4
Dev. 5
Dev. 6
Dev. 7
Dev. 8
Dev. 9
Dev. 10
Dev. 11
Dev. 12
Dev. 13
Dev. 14
Dev. 15
”
”
”
”
”
”
”
”
Link continues to oper-
ate with previous de-
vices.
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
”
28
Dev. 0, invalid %I
startingaddress
Must not be greater
thanmaximumI/ Odata
length.
77
1 extra(undefined)
device on the link
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Dev. 1
Dev. 2
Dev. 3
Dev. 4
Dev. 5
Dev. 6
Dev. 7
Dev. 8
Dev. 9
Dev. 10
Dev. 11
Dev. 12
Dev. 13
Dev. 14
Dev. 15
”
”
”
”
”
”
”
”
”
78
2 extra(undefined)
devices on the link
79
80
81
82
83
84
85
86
87
88
89
90
91
3
”
4
”
5
”
”
”
”
”
”
”
”
”
”
”
6
7
8
”
9
”
”
”
”
”
10
11
12
13
14
15
GFK–0644
Chapter 4 Programming Guide
35
Index
Installation, Optical Adapter, 20
O
Optical Adapter, 8 , 20
L
Link Active bit, 24 , 32
Link Active LED, 4 , 15
P
Link Failed bit, 32
Logic examples, 25 , 28
R
M
S
N
37
GFK-0644A
Index
T
V
GFK-0644A
38
|