GFK 1034b Series 90-30 Genius Bus Controller User Manual
GFK 1034b Series 90-30 Genius Bus Controller User Manual
Series 90-30
Geniusr Bus Controller
Users Manual
GFK-1034B
April 1996
GFL002
Caution
Caution notices are used where equipment might be damaged if care is
not taken.
Note
Notes merely call attention to information that is especially significant to
understanding and operating the equipment.
This document is based on information available at the time of its publication. While
efforts have been made to be accurate, the information contained herein does not
purport to cover all details or variations in hardware or software, nor to provide for
every possible contingency in connection with installation, operation, or maintenance.
Features may be described herein which are not present in all hardware and software
systems. GE Fanuc Automation assumes no obligation of notice to holders of this
document with respect to changes subsequently made.
GE Fanuc Automation makes no representation or warranty, expressed, implied, or
statutory with respect to, and assumes no responsibility for the accuracy, completeness,
sufficiency, or usefulness of the information contained herein. No warranties of
merchantability or fitness for purpose shall apply.
The following are trademarks of GE Fanuc Automation North America, Inc.
Alarm Master
CIMPLICITY
CIMPLICITY PowerTRAC
CIMPLICITY 90ADS
CIMSTAR
Field Control
GEnet
Genius
Genius PowerTRAC
Helpmate
Logicmaster
Modelmaster
PowerMotion
ProLoop
PROMACRO
Series Five
Series 90
Series One
Series Six
Series Three
VuMaster
Workmaster
Preface
This manual describes the features and operation of the Series 90t-30 Geniusr Bus Controller (GBC). It also provides the configuration and programming information needed
to complete the interface between a Series 90-30 PLC and a Genius I/O bus.
A reference to the run-disable mode, which does not apply to the GBC, was deleted
from page 6-14.
GFK-1034B
Series 90
iii
Preface
Related Publications
For more information, refer to these publications:
Geniusr I/O System and Communications Users Manual (GEK-90486-1)
Geniusr I/O Discrete and Analog Blocks Users Manual (GEK-90486-2)
Geniusr Hand-held Monitor Users Guide (GFK-0121)
(GFK-0466).
Series 90 -30, 70, PLC Products, Genius I/O Products, Field Control Distributed I/O &
Control Products, GE Fanuc Product Approvals, Standards, General Specifications
(GFK-0867B or later)
Series 90
GFK-1034B
Contents
Chapter 1
Chapter 2
Chapter 3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
1-3
1-3
1-4
1-4
1-5
1-5
1-6
Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-7
1-8
1-8
1-8
1-11
1-11
1-12
1-12
Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-13
Datagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-14
Global Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-15
2-1
How the Genius Bus Controller Handles Global and Input Data . . . . . . . . .
Genius Bus Controller Receives Global or Input Data . . . . . . . . . . . . . . .
Genius Bus Controller Sends Output Data . . . . . . . . . . . . . . . . . . . . . . . . .
Genius Bus Controller Sends Global Data . . . . . . . . . . . . . . . . . . . . . . . . .
Global Data Without an Application Program . . . . . . . . . . . . . . . . . . . . . .
2-1
2-2
2-4
2-5
2-5
2-6
Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CPU Sweep Time for the Genius Bus Controller . . . . . . . . . . . . . . . . . . . .
Bus Scan Time for Global Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Device-to-Device Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-7
2-7
2-11
2-11
How Other Devices Handle Global Data Sent by the Genius Bus Controller
2-12
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1
3-2
3-4
3-4
3-5
Bus Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-6
3-9
1-1
..........................
3-11
v
Contents
Chapter 4
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
4-2
4-2
Chapter 6
vi
4-3
4-5
Device-specific Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6
4-8
Chapter 5
4-1
4-9
4-9
4-10
4-11
4-13
Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
Fault Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
5-4
Technical Help
5-6
.................................................
Communication Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-1
6-1
6-2
6-3
6-3
6-5
6-6
6-6
6-8
Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-10
6-12
COMMREQ Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-14
6-14
6-15
6-18
6-22
GFK-1034B
Chapter
1 Introduction
section level 1
figure bi level 1
table_big level 1
This chapter provides an overview of the Series 90-30 Genius Bus Controller (GBC) and
its operation. The following topics are presented:
H
H
H
H
H
H
H
H
System overview
I/O Devices on the Bus
Genius Bus Controller description
Compatibility with specific equipment or software versions
The Genius Bus
Genius Bus Controller operation
Datagrams
Sending and receiving global data
System Overview
The Series 90-30 Genius Bus Controller (catalog number IC693BEM331) is used to
interface a Genius I/O serial bus to a Series 90-30 PLC. The GBC receives and transmits
control data of up to 128 bytes for up to 31 devices on the Genius bus.
a42453
CPU
BUS
CONTROLLER
HAND-HELD
MONITOR
COMMUNICATIONS
BUS
REMOTE DROP
P
S
GFK-1034B
S
C
A
N
N
E
R
I/O BLOCKS
1-1
1
A Genius bus may serve:
H Genius blocks, which provide interface to a broad range of discrete, analog, and
special-purpose field devices. Genius blocks are self-contained modules with
advanced diagnostics capabilities and many software-configurable features.
H Remote Drops, Series 90-70 I/O racks that are interfaced to the bus via Remote I/O
Scanner Modules. Each remote drop can include any mix of discrete and analog I/O
modules, providing up to 128 bytes of input data and 128 bytes of output data.
Field Control I/O Station, consisting a Bus Interface Unit (BIU) and up to eight
additional Field Control modules. The BIU provides intelligent processing, I/O scanning,
and feature configuration for the I/O Station.
A bus may feature I/O control enhanced by communications commands in the program.
Or a bus may be used entirely for I/O control, with many I/O devices and no additional
communications. Or, a bus may be dedicated to CPU communications, with multiple
CPUs and no I/O devices. More complex systems can also be developed, with dual CPUs
and one or more additional CPUs for data monitoring.
1-2
Series 90
GFK-1034B
1
I/O Devices on the Bus
The I/O devices on a bus may be Genius I/O blocks, or standard Series 90-70 I/O modules
in one or more remote drops. The total number of I/O circuits that can be served by one
Genius bus depends on the types of I/O devices that are used and the memory available
in the CPU.
%I(bits)
%Q(bits)
%AI(words)
%AQ (words)
8
8
16
16
32
8
8
4
4
2
2
6
16
16
16
16
6
6
15
18
PowerTRAC Module B
16
16
16
16
32
16
30
Many Genius I/O blocks have a configurable number of inputs or outputs, for example,
the 16-circuit DC Sink/Source Block can be configured for either 16 outputs, 16 inputs, or
16 outputs with input feedback. When configuring the GBC using either Logicmaster 90
or the HHP, the number of inputs and outputs configured for the device must match
what is configured in the block.
GFK-1034B
Chapter 1 Introduction
1-3
1
Memor y Required for a Remote Drop
Together, one 90-70 Remote I/O Scanner (IC697BEM733) and the modules it serves make
up a remote drop on the Genius bus.
REMOTE DROP
RACK 0
P
S
RACK 1
S B
C T
A M
N
N
E
R
P
S
RACK 6
B
R
M
a44875
P
S
B
R
M
RACK 7
P
S
B
R
M
UP TO 50 FEET
GENIUS BUS
NOTE:
The remote drop can include any mix of Series 90-70 discrete and analog input and
output modules, up to a total of 128 bytes of inputs and 128 bytes of outputs (8 discrete
points represent one byte and 1 analog channel uses 2 bytes).
1-4
Series 90
GFK-1034B
1
Genius Bus Controller Description
The GBC is a standard, rack-mounted Series 90-30 PLC module. It plugs easily into the
PLCs backplane or into a remote baseplate. The latch on the bottom of the module
secures it in position. The modules Terminal Assembly, with its protective hinged cover,
is removable.
a43394
OK
(LED)
COMM OK
(LED)
REMOVABLE
TERMINAL
ASSEMBLY
HINGED
COVER
LATCH
There are no DIP switches or jumpers to set on the module. Its configuration is
completed using the Hand-held Programmer or the Logicmaster 90-30 software.
Configuration steps are in Chapter 3.
Status LEDs
The LEDs on the front of the GBC indicate its operating status and should be on during
normal operation.
GFK-1034B
Module OK
Shows the status of the GBC. This LED turns on after power up
diagnostics are completed.
Comm OK
Shows the status of the bus. This LED is on steadily when the bus is
operating properly. It blinks for intermittent bus errors and is off for a
failed bus. It is also off when no configuration has been received from
the PLC CPU.
Chapter 1 Introduction
1-5
1
Module Specifications
Orderinginformation
IC693BEM331
Moduletype[
Currentconsumption
Up to 128 bytes.
Up to 128 bytes each from up to 31 other devices.
1-6
Series 90
GFK-1034B
1
Compatibility
Specific equipment or software versions required for compatibility with the GBC module
are listed below.
Series 90-30
PLC
The GBC can be used with the following CPU models and versions of Logicmaster 90-30
software. In each case, later models or versions can be used.
CPU Models
IC693CPU___
CPU Firmware
Logicmaster 90 Software
IC641SWP___
311S
331T
313H
323H
340B
341K
351AA
351AB
Series Six PLC To exchange global data with a Genius Bus Controller, the Series Six Bus Controller must
be catalog number IC660CBB902F/903F (firmware version 1.5), or later.
A Genius Hand-held Monitor can be used to display the GBC bus address, its software
version, and the Series Six register address configured for global data. HHM version
IC660HHM501K (rev. 4.7) or later is required. There is no Hand-held Monitor connector
on the GBC module, but a Hand-held Monitor can communicate with the GBC while
connected to any other device on the bus. Optionally, an additional HHM mating
connector (catalog number 44A736310-001-R001) can be installed on the bus near the
GBC.
Series 90-30
Hand-held
Programmer
The GBC can be configured using a Series 90-30 Hand-held Programmer (IC693PRG300),
any version. Version 1.1 (IC693PRG300D) or later of the Hand-held Programmer allows
the use of %M (discrete internal) references.
Genius I/O
Blocks
Genius I/O blocks can be present on the same bus as the GBC. However, because the Bus
Controller is not compatible with older phase A blocks, they should not be installed on
the same bus.
GFK-1034B
Chapter 1 Introduction
1-7
1
The Genius Bus
Genius Bus Specifications
Bus Type
Bus Termination
75, 100, 120, or 150 ohm resistor at both ends of electrical bus cable.
Baud Rate
7500 feet at 38.4 Kbaud, 4500 feet at 76.8 Kbaud, 3500 feet at 153.6
Kbaud extended, 2000 feet at 153.6 Kbaud, standard. Maximum
length at each baud rate also depends on cable type. The Geniusr
I/O System Users Manual provides a complete list of cable types,
showing corresponding bus lengths and baud rates.
Greater bus lengths are possible using sections of fiber optics cable
with modems. (See Chapter 2 of the Genius I/O System Users
ManualGEK -90486-1.)
Maximum Number of
Devices
DataEncoding
Each bit is encoded into three dipulses, majority voted at the receiver
to correct any single dipulse errors. A dipulse is an AC code consisting of a positive then negative excursion of voltage. Dipulses are individually sampled to reject low and high frequency interference.
ModulationTechnique
Isolationfrom
Backplane
Signal/noiseRatio
60 dB
Series 90
GFK-1034B
1
Cable Types
Cable #
& Make
Outer
Diameter
Terminating
Resistor*
10%to+20%
1/2 Watt
153.6e
76.8
38.4 D
(A)9823
(B)9182
(C)4596
(M)M39240
.350in
8.89mm
150 ohms
2 / #22 (0.36)
30V
60C
2000ft
606m
3500ft
1061m
4500ft
1364m
7500ft
2283m
(B)89182
.322in
8.18mm
150 ohms
2 / #22 (0.36)
150V
200C
2000ft
606m
3500ft
1061m
4500ft
1364m
7500ft
2283m
(B)9841
(M)M3993
.270in
6.86mm
*120 ohms
2 / #24 (0.22)
30V
80C
1000ft
303m
1500ft
455m
2500ft
758m
3500ft
1061m
(A)9818C
(B)9207
(M)M4270
.330in
8.38mm
100 ohms
2 / #20 (0.54)
300V
80C
1500ft
455m
2500ft
758m
3500ft
1061m
6000ft
1818m
(A)9109
(B)89207
(C)4798
(M)M44270
.282in
7.16mm
100 ohms
2 / #20 (0.54)
150V
200C
1500ft
455m
2500ft
758m
3500ft
1061m
6000ft
1818m
(A)9818D
(B)9815
.330in
8.38mm
100 ohms
2 / #20 (0.54)
1500ft
455m
2500ft
758m
3500ft
1061m
6000ft
1818m
(A)9818
(B)9855
(M)M4230
.315in
8.00mm
100 ohms
4 (two pair)
#22 (0.36)
150V
60C
1200ft
364m
1700ft
516m
3000ft
909m
4500ft
1364m
(A)9110
(B)89696
(B)89855
(M)M64230
.274in
6.96mm
100 ohms
4 (two pair)
#22 (0.36)
150V
200C
1200ft
364m
1700ft
516m
3000ft
909m
4500ft
1364m
(A)9814C)
(B)9463
(M)M4154
.243in
6.17mm
75 ohms
2 / #20 (0.54)
150V
60C
800ft
242m
1500ft
455m
2500ft
758m
3500ft
1061m
(A)5902C
(B)9302
(M)M17002
.244in
6.20mm
75 ohms
4 (two pair)
#22 (0.36)
300V
80C
200ft
60m
500ft
152m
1200ft
333m
2500ft
758m
Notes:
Notes
The 89182, 89207, 4794, 89696, and 89855 types are high temperature
cables for use in severe environments, and are qualified for use in air
plenums.
The 9815 type is water resistant, and can be used where direct burial is
required.
Similar cables of equivalent terminating resistance such as 9207, 89207,
and 9815 can be mixed.
GFK-1034B
Chapter 1 Introduction
1-9
1
Using Other Cable Types
The cable types listed in the preceding table are recommended for use. If the cable types
listed above are not available, the cable selected must meet the following guidelines.
1.
High quality construction. Most important is uniformity of cross section along the
length of the cable. Poor quality cable may cause signal distortion, and increase the
possibility of damage during installation.
2.
3.
Relatively high characteristic impedance; 100 to 150 ohms is best; 75 ohms is the
minimum recommended.
4.
Low capacitance between wires, typically less than 20pF/foot (60pF/meter). This
may be accomplished by inner dielectrics of foamed type, usually polypropylene or
polyethylene, having a low dielectric constant. Alternatively, the conductors may be
spaced relatively far apart. Lower impedance types have smaller crosssections, and
provide easier wiring for shorter total transmission distances.
5.
Shield coverage of 95% or more. Solid foil with an overlapped folded seam and drain
wire is best. Braided copper is less desirable; spiral wound foil is least desirable.
6.
An outer jacket that provides appropriate protection, such as water, oil, or chemical
resistance. While PVC materials can be used in many installations, Teflon,
polyethelene, or polypropylene are usually more durable.
7.
Electrical characteristics: cable manufacturers information about pulse rise time and
NRZ data rate is useful for comparing cable types. The Genius bit consists of three
AC pulses; the equivalent NRZ bit rate is about three times as great.
For assistance in selecting a specific cable type, please consult your local GE Fanuc application
engineer.
Prefabricated Cables
For applications using 150 ohm cables such as Belden 9182, prefabricated cables in 15
(IC660BLC001) and 36 (IC660BLC003) lengths are available. These cables terminate in
mating connectors that simplify wiring between I/O blocks.
1-10
Series 90
GFK-1034B
1
Genius Bus Controller Operation
The GBC handles all data transfer between the PLC and the devices on its bus. In order
to do this, the GBC must interface two completely separate and asynchronous activities:
A. The Genius bus scan, a cycle of communications among the devices on a bus
(including the GBC itself). The cycle follows the order of bus addresses (0-31).
B. The CPU sweep, the cycle of actions that includes communications between the
CPU and the GBC.
The GBC manages data transfer between the bus and the CPU by maintaining an
on-board RAM and a serial backplane interface. The GBC places inputs in the on-board
RAM when they are received from the Genius bus. When the input sweep of the PLC
CPU occurs, inputs from the on-board RAM are transferred via the serial backplane to
the CPU. When the output sweep of the PLC CPU occurs, outputs are received from the
CPU via the serial backplane and placed in the on-board RAM. When the GBC receives
the token on the Genius bus, outputs from the on-board RAM are transmitted onto the
Genius bus.
TOKEN PATH
(DEVICE 31)
30
As mentioned earlier, these devices may include other GBCs, or Remote I/O Scanners, in
addition to (or instead of) the Genius blocks illustrated above.
During a bus scan, the GBC automatically:
H
H
H
receives all input data that has been sent by devices on the bus.
receives any fault messages issued by devices on the bus and issues fault reports to
the CPU that can be displayed using the Logicmaster software.
sends a single command received from the CPU (for example, a Clear Circuit Fault
datagram) to the appropriate devices.
The amount of time it takes for the communications token to pass to all devices depends
on the baud rate, the number and types of devices on the bus, and the use of global data
and datagram communications.
GFK-1034B
Chapter 1 Introduction
1-11
1
Input Data from Devices on the Bus
The GBC receives input data or global data from each input block, I/O block, remote
drop, or bus controller each time the block or Remote I/O Scanner has the
communications token. (Because this data is broadcast, it may be received by any other
bus interface module operating on the bus).
INPUTS
FROM BLOCK 4
a43559
GBC
= TOKEN
The GBC stores all the input data it receives. Once per CPU sweep, the CPU reads all
discrete and analog inputs from the GBC. (Analog data is not multiplexed).
PLC CPU
READS STORED INPUTS
OUTPUTS
GBC
TOKEN
1-12
Series 90
GFK-1034B
1
Diagnostics
Genius blocks and other devices on the bus automatically report faults, alarms and
certain other predefined conditions to the PLC.
INPUTS AND FAULT MESSAGE
FROM BLOCK 3
a43556
GBC
1
TOKEN
F
FAULT
Only one diagnostic message can be sent during any bus scan. If a fault message has
already been sent (by another device) during that scan, a device saves its own diagnostic
message until the next available bus scan. For example, if the communications token is
currently at device 3, and faults occur at devices 3 and 4 at the same time, device 3 can
send its diagnostic message if another message has not already been sent. Device 4 must
wait at least one more bus scan to send its diagnostic message.
The GBC stores any diagnostic messages it receives. They are read automatically by the
Series 90-30 CPU. Faults can then be displayed in the fault table using the Logicmaster
90-30 software. Faults on the Genius device can be cleared using the Genius HHM.
Faults in the PLCs I/O fault table and on the Genius device can be cleared from
Logicmaster 90-30.
For more details about these diagnostics features, see Chapter 5.
Additional datagrams, not listed in the table on page 1-14, are sent as system messages;
they do not involve any application programming. The Geniusr I/O System Users Manual
explains datagrams in detail. It also shows the formats of the data that is transferred by
datagrams.
In an application program, communication request (COMMREQ) instructions are used
to send datagrams and to read any unsolicited datagrams that have been received. See
Chapter 6 for instructions.
GFK-1034B
Chapter 1 Introduction
1-13
1
Datagrams
The Series 90-30 GBC supports all Genius datagrams. Refer to Chapter 3 of the Geniusr
I/O System and Communications Users Manual (GEK-90486E-1) for further details on the
use of datagrams.
Datagram Type
1-14
Description
Read ID
Read ID Reply
ReadConfiguration
WriteConfiguration
AssignMonitor
ReadDiagnostics
Write Point
ReadBlockI/O
Report Fault
Pulse Test
Switch BSM
Read Device
Write Device
Read Data
Write Data
Read Map
Write Map
Series 90
GFK-1034B
1
Global Data
Global Data is data that is automatically and repeatedly broadcast by a bus controller.
The Series 90-30 GBC can send up to 128 bytes of Global Data and receive up to 128
bytes of Global Data each bus scan from each GCM+ or other GBC on its bus.
%I, %Q, %G, %R, %AI, %AQ, and %M (HHP configuration only).
Memory type and beginning address are chosen during configuration of
the receiving GBC.
%I, %Q, %G, %R, %AI, %AQ. Memory type and beginning address are
chosen during configuration of the receiving GBC.
%I, %Q, %G, %R, %AI, %AQ. Memory type and beginning address are
chosen during configuration of the receiving GCM+.
Series90-30PLC/
GCM
Computer
Example
In the following example, a Series 90-30 PLC (PLC 1) sends 64 bits of Global Data
beginning at %I0105 to another Series 90-30 PLC (PLC 2). PLC 2 places this data into its
own memory beginning at %I0017. PLC 2 sends 8 words of %AQ data beginning at
%AQ0001 to PLC 1. PLC 1 places this data into its own memory beginning at %AI0032.
Series 90-30
PLC 1
%I0105 %I0169
%AI0032 %AI0039
GFK-1034B
Chapter 1 Introduction
Series 90-30
PLC 2
'
%I0017 %I0081
%AQ00001
%AQ00008
1-15
Chapter
H
H
H
H
H
H
H
H
How the GBC sends and receives global and input data
What happens to global, input, and output data if certain communications stop
Application programming needed for global data
The relationship between the bus scan and the CPU sweep
How other devices handle global data received from the GBC
How to estimate bus scan time
How to estimate data response time
How to avoid unnecessarily slowing down either the CPU sweep time or the scan
time of the Genius bus
How the Genius Bus Controller Handles Global and Input Data
The GBC can send global data to all other global Genius devices on the bus. It can also
receive and pass to the CPU global data that has been sent by other devices on the bus.
Global data can be sent from and received into %G, %Q, %AQ, %R, %I, %AI, and %M
(HHP configuration only) memories in the Series 90-30 PLC. Status data uses %I
memory.
GFK-1034B
2-1
2
Genius Bus Controller Receives Global or Input Data
The GBC passes global data and input data, from all devices for which a length has been
configured, to the CPU.
In the following example, two devices, at serial bus addresses (SBAs) 18 and 22,
send global data on the bus. Each module broadcasts its global data while it has
the bus token. The global data is received by a GBC module (#20 in the
diagram) in a Series 90-30 PLC system.
Series 90-30
Memory
GBC
%G, %I,
%Q, %AI,
%AQ, %R
SBA #20
SBA #18
Global data
from SBA #22
SBA #22
Global data
from SBA #22
The GBC module stores the global data it receives. When the Series 90-30 CPU executes
the input update portion of its sweep, it reads global data, input data, and status bits (see
below) from the GBC.
In this example, the PLC CPU copies global data from the GBC into the memory
locations configured for the devices at bus addresses 18 and 22.
Series 90-30
Memory
%G, %I,
%Q, %AI,
%AQ, %R,
%M
2-2
Series 90
GBC
a
a
SBA #20
SBA #18
SBA #22
GFK-1034B
2
What Happens If Incoming Global or Input Data Stops
As part of the GBC configuration a data default (OFF or HOLD Last State) must be
selected. If the GBC stops receiving data from any device(s) for which a global or input
data length has been configured, the GBC sets the corresponding memory locations to
the selected default. If the default is OFF, the GBC supplies 0s for the missing data. If the
default is HOLD, the GBC continues to supply the last set of valid data it received from
the device.
Status Bits
The GBC maintains a status bit for every potential bus device. Bit 0 of the 32 bits of
status corresponds to SBA0. Bit 31 corresponds to SBA31. These bits are set to a value of
1 for every correctly configured device that is present on the bus. The bit corresponding
to the module itself is always 1 if the module is working.
If the GBC does not receive, or stops receiving, communications from a device (or if the
device is not configured or incorrectly configured), its bit is set to 0. In addition, the GBC
defaults the data as described above. The configuration supplied to the GBC must
provide a location in %I in which to place the 32 status bits. The status bits are updated
every PLC sweep.
Note: The GBC can been configured to receive global data from a Series 90-30 or 90-70
PLC on the Genius bus. If this external 90-30 or 90-70 is put in STOP mode, global data is
no longer sent. The GBC configured to receive this global data will default the devices
data to OFF or to HOLD LAST STATE (as configured), but will not set the devices status
bit to 0.
GFK-1034B
2-3
2
Genius Bus Controller Sends Output Data
If there is an application program running in the 90-30, it executes before the PLC CPU
updates outputs. During the output portion of the sweep, if the GBC is configured to
send output data to devices on the Genius bus, the PLC CPU also writes the contents of
the selected memory locations to the GBC.
Example:
Series 90-30
Memory
%G, %I,
%Q, %AI,
%AQ, %R
GBC
'
SBA #31
SBA #18
SBA #19
The CPU sends new output data to its GBC from the memory locations configured as
outputs for devices 18 and 19. The GBC module stores the data until it receives the bus
token. At that time, it directs the output data for device 18 to device 18, and then directs
the output data for device 19 to device 19.
Series 90-30
Memory
%G, %I,
%Q, %AI,
%AQ, %R
2-4
Series 90
GBC
'
Outputs
for 18
SBA #31
'
Outputs
for 19
SBA #18
'
SBA #19
GFK-1034B
2
Genius Bus Controller Sends Global Data
If there is an application program running in the 90-30, it executes before the PLC CPU
updates outputs. During the output portion of the sweep, if the GBC is configured to
send global data to the Genius bus, the PLC CPU also writes the contents of the selected
memory locations to the GBC.
In the following example, the CPU sends new global data to its GBC from the
memory location configured for bus address 20.
Series 90-30
Memory
%G, %I,
%Q, %AI,
%AQ, %R,
%M
GBC
'
SBA #20
SBA #18
SBA #22
The GBC module stores this data until it receives the bus token. At that time, it
broadcasts the global data to all the other devices on the bus.
In the example system, both bus addresses 18 and 22 receive the global data sent
from bus address 20:
Series 90-30
Memory
%G, %I,
%Q, %AI,
%AQ, %R,
%M
GBC
'
SBA #20
SBA #18
Global data
from SBA #20
SBA #22
'
What Happens If the CPU Stops Supplying Global Data or Output Data
When the CPU stops, the GBC stops sending global data and output data.
GFK-1034B
2-5
2
Data Transmission on the Genius Bus
Communications on the Genius bus occur by a method called token passing. The
devices on the bus pass an implicit token, which rotates among the devices in sequence
from address 0 to address 31. Unused addresses are passed with very slight delays. This
sequence is called a bus scan. After device 31 has had its turn, the scan restarts at
device 0.
a43393
TOKEN PATH
DEVICES
ON THE
BUS
16
23
31
Each device on the bus can receive messages at all times (not just when it has the token).
A GBC module receives all broadcast messages. These are messages that are sent to all
devices on the bus. Global data and input data are types of broadcast messages.
When a device holds the token, it can send messages. To end its turn, the transmitting
device sends one specific broadcast message which acts as a sign-off message, and the
token passes to the next device.
If CPU sweep time is slower than bus scan time, it is possible that some incoming global
data might change before it is picked up by the CPU. It is important to be sure that the
data will not be sent so briefly that it will be missed.
If program execution time is faster than bus scan time, the CPU may process the same
data repeatedly. Also, if output data changes too quickly, some outputs may change
before they are sent out on the Genius bus. The Timing section in this chapter explains
how to estimate bus scan time and CPU sweep time.
2-6
Series 90
GFK-1034B
2
Timing
Global, input, and output data adds to both the CPU sweep time in the Series 90-30 and
to the scan time of the Genius bus. You can estimate the CPU sweep time and bus scan
time added by data transmissions, and the time it can take for a Series 90-30 PLC to send
data and then receive a response based on that data.
CPU Model
311/313
331
340/341
1.
Rack Location
Base Contribution
(milliseconds)
N/A
main
expansion
remote
main
expansion
remote
0.887
0.967
1.164
1.920
0.666
0.901
1.626
13
21
29
76
17
24
72
Once configured, the GBC always provides 32 status bits to the CPU, adding to the
CPU sweep time. The time required for this is listed in the table above as the base
time under Status Bits + Incoming Global/Input Data.
For example, if a GBC is installed in a local or expansion rack of a model 331
PLC, the base time for status bits and incoming global data is 1.2ms.
1.20
incoming
base time
Because the GBC always supplies its status bits to the CPU, the incoming data base
time must be included in the sweep time calculation, regardless of whether or not
the GBC passes incoming global/input data to the CPU. A sweep time example
illustrating this is on the next page.
GFK-1034B
2-7
2
2.
If the GBC passes incoming global/input data from one or more bus devices to the
CPU, multiply the total of: the number of global data bytes passed to the CPU by the
corresponding per byte time in microseconds as listed in the table. For the model
331 PLC CPU only, incoming bit data has a slightly greater per byte rate than word
data. For destination tables %G, %I, and %Q, use the bit per-byte time. For %R, %AI,
or %AQ, use the word per-byte rate.
In the same example, if the GBC passes 16 bytes of global/input data each from 6
other devices to the model 331 CPUs %R, %AI, or %AQ memory, the base time
plus the time required to transfer the data is:
1.20 + (96 * 0.017) =2.83ms
incoming
base time
3.
If the GBC will also send global/output data, find the additional base time for
outgoing global data. Add bytes of output data for each output device. To this base
time, add: the number of bytes sent multiplied by a per-byte time in microseconds as
shown in the table. Again, for the model 331, use the bit per-byte time for
destination tables %G, %I, and %Q or the word per-byte rate for %R, %AI, or
%AQ.
If the same GBC sends 64 bytes of global data, the CPU sweep time impact of
sending the data is:
1.30 + (64 * 0.021) =2.64ms
per-byte rate for %R, %AI or %AQ
for model 331 CPU
outgoing
base time
If the GBC does not send global data or output data, no base time or per-byte time is
included in the CPU sweep. This is different from the incoming global data
calculation, where incoming base time is always included.
4.
The total sweep time impact for a GBC is the sum of its read and write times.
For the same example:
2.83 + 2.64 = 5.47ms
2-8
Series 90
GFK-1034B
2
Example with Genius Bus Controller in a Remote Rack
If the same GBC was installed in a remote rack, exchanging the same amounts of data
with the CPU would take considerably longer. The complete calculation is:
(2.0 + (96 *0.070)) + (2.5 + (64 * 0.069)) = 8.72 + 6.92 = 15.64ms
incoming
base time
GFK-1034B
2-9
2
Example with No Outgoing Global/Output Data, Genius Bus Controller Receives
both Bit and Word Data
If the GBC passes incoming global data to the CPU but does not send any, the sweep
time calculation includes only the incoming data base time and per-byte time. Again, if
the PLC CPU is a model 331, incoming data sent to %G, %I, or %Q has a slightly greater
per-byte rate than data sent to %R, %AI, or %AQ, so the two data types are separated in
the calculation.
In this example, a GBC in a local rack of a model 331 passes 32 words and 256
bits of incoming global data to its CPU. It does not send any global data. The
sweep time impact is:
1.2 + (64 * 0.017) + (32 * 0.019) = 2.90 ms
incoming
base time
incoming word data
32 words = 64 bytes
H
H
Install GBC modules in the main rack or an expansion rack, not in a remote rack.
Eliminate unwanted incoming global data. If there is global data being transferred
on the bus that the Series 90-30 does not need, do not configure to receive it.
Timing is not affected by the number or type of memory assignments made for
incoming global data.
2-10
Series 90
GFK-1034B
2
Bus Scan Time for Global Data
The minimum amount of time required for the token to make a complete bus rotation is
3mS. This minimum time limit is imposed by the GBC and other types of bus interface
modules. The maximum bus scan time is 400mS, but this will not be reached under
normal circumstances.
The presence of other PLCs, a host computer, I/O blocks, or datagrams on the bus adds
to the bus scan time (although the time required for each individual message
transmission remains the same). Using one of the slower baud rates also increases bus
scan time. The scan time increase from 153.6 Kbaud standard to 153.6 Kbaud extended is
slight. But scan time is about twice as long at 76.8 Kbaud and four times as long at 38.4
Kbaud.
153.6 Kb std
153.6 Kb ext
76.8 Kb
38.4 Kb
GBC
0.586
0.658
1.324
2.655
0.026
0.052
0.104
0.208
GFK-1034B
2-11
2
How Other Devices Handle Global Data Sent by the Genius Bus
Controller
Global data sent by a GBC can be received by any other Bus Controller, Genius
Communications Module (GCM), Personal Computer Interface Module (PCIM), or
Q -Bus Interface Module (QBIM on the bus. All devices receive the same global data
message from the GBC. How each type of device handles the message is summarized
below. (See the table on page 1-15 for a list of memory locations for each module type.)
2-12
Series 90-30
PLC GBC
Module
A GBC in another Series 90-30 PLC places the data in the memory
location specified when that GBC is configured.
Series 90-30
PLC GCM+
Module
A GCM+ on another Series 90-30 PLC places the data in the memory
location specified when that GCM+ is configured. If the GCM+ does
not need all the data, a message offset and length can be specified.
Series 90-30
PLC GCM
Module
Series 90-30
PLC
The Series 90-30 PLC places incoming global data into the memory
location selected during configuration of its GBC.
Series 90-70
PLC
The Series 90-70 PLC places incoming global data into the memory
location selected during configuration of its GBC.
Series Six
PLC
Series Five
PLC
Computer
Data from the GBC is placed into the PCIM or QBIM Input Table
Segment corresponding to the bus address of the GBC. The computers
application program is responsible for transferring global data between
the CPU and the PCIM or QBIM.
I/O Blocks
I/O blocks (controlled by another host) can be present on the bus, but
cannot receive global data.
Series 90
GFK-1034B
Chapter
3 Installation
section level 1
figure bi level 1
table_big level 1
determine the maximum number of GBCs and Genius blocks that can be configured
for your system
H
H
H
H
Note
If the Genius bus is operating at 76.8Kbaud, the bus must be properly
terminated before powering-up the GBC module.
The module will not power up on an unterminated bus at 76.8Kbaud.
The GBC operates only on a correctly terminated Genius bus. If you want to test it
without any bus connections, place a 75-ohm resistor across the Serial 1 and Serial 2
terminals to ensure that the module will power-up.
GFK-1034B
3-1
3
Choosing a Rack Location for the GBC
The GBC module can be located in any I/O slot in Series 90-30 CPU expansion and
remote baseplates, or I/O racks, including remote racks. For the most efficient system
operation, the main baseplate is preferred. See the Timing section of Chapter 2 for
details.
A maximum of eight GBC modules can be used in the same Series 90-30 PLC. However,
depending on the number of I/O devices configured on the GBCs and the number of
other I/O modules in your system, your system may not be able to handle all eight
GBCs.
Note: Up to four references can be configured for each SBA on a GBC bus.
To estimate whether the system you want to design is possible, follow steps 13, below.
1.
The I/O configuration block uses a base of 90 bytes of user memory. Each smart
module uses 257 bytes of user memory for parameter data. Finally, everyI/O
segment uses an additional 40 bytes of user memory.
Example of segments:
A GBC with SBA 0 I1 and SBA 2 Q2 configured has three I/O segments: the status in
%I, and the two configured under the SBAs).
A discrete input module has one segment (%I).
2.
The total user memory required by a configuration is the sum of all these parts:
base configuration size (90)
number of smart modules *257
+number of segments *40
total user memory required for the configuration
3.
The total user memory available for configuration varies with CPU model. If the
number derived from the formula above is greater than the number next to the CPU
that you are using, the system will not work due to memory limitations.
CPU
3-2
Series 90
Available Memory
(bytes)
311
4,720
313
4,720
323
4,720
331
4,656
340/341
8,176
351
16,368
GFK-1034B
3
Example:
A user wants to configure three GBCs (the first with 53 segments, the second with 26
segments, and the third with 11 segments), 1 discrete input module, 1 analog input
module, 1 discrete output module, and 1 discrete combo input/output module.
First, add up the number of segments:
First GBC: 1 for status + 53 configured segments
Second GBC: 1 for status + 26 configured segments
Third GBC: 1 for status + 11 configured segments
Discrete input module: 1 (%I)
Analog input module 1 (%AI)
Discrete output module: 1 (%Q)
Discrete I/O module: 1 for input (%I) + 1 for output (%Q)
for a total of 98 segments.
Now, add them all up:
90=
90
3 x 257= 771
98 x 40=3,920
4,781
This will fit in a 341 CPU, but not in a 331 CPU.
GFK-1034B
Chapter 3 Installation
3-3
3
Module Installation and Removal
Module Installation
The GBC module is installed and removed in the same manner as all other Series 90-30
modules. Power must be OFF when installing or removing the module.
To install the GBC in the Series 90-30 PLC baseplate:
1.
Grasp the module with the terminal board toward you and the rear hook facing
away from you.
2.
Align the module with the desired base slot and connector. Tilt the module upward
so that the top rear hook on the module engages the slot on the baseplate.
3.
Swing the module downward until the connectors mate and the locking lever on the
bottom of the module snaps into place, engaging the baseplate notch.
a43055
3-4
Series 90
GFK-1034B
3
Module Removal
The module can be removed without powering down the communications bus,
provided the incoming and outgoing Serial 1 wires have been connected to one terminal
and the Serial 2 wires have been connected to one terminal or jumpered as described on
the next page. If this has been done, do not disconnect the bus cable or any terminating
resistor. Before removing the GBC, carefully remove the Terminal Assembly from the
front of the GBC (see page 3-9). Avoid contact with exposed cable wiring. Place the
Terminal Assembly, with the bus wiring still attached, in a protected location.
Caution
If exposed wiring comes in contact with conductive material, data on
the bus may be corrupted, possibly causing the system to shut down.
If the rest of the bus is powered down, the bus wiring can be removed from the module.
To remove the module:
1.
Locate the release lever on the bottom of the module. Firmly press it up toward the
module.
2.
While holding the module firmly at the top, continue fully depressing the release
lever and swing the module upward.
3.
Disengage the hook at the top of the module by raising the module up and moving
it away from the baseplate.
a43056
PRESS
RELEASE LEVER
GFK-1034B
Chapter 3 Installation
3-5
3
Bus Installation
The Genius bus is connected to the terminal assembly on the front of the GBC module.
For the GBC module, these terminals have the following assignments:
a47051
GENIUS
BUS
CONTROL
OK
COM
GENIUS
BUS
CONTROLLER
SER
1
SER
2
10
11
12
SHD
IN
13
14
15
16
17
18
19
SHD
OUT
20
44A729182068R01
FOR USE WITH
IC693BEM331
Connection can be made to any of the terminals in a group. The cable is routed to and
from the terminals via the bottom of the Terminal Assembly cavity.
3-6
Series 90
GFK-1034B
3
Using the cable type selected for the application, connect the devices as shown in the
following figure. Each terminal accepts up to one AWG #14 (2.10mm2) wire or two AWG
#16 (1.32mm2) wires using ring or lug-type connectors.
Caution
The bus shield wires are not insulated; do not permit them to touch
other wires or terminals. Spaghetti tubing should be used to cover
these wires.
4.
5.
Connect Shield In to the Shield Out terminal of the previous device. (For the first
device on the bus, Shield In is not connected.)
6.
Connect Shield Out to the Shield In terminal of the next device. (For the last
device on the bus, Shield Out is not connected.)
First
Device
GFK-1034B
Chapter 3 Installation
a43391
Last
Device
SERIAL
1
SERIAL
1
SERIAL
2
SERIAL
2
SHIELD
IN
SHIELD
IN
SHIELD
OUT
SHIELD
OUT
SERIAL
1
SERIAL
2
SHIELD
IN
SHIELD
OUT
SERIAL
1
SERIAL
2
SHIELD
IN
SHIELD
OUT
3-7
3
Serial Wire Connections
The Serial 1 and Serial 2 terminals are interconnected on the circuit board, not on the
terminal strip. Incoming and outgoing signal wire pairs can be connected to either one
or two Serial 1 or Serial 2 terminals:
Signal Wires Connected
to One Terminal
1
2
3
4
Serial 1
signal wires
jumper
Serial 1
signal wires
Serial 1
terminals
Serial 1
terminals
If you are connecting two signal wires to the same terminal, use spade or lug-type
connectors, or twist the exposed ends of the wires together before inserting them. This
will allow future removal of the Terminal Assembly without disrupting other devices on
the bus (see Module Removal, in this chapter).
If you are connecting two signal wires to separate terminals, install a jumper between
the two terminals as shown on the right above. Failure to install the jumper will cause
the entire bus to be disrupted whenever the faceplate is removed.
jumpers
2
3
3
Serial 1
signal wire
4
5
resistor
Serial 1
signal wire
5
6
6
7
7
8
resistor
9
9
Serial 2
signal wire
Serial 1 and 2
terminals
3-8
Series 90
10
10
Serial 2
signal wire
Serial 1 and 2
terminals
GFK-1034B
3
Terminal Assembly Removal and Installation
The Terminal Assembly of all Series 90-30 modules can be removed or installed from the
module as described below.
2.
There is a jacking lever above the wiring terminals, on the left. Push this lever
upward to release the terminal block.
JACKING
LEVER
3.
Grasp the narrower pull-tab located at the right of the retaining tab. Pull the tab
toward you until the contacts have separated from the module housing and the
hook has disengaged.
PULL
TAB
GFK-1034B
a43061
Chapter 3 Installation
a43715
3-9
3
Terminal Assembly Installation
To replace the Terminal Assembly, follow the steps below. If wiring is already in place, be
sure that the Terminal Assembly is being connected to the proper type of module.
Caution
Check the label on the hinged door and the label on the module to be
sure they match. If a wired Terminal Assembly is installed on the
wrong module type, damage to the module may result.
1.
If the pull tab at the top of the Terminal Assembly is extended, push it back. Close
the Terminal Assembly door.
2.
Place the hook at the bottom of the Terminal Assembly into the corresponding slot at
the bottom of the module.
3.
Pivot the Terminal Assembly upward and firmly press it into position.
4.
Open the door and check to be sure that the latch is securely holding the Terminal
Assembly in place.
a43062
3-10
Series 90
GFK-1034B
3
Installing a Hand-held Monitor Connector
The GBC does not have a built-in connector for a Genius Hand-held Monitor. However,
a Hand-held Monitor connector can be added directly to the serial bus at any location.
The unit shown below (catalog number 44A736310-001-R001) provides a Hand-held
Monitor connector and serial bus terminals in a single convenient package.
.5 in
1.27 cm
1.673 in
4.249cm
46357
Hand-held Monitor
Connector
X1 X2
X1
SA SB
X2
SA SB
Alternatively, it can be installed directly on a panel using screws through its mounting
ears. The DIN rail feet on the back of the unit are removed when the unit is
panel-mounted.
GFK-1034B
Chapter 3 Installation
3-11
3
Making the Bus Connections
The Hand-held Monitor connector has two sets of terminals; one for incoming cable and
the other for outgoing cable.
Connect the Serial 1, Serial 2, and Shield In terminal of either connector to the previous
device. Connect the Serial 1, Serial 2, and Shield In terminal of the other connector to the
next device.
The following illustration shows connections for incoming and outgoing serial bus cable.
As with other devices, the HHM connector can be at either end of its bus. If it is, there
will only be one bus cable attached.
Bus In
Bus Out
X1
X2
X1
SA
X2
SB
SA
SB
X1
X2
SA
SB
Serial 1
Serial 2
Shield In
Shield Out
As with other devices, if the Hand-held Monitor Connector is at either end of its bus,
install an appropriate terminating resistor across the Serial 1 and Serial 2 terminals. The
Genius I/O System and Communications Users Manual (GEK-90486-1) lists appropriate
terminating resistors for each recommended bus cable type.
3-12
Series 90
GFK-1034B
3
Installing the Hand-held Monitor D-Shell Connector on the Bus
You have the option of installing the D-shell connector that is supplied with the
Hand-held Monitor, if you do not wish to use the connector described on page 3-11. You
will need a mounting plate (IC660MPH509) for this type of installation.
1.
Using the mounting plate as a template, cut an opening in the panel for the mating
connector. Also drill two holes for the mounting hardware.
2.
Attach the mounting plate and mating connector to the panel using the mounting
hardware supplied.
3.
Secure the two ends* of the serial bus cable to the back of the panel using strain
relief brackets.
4.
Strip the ends of the wires. Twist the two Serial 1 wires together and attach them to
pin 5 of the connector. Twist the Serial 2 wires together and attach them to pin 9.
Similarly, attach the Shield wire(s)* to pin 4.
The following illustration shows connections for incoming and outgoing serial bus
cable. As with other devices, the HHM connector may be at either end of its bus. If it
is, there will only be one bus cable attached.
Bus
Cable
Strain
Reliefs
Bus
Cable
Mounting
Hardware
Mating
Connector
Mounting
Plate
Shield
(Pin 4)
SER 2
(Pin 9)
SER 1
(Pin 5)
Crimp
(Qty. 3)
a42240c
Mounting Surface
(rear view)
Hand-held
Monitor
Connector
When making bus connections, the maximum exposed length of bare wires should
be two inches. For added protection, each shield drain wire should be insulated with
spaghetti tubing to prevent the Shield In and Shield Out wires from touching each
other.
If the Hand-held Monitor connector is at either end of its bus, it is necessary to install an
appropriate terminating resistor across the Serial 1 and Serial 2 wires. The Genius I/O
System and Communications Users Manual lists appropriate terminating resistors for each
recommended bus cable type.
GFK-1034B
Chapter 3 Installation
3-13
Chapter
4 Configuration
section level 1
figure bi level 1
table_big level 1
This chapter describes configuration procedures for the GBC. Topics include:
H
H
H
Configuration overview
Configuration using the Logicmaster 90 software
Configuration using the Hand-held Programmer
Configuration Overview
A GBC module can support up to 31 devices on its bus. Each device has an SBA and a
device type associated with it. The GBC and the devices on its bus must be configured in
two basic, different procedures.
1.
The GBC must be configured as part of the Series 90-30 PLC system using the
Logicmaster 90-30 software (release 5 or later) or a Hand-held Programmer (HHP).
This includes:
A. parameters for the GBC module itself, and
B. parameters specific to the devices on the GBCs bus.
2.
GFK-1034B
4-1
4
Device Types and Assigned Configuration Parameters
Device Type
Input1 Ref/Length
Input2 Ref/Length
GENERIC*
User Input
(up to 128 bytes)
User Input
(up to 128 bytes)
User Input
(up to 128 bytes)
User Input
(up to 128 bytes)
8%I
8%I
16%I
16%I
32%I
32%I
8%Q
8%Q
16%Q
16%Q
32%Q
32%Q
8%IQ
8%IQ
8%IQ
16%IQ
16%IQ
16%IQ
32%IQ
32%IQ
32%IQ
6%AI
6%AI
6%AQ
6%AQ
4%A/I2%A
Q
4%AI
2%AQ
HSC
15%AI
16%I
16%Q
PWRTRACA
16%I
18%AI
16%Q
PWRTRACB
16% I
30%AI
16%Q
CONTROL
(this GBC)
User Input
(up to 128 bytes)
User Input
(up to 128 bytes)
* Note: When configuring GENERIC devices with mixed data types, discrete data must be assigned to Input1 and
Output1 locations. Analog data must be assigned to Input2 and Output2 locations.
4-2
Series 90
GFK-1034B
4
Configuration Using Logicmaster 90 Software
With the GBC installed in its proper rack/slot location, the Logicmaster 90-30
configurator software program (release 5 or later) can be used to configure the module
in the offline mode. Once the complete set of configuration data has been entered, it
must then be downloaded to the PLC (in the online mode) to become effective in the
GBC Module.
The GBC is configured by completing setup screens in the configurator software. The
setup screens that are used for this module are shown and described below.
In the I/O configuration screen, place the cursor at the slot representation corresponding
to the GBCs installed location in the PLC rack.
GFK-1034B
Chapter 4 Configuration
4-3
4
Press F1 (gbc) and then the Enter key to select the GBC. The following screen will
appear. (Note that the defalt softkey, F9, is inactive for the GBC module.)
Press the Enter key to select the GBC. Complete the GBC configuration entries in the
following screen.
Note that the configuration screen consists of two parts: module-specific data (BUS
CONTROLLER MODULE DATA) and device-specific data (DEVICE DATA).
The default entries can be used as is, or changed. Until a valid configuration is stored to the
PLC CPU, the GBC will not operate on the bus, and its Channel OK LED will not light.
4-4
Series 90
GFK-1034B
4
Module-specific Data
GFK-1034B
Module SBA
(serial bus
address)
Baud Rate
All devices on a bus must use the same baud rate: 153.6 Kbaud standard,
153.6 Kbaud extended, 76.8 Kbaud, or 38.4 Kbaud. Selection of a baud
rate depends on the application, as explained in the Geniusr I/O System
Users Manual. Usually, the bus length determines the baud rate. The
entry made here establishes the baud rate for the GBC only. If the
default baud rate (153.6 Kbaud extended) will not be used, the baud rate
of other devices on the bus must also be changed. Typically, this is done
using a Hand-held Programmer. Default: 153K STD
Series Six
(S6)
Reference
Status
This field contains the starting reference for the 32-bit status area
maintained by the GBC. Each bit of this area represents the
online/offline status of a device on the bus. Default: Next available %I0001
address
Input Def
The input default state can be either set to HOLD or OFF. Default: OFF
Out at strt
Chapter 4 Configuration
4-5
4
Device-specific Data
A GBC module can support up to 31 devices on its bus. Each device will have the
following parameters associated with it.
Device SBA
A Device SBA can be between 0 and 31. Select by tabbing through the
parameter, or by setting to the desired value. Pressing the PgDn key
increments this parameter; pressing the PgUp key decrements this
parameter. If you enter a Device SBA that is the same as the Module
SBA, the input area parameters cannot be filled in and the Device Type
will be fixed to CONTROL. Default: 0
Device Type
Each device is associated with a device type. The device type selection
can be tabbed through. The allowed device types and their associated
input/output lengths are shown in the table on page 4-2. Default:
GENERIC
If you select a Device Type other than GENERIC, the input and output starting
references and lengths are automatically filled in. Fields that contain N/A represent 0.
The length parameter can not be edited. In the following example screen, an %8I device
type is configured at SBA 21.
4-6
Series 90
GFK-1034B
4
GENERIC Devices
Note
For a device to be configured correctly using the generic device type, the
number of input points (channels), and the number of output points
configured must match exactly the amount of I/O the device is
transmitting or expecting to receive. Otherwise, the device will be
considered mismatched and the devices status bit will be set to off (0).
When using a GE Fanuc Genius I/O block, the Input 1 Ref and Output1
Ref must be set to the same starting address. Failure to set these
addresses correctly can lead to Bus Controller errors and incorrectI/O
mapping.
Note: For Input and Output Ref, the allowed memory types are %I, %AI, %Q, %AQ,
%G, and %R.
Input1 Ref/
Input2 Ref
Input1 Len/
Input2 Len
Output1 Ref/
Output2 Ref
Output1 Len/
Output2 Len
Data from Output1 Ref will be sent to a device first, then data from Output2 Ref will be
sent. Example:
Output1 Ref/Len = %Q116
Output2 Ref/Len = %R11
If the configured device is a 32-point output block, points 116 on the block are
controlled by %Q116 and points 1732 are controlled by %R1.
Data received as inputs from a device are placed first into Input Ref1, then into Input
Ref2. Example:
Input1 Ref/Len = %I18
Input2 Ref/Len = %I3341
If the configured device is a 16-point input block, points 18 on the block are put into
%I18 and points 916 on the block are put into %I3341.
GFK-1034B
Chapter 4 Configuration
4-7
4
After configuring all desired devices, press the Esc key to exit the detail configuration
screens. The following screen will appear.
4-8
Series 90
GFK-1034B
4
Configuration Using the Hand-held Programmer
With the GBC installed in its proper rack/slot location, a Hand-held Programmer can be
used to configure the module in the offline mode. The Hand-held Programmer must be
attached to and interfacing with the PLC. The PLC must be in Stop mode.
REF ADJ
GFK-1034B
IOM ERR
I/O ERR
DAT ERR
GCM ERR
A GCM has already been configured. A GBC can not be configured in this system.
Chapter 4 Configuration
4-9
4
Select the GBC
From the Program/Data screen, select module configuration by pressing the 4 key, then
the ENTer
key.
Press the Down Arrow key to reach the configuration screen for the rack and slot
location of the GBC.
'
Use the HHP keypad to select the slot in which the GBC is installed. For example, if
the GBC is to be configured in rack 0, slot 4, press the following keys in sequence:
# , 0, ENTer
, 4, ENTer
. The following display will appear:
If the GBC is already configured, it appears in the slot location. For example:
'
<S
Line 2 of the screen shows the modules Serial Bus Address (SBA).
If the GBC was not previously configured, but is present in the rack and slot, it does not
appear at first. The HHP indicates that the slot is empty.
R0:04 EMPTY
'
To add the GBC to the configuration, press the READ/VRFY and ENTer
keys.
The following screen, the first in a series of parameter configuration screens, appears:
4-10
<S
Series 90
<S
GFK-1034B
4
Configure GBC-specific Parameters
Using the HHP, configure the following, pressing the
key to go through the module
parameters in sequence. Pressing the /+ key toggles through the values for the
parameter being configured. Or, you can use the HHP keypad to enter a value. Press the
ENTer
key to actually make each selection. If you want to go back to an earlier
parameter, use the
key.
'
Enter the beginning reference in %I memory for the GBC modules 32 status bits. It
is not necessary to enter leading zeros. After entering the number, press the ENTer
key. The HHP displays the range of selected status bit addresses. For example:
GBCBus Address
The following screen is used to configure the Bus Address (SBA) of the GBC.
'
If the Bus Address shown is not correct, type in the new number from the keypad
then press the ENTer
<S
Baud Rate
The following screen can be used to change the baud rate for the GBC.
All devices on a bus must use the same baud rate: 153.6 Kbaud standard, 153.6 Kbaud
extended, 76.8 Kbaud, or 38.4 Kbaud. Selection of a baud rate depends on the
application, as explained in the Genius I/O System Users Manual. Usually, the bus length
determines the baud rate. The entry made here establishes the baud rate for the GBC
only. If the default baud rate (153.6 Kbaud extended) will not be used, the baud rate of
other devices on the bus must also be changed. Default: 153K STD
'
If the baud rate shown is not correct, press the +/ key to change it. When the
correct baud rate appears, press the ENTer
next configurable feature of the module.
GFK-1034B
Chapter 4 Configuration
4-11
4
Series Six Reference
If there is a Series Six or Series Five PLC on the bus that should listen to the global data
sent by the GBC, a beginning register address for the data must be supplied. The range
of registers available for global data use is 1 to 16,383. The Series Five or Series Six PLC
will figure out the length automatically. Default: 0
'
'
<S
If there is a Series Five or Series Six PLC on the bus that should receive global data
from the GBC, enter a register number here. Then press the
key to continue.
If a previously-configured Series Five or Series Six PLC should no longer receive
global data from the GBC, enter 0.
Press the
key to continue.
Input Default
The next selection determines how the GBC will respond if it loses communications with
a device or devices. Data will either HOLD its last state, or be set to 0 (OFF). If the GBC
stops receiving data from one or more devices on the bus, it applies the data default to
the corresponding data being passed back to the CPU. Default: OFF
'
If data should hold its last state when communications are lost, select HOLD. If
data should be set to 0, select OFF. Press the /+ key to make the selection, then
press the ENTer
key.
4-12
Series 90
GFK-1034B
4
Configure Device-specific Parameters
A GBC module can support up to 31 devices on its bus. (One of the 32 bus addresses is
used by the GBC module.) Enter the appropriate parameters for each serial bus address
(SBA) that has a device assigned to it. (If there is no device configured at an SBA, the
second line will read UNASSIGNED.)
Pressing the
key will cause the next parameter for the SBA to be displayed. If you
want to go back to an earlier address, use the key.
GENERIC Devices
All devices entered using the HHP are of the Generic type.
GFK-1034B
Chapter 4 Configuration
4-13
4
lnput2 Ref Type
See Input1 Ref Type.
Input2 Len
Length associated with Input2 Ref starting location, below.
4-14
Series 90
GFK-1034B
4
Output2 Ref Type
See Output1 Ref Type.
Output2 Len
Length associated with Output2 starting reference.
Note
For a device to be configured correctly using the generic device type, the
number of input points (channels), and the number of output points
configured must match exactly the amount of I/O the device is
transmitting or expecting to receive. Otherwise, the device will be
considered mismatched and the devices status bit will be set to off (0).
GFK-1034B
Chapter 4 Configuration
4-15
Chapter
5 Diagnostics
section level 1
figure bi level 1
table_big level 1
This chapter describes the following diagnostics capabilities in Series 90-30 PLC systems
that use Genius I/O and communications:
Display of Genius faults in the programmer I/O Fault table (I/O Table faults related
to the GBC and Genius devices are listed at the end of this chapter.)
Status bits that reflect the presence or absence of other devices on the bus, and
confirm the operating status of the GBC itself
Status Bits
The GBC uses 32 reference address bits in %I memory to supply status information for
the PLC. A default beginning reference (the next available %I) for the status bits is
automatically supplied by Logicmaster 90-30 or by a Hand-held Monitor, but a different
%I reference can be selected. Status bits are assigned in ascending order of the devices
Bus Addresses (SBAs), beginning at the first %I status reference.
Low reference
0
Status Bits
High reference
29 30 31
H
H
GFK-1034B
If the status bit =1, the device is configured and present on the bus
If the status bit = 0, at least one of the following conditions exists:
the device is not present on the bus,
the device is not configured,
the device is configured but I/O lengths are mismatched.
5-1
5
Fault Table
Faults and alarms from I/O devices, Bus Controller faults, and bus faults are
automatically logged into the Series 90-30 PLCs I/O Fault Table. Faults can be displayed
in On-Line or in Monitor mode. GBC faults can not be cleared using the HHP.
Note that the 90-30 GBC does not provide addn of device or loss of device
faults as the 90-70 PLC does. This information is contained in the status bits, which are
also set to off (0) if there is a configuration or device mismatch. See page 2-3 for a
discussion of status bits.
F A U L T
T A B L E
FAULT
CIRC REFERENCE
FAULT
FAULT
DATE
TIME
LOCATION
NO.
ADDR.
CATEGORY
TYPE
MD H: M: S
___________ _____ _________ ___________________ ________________ _____ ________
33#0.4
6
%AI010124 CIRCUIT FAULT
ANALOG FAULT
1012 08:12:20
MAINPLC
RUN/ENABLE
PLC C: LESSON
REPLACE
For a Genius bus fault, the display shows the date and time the fault occurred, and the
following information:
5-2
Fault
Location:
Circ No:
Reference
Addr:
The I/O reference address where the fault was detected. It consists of
the memory type (%I, %Q, %IQ, %AI, %AQ) and a five-digit offset.
Fault
Category:
The general type of fault that has occurred. For diagnostic faults, the
CPU sets fault references. For fatal faults, the CPU sets fault references
and places itself in STOP mode.
Fault Type:
Further explains fault categories: Circuit Fault, Module Fault, I/O Bus
Fault, Loss of Block, and GBC Software Exception. These categories are
defined in the table on page 5-4.
Fault
Description:
Series 90
GFK-1034B
'
Fault 33
y
y
Clearing Faults
Faults can be cleared from the fault table using Logicmaster 90-30 (in the online mode),
using a Hand-held Monitor on the Genius bus, or by sending a Clear All Faults datagram
(see example on page 6-11). Clearing the fault table removes all fault entries.
Also, clearing faults only removes them from the table; it does not clear fault conditions
in the system. If the condition that caused a fault still exists and is detected, the fault will
be reported again.
Note
If you have a GCM+ and a 90-30 GBC in the same CPU system and on
the same Genius bus, you must turn the report faults configuration
parameter on the GCM+ to no. If you enable report faults on the
GCM+ in such a system, a single fault that occurs on the Genius bus or
inside the 90-30 system will be reported endlessly, causing the fault table
to be filled with multiple reports of the same fault.
GFK-1034B
Chapter 5 Diagnostics
5-3
Diag.
or
Fatal
D
Indicates
Fault
Type
Indicates
DISCRETE
FAULT
Circuit fault
on discrete
I/Opoint
ANALOG
FAULT
Series 90
LOSS POWER
Indicates
Loss of user side power
SHORT CIRCUIT
OVERLOAD
Sustainedovercurrent
NO LOAD
OVER TEMP
SWITCH FAIL
POINT FAULT
FUSE BLOWN
AI LOW ALARM
AI HI ALARM
AI UNDER RANGE
AI OVERRANGE
OPEN WIRE
AQ UNDER RANGE
AQ OVERRANGE
CS FEEDBACK ERR
GENA
FAULT
Fault on a
GENA
LL
ANALOG
FAULT
Fault on a
low-level
analog channel
AI LOW ALARM
AI HI ALARM
AI UNDER RANGE
AI OVERRANGE
OPEN WIRE
WIRING ERROR
INTERNALFAULT
INPUT SHORT
n/a
REMOTE
FAULT
5-4
Fault
Description
Fault on a
Remote I/O
Scanner
GFK-1034B
Fault
Category
I/OBUS
FAULT
I/O
MODULE
FAULT
Diag
or
Fatal
D
Indicates
Genius bus
fault
EEPROM fault,
watch
dog timeout
Fault
Type
Indicates
BUS FAULT
BUS OUT
DISABLE
HEADEND
FAULT
A TO D
COMM
FAULT
USER
SCALING
ERROR
Fault
Description
Indicates
CONFIG MEM
FAIL
Genius EEPROM or
NVRAMfailure
CAL MEM
FAIL
Geniuscalibration
memory failure
SHARERAM
FAIL
INTRNAL
CKT FLT
WD TIMEOUT
POINT FAULT
FUSE BLOWN
Chapter 5 Diagnostics
5-5
5
Technical Help
PLCHotline
5-6
Phone numbers
1-800-828-5747(or804-978-5747)
Internet address
Fax number
804-978-5099
Fax Link
804-978-5824
Series 90
GFK-1034B
Chapter
6 Communication Requests
section level 1
figure bi level 1
table_big level 1
H
H
H
H
For additional information, see the Geniusr I/O System and Communications Manual
(GEK-90486-1), which describes Genius Datagrams in detail.
GFK-1034B
6-1
6
Programming for a Communication Request
In order to communicate with an intelligent module (such as a GBC), the application
program should perform the following actions.
1.
Command Block
2.
Application
Program
Clear status block. The program should set the status block to all zeroes (see page
6-9). Establishing this initial condition allows the program to differentiate between
the result of an earlier command and the currently-executing command.
Application
Program
CPU Memory
Status Block
3.
Edit content of
communication
4.
'
Status Block
6-2
Genius Bus
Controller
Series 90
Application
Program
a'
Check completion
of communication
GFK-1034B
6
COMMREQ Command Block Format
The first step in programming communications requests is to set up the contents of the
communication. This can be done using Block Moves or similar program instructions, as
shown later in this chapter.
Application
Program
CPU Memory
Command Block
Edit content of
communication
Data is placed together in adjacent locations in CPU memory to form a Command Block.
Data
Location
address
address + 1
Wait/NoWait Flag
address + 2
address + 3
address + 4
address + 5
address + 6 to
address + 70
Data Block
The length of the Command Block depends on the type of COMMREQ being sent.
Although 70 words is the maximum, for a COMMREQ that transfers a 128-byte
datagram; most Command Blocks are much shorter. The table on page 6-5 gives an
overview of the contents of each type of COMMREQ that may be sent to a Series 90-30
GBC.
GFK-1034B
Length:
The first word of the Command Block indicates the data block length.
This is the amount of data from [address + 6] to the end of the
Command Block Each type of COMMREQ command has a unique Data
Block.
Wait/No Wait
Flag:
6-3
6
Status Pointer Memory
Type:
The Status Pointer Memory Type and Offset (see below) identify the
location of the functions associated Status Block. The Status Block is
where the COMMREQ will return its status. If one of the bit-oriented
memories (%I or %Q) is used as the status location, its bits can be
monitored (see page 6-9).
Data
Location
address + 1
address + 2
The high byte of address + 2 of the pointer is not used; it must be zero.
The low byte of address + 2 specifies the type of memory where the
Status Pointer will be located.
%I
70
%Q
72
%R
register memory
%AI
10
%AQ
12
Idle Timeout
Value:
Maximum
Communication Time:
Data Block:
6-4
Series 90
Function
Enable/disable outputs command
Dequeue datagram
Send datagram
Request datagram reply
GFK-1034B
6
Command Block Quick Reference
The following table summarizes the content of the COMMREQ commands for a GBC.
Command Block Content
Add.
Add.
+1
Length
Wait/
No
Wait
Outputs
Enable, Disable
(#8)
Dequeue
Datagram
(#13)
Send
Datagram
(#14)
Request
Datagram
Reply (#15)
COMMREQ
Description
GFK-1034B
Add.+
2
Add.
+3
Add.+
4
Add.+
5
Add.
+6
Status
Pointer
Memory
Type
Status
Pointer
Offset
Idle
Timeout
Value
Max.
Comms.
Time
COM
MREQ
#
13
Add.+7 to Add.+12
see page 6-15
6 to 70
words
14
Add.+7 to Add.+n
see page 6-19
10 to 78
words
15
Add.+7 to Add.+n
see page 6-22
Add.
+7
Add.+8
to
Add.
+n
Additional Content
see
page
6-14
1 (enable)
or
0 (disable)
see
page
6-14
6-5
6
The COMMREQ Instruction
After supplying the content of the communication in the Command Block, the application
program uses a COMMREQ instruction to request communications with the GBC.
Application
Program
Sends COMMREQ
to Device
'
Genius Bus
Controller
function OK (logic)
6-6
Series 90
GFK-1034B
6
COMMREQ Inputs
(enable)
IN:
SYSID:
A hex value that gives the rack and slot location of the GBC. Use this
format:
R S
1 2
rack
slot
rack 1
slot 2
Examples
TASK:
Rack
Slot
0
7
4
2
0004h
0702h
COMMREQ Outputs
The functions OK and FT outputs can provide power flow to optional logic which can
verify successful completion of the COMMREQ. The OK and FT outputs may have these
states:
ENable
Error?
OK output
FT output
active
active
not active
no
yes
no execution
true
false
false
false
true
false
The OK and FT outputs are never both true at the same time; OK indicates correct
execution while FT indicates a fault condition. The COMMREQ passes power flow to OK
unless:
H
H
The specified task is not valid for the device. This is not checked if the specified
device is a GBC.
If any fault above occurs, the function passes power flow to FT instead.
If there are errors in the portion of the Command Block used specifically by the GBC (for
example, the Device Number entered is incorrect), these errors are reflected in the value
returned in the status location, not in the FT output.
GFK-1034B
6-7
6
COMMREQ Status Block
When the GBC receives the communication from the CPU, it returns its current status to
the CPU, at the two-word memory location reserved for the Status Block. Possible status
values that can be returned are listed on the next page.
When a command is complete, the GBC writes any resulting data into the area
designated in the command, and sets the status to Complete (4).
Note
Because COMMREQs require write access to return their status, level 1
and 2 Logicmaster software passwords, which prevent write access,
cannot be used with COMMREQs. If an illegal memory type is specified,
a fault will be generated.
If one of the bit-oriented memories (%I or %Q) is used as the status location, its bits can
be monitored. These bits correspond to the binary values listed below. For example, if
%I048 were selected as the beginning location, reference %I050 would be set to 1 each
time the COMMREQ completed successfully.
CPU Memory
Status Block
Application
Program
a'
Check completion
of communication
When the previous COMMREQ has completed, the program should set the Status Block
to a value not in the list on the next page. Establishing this initial condition allows the
program to differentiate between the result of an earlier command and the
currently-executing command.
6-8
Series 90
GFK-1034B
6
Contents of the Status Block
The Status Block is two words of memory to which the GBC returns the status of the
COMMREQ.
The lower word is used for general information about the execution of the COMMREQ:
VALUE
decimal
(word)
0
1
4
8
16
32
64
128
256
512
1024
2048
DESCRIPTION
binary (bit)
MSB
000000000000
000000000001
000000000100
000000001000
000000010000
000000100000
000001000000
000010000000
000100000000
001000000000
010000000000
100000000000
The upper word of the status location provides additional status information.
GFK-1034B
VALUE
decimal
(word)
DESCRIPTION
11
21
51
71
101
102
121
141
142
143
144
201
202
203
204
205
206
207
208
209
210
211
212
213
6-9
6
Programming Examples
Example 1Using a COMMREQ to Clear a Circuit Fault
The following example shows how a COMMREQ can be used to clear a circuit fault on
point 4 of a Genius I/O block whose Device Number is 20.
This rung sets up an Enable Outputs COMMREQ to a GBC in rack 0 slot 3.
| << RUNG 5 STEP #0002 >>
|
|%M0001 ++
++
++
%M0001+]
+] [+BLKMV++BLKMV++MOVE_+ (RM)
|
| INT |
| INT |
| INT |
|
|
|
|
|
|
|
| CONST +IN1 Q+%R0001 CONST +IN1 Q+%R0008 CONST +IN Q+%R0021
| +00003 |
|
+00255 |
|
+00000 | LEN |
|
|
|
|
|
|00002|
| CONST +IN2 |
CONST +IN2 |
++
| +00000 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN3 |
CONST +IN3 |
| +00008 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN4 |
CONST +IN4 |
| +00020 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN5 |
CONST +IN5 |
| +00000 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN6 |
CONST +IN6 |
| +00000 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN7 |
CONST +IN7 |
| +00008 ++
+00000 ++
|
This COMMREQ disables outputs (%R9 = 0) to all devices (%R8 = FFh). The status
pointer for this COMMREQ is %R21 (%R3 = 8,%R4 = 20). Note that the status registers
are cleared before the COMMREQ function block is called.
| << RUNG 6 STEP #0007 >>
|
|%Q0001
++
%Q0002+]
+][+COMM_|+(SM)
|
| REQ ||
|
|
||
|
%R0001 +IN FT++
|
|
|
|
CONST +SYSID|
|
0003 |
|
|
|
|
|
CONST +TASK |
|
00000001 ++
|
|[
END OF PROGRAM LOGIC
]
|
6-10
Series 90
GFK-1034B
6
Example 2Using a COMMREQ to Clear All Circuit Faults
The following example shows how a COMMREQ can be used to clear all circuit faults on
the Genius I/O bus.
|
|(****************************************************************************)
| (* This rung sets up a send datagram COMMREQ to a GBC30 in rack 0 slot 3.
*)
| (* This COMMREQ will broadcast a clear all faults message to all devices on *)
| (* the GENIUS bus.
*)
| (*
*)
| (* %R7 = 14 send datagram command
*)
| (* %R8 = 255 broadcast message
*)
| (* %R9 = 32 GENIUS function code
*)
| (* %R10 = 19 (13Hex) GENIUS subfunction code for CLEAR ALL FAULTS
*)
| (* %R11 = 0 normal priority
*)
| (* %R12 = 0 CLEAR ALL FAULTS message contains no data
*)
| (*
*)
| (* The status pointer for this COMMREQ is %R21(%R3 = 8,%R4 = 20)
*)
| (* Note that the status registers are cleared before the COMMREQ function
*)
| (* block is called.
*)
|(****************************************************************************)
|
| << RUNG 5 STEP #0002 >>
|
|%M0001 ++
++
%M0001
+][+BLKMV++BLKMV+(RM)
|
| INT |
| INT |
|
|
|
|
|
| CONST +IN1 Q+%R0001
CONST +IN1 Q+%R0008
| +00006 |
|
+00255 |
|
|
|
|
|
|
| CONST +IN2 |
CONST +IN2 |
| +00000 |
|
+00032 |
|
|
|
|
|
|
| CONST +IN3 |
CONST +IN3 |
| +00008 |
|
+00019 |
|
|
|
|
|
|
| CONST +IN4 |
CONST +IN4 |
| +00020 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN5 |
CONST +IN5 |
| +00000 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN6 |
CONST +IN6 |
| +00000 |
|
+00000 |
|
|
|
|
|
|
| CONST +IN7 |
CONST +IN7 |
| +00014 ++
+00000 ++
|
| << RUNG 6 STEP #0006 >>
|
|%Q0001 ++
++
%Q0002
+][+MOVE_++COMM_|+(SM)
|
| INT |
| REQ ||
|
|
|
|
||
| CONST +IN Q+%R0021 %R0001 +IN FT++
| +00000 | LEN |
|
|
|
|00002|
|
|
|
++
CONST +SYSID|
|
0003 |
|
|
|
|
|
CONST +TASK |
|
00000001 ++
|
|
|[
END OF PROGRAM LOGIC
]
|
GFK-1034B
6-11
6
Using COMMREQs to Send Datagrams
The table on page 6-13 lists datagrams with their Subfunction Codes, lists possible ways
to send datagrams, and explains what happens to datagrams received from other
devices.
COMMREQ 14 (Send Datagram) and COMMREQ 15 (Request Datagram Reply) are the
only way to send messages to or from the GBC. Also, COMMREQ 13 (Dequeue
Datagram) must be used to handle datagrams that are not handled automatically.
All datagrams can be sent using COMMREQ 14 (Send Datagram). If COMMREQ 14 is
used to send a datagram that has a reply, COMMREQ 13 (Dequeue Datagram) must also
be used to obtain the reply from the GBCs queue of unsolicited incoming datagrams.
6-12
Series 90
GFK-1034B
6
Using COMMREQs to Send Datagrams
Datagram (hex code)
Ways to Send It
Read ID (00)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
(Sent automatically)
All datagrams can be sent using COMMREQ 14 (Send Datagram). If COMMREQ 14 is used to send a datagram that has a reply,
COMMREQ 13 (Dequeue Datagram) must also be used to obtain the reply from the GBCs queue of unsolicited incoming datagrams.
GFK-1034B
6-13
6
COMMREQ Descriptions
COMMREQ #8: Enable/Disable Outputs Command
The Enable/Disable Outputs command can be sent to the GBC to disable sending
outputs to any block.
Command Length
Address +1:
No Wait
Address +2:
Address +3:
Address +4:
Address +5:
Max.communications
time
Address +6:
Command number
Address +7:
Device Number
Address +8:
Enable/Disablecommand
6-14
Series 90
GFK-1034B
6
COMMREQ #13: Dequeue Datagram Command
The GBC handles most incoming datagrams automatically, with no additional
programming required. Under certain circumstances, however, the Dequeue Datagram
command must be used to transfer incoming datagrams to the CPU. Program the
Dequeue Datagram command for the following:
Replies that are received after sending Reply-type datagrams with the Send
Datagram command. (If Send Datagram with Reply is used instead, it automatically
handles replies).
Unsolicited datagrams that are not recognized by the GBC (Function Code not 20).
Parameter
Contents
Address
Command Length
Address +1:
No Wait
Address +2:
Address +3:
Address +4:
Address +5:
Address +6:
Command number
13
Address +7:
Address +8:
Memory type
Addresses
912
Not used
Not used
6-15
6
If the Bus Scan Time is Greater than the CPU Sweep Time
If all Datagrams on the bus are sent with Normal Priority, there is a limit of one incoming
Datagram per CPU sweep. Therefore, only one Dequeue Datagram command per sweep
will be needed to handle incoming Datagrams.
If all Datagrams on the bus are sent with High Priority, the GBC can potentially receive
one Datagram from each transmitting device during a scan. The program should include
the same number of Dequeue Datagram commands as incoming Datagrams. (See page
6-19 for a description of datagram priority.)
If the Bus Scan Time is Less than the CPU Sweep Time
If the bus scan time is significantly shorter than the CPU sweep time, you can estimate
the number of Dequeue Datagram commands that must be sent to the GBC to
accommodate incoming Datagrams on that bus.
First, determine how many scans can occur in one CPU sweep. For example, if the bus
scan were 20mS and the CPU sweep were 90mS, the ratio between them would be 4.5 to
1. This should be rounded upward to 5.
This is the maximum number of Normal Priority Datagrams that might be received in a
single CPU sweep. Plan to have the same number of Dequeue Datagram commands to
that GBC in the program to handle the incoming Datagrams.
For High Priority Datagrams, multiply the number found above by the total number of
devices on the bus that might send a High Priority Datagram to the GBC in one bus scan.
This is the total number of incoming Datagrams from that bus the program might have
to handle in a single CPU sweep. Plan on this number of Dequeue Datagram commands
to the GBC.
6-16
Series 90
GFK-1034B
6
Format of Returned Data
The Dequeue Datagram returns data in the following format.
Location
High Byte
Low Byte
Data Length
Status byte
Memory address +1
Subfunction code
Function code
Memory address +2
Data byte 2
Data byte 1
Memory Address
b
b
b
b
b
b
b
b
b
The status byte reports the Device Number of the device that sent the
datagram. It also indicates whether the message was broadcast or
directed by the other device.
bit 7 6
B/D
DeviceNumber
(5bits:031decimal)
Unused
Broadcast
(1)
Directed
(0)
GFK-1034B
Data Length:
Function
Code:
Subfunction
Code:
6-17
6
COMMREQ #14: Send Datagram Command
Most datagrams are normally programmed using their assigned COMMREQ command
numbers. However, datagrams can also be sent using the Send Datagram command and
the Request Datagram Reply command. The Send Datagram command might be used to
send:
Read Device and Write Device datagrams that are broadcast, but which should be
ignored by another Series 90-30 GBC.
Datagrams that must be guaranteed transmission during the next bus scan. This
should be done with restraint, for the reasons explained on the following pages.
Datagrams which do not cause another device to send back a reply, such as Pulse
Test, or Write Configuration.
Messages that the 90-70 GBC has COMMREQs for, but the 90-30 GBC does not
Datagrams which DO cause another device to send back a reply, such as Read
Diagnostics or Read Configuration, are usually programmed using their assigned
COMMREQ numbers or the Request Datagram Reply command (COMMREQ #15).
However, if Send Datagram is used to send datagrams that cause replies, the
Dequeue Datagram command must be used to transfer the replies back to the CPU.
Before using Send Datagram, refer to the table on page 6-12 for more information about
COMMREQs and datagrams.
6-18
Series 90
GFK-1034B
6
Command Block for the Send Datagram Command
Address:
Command Length
No Wait
Status Block memory type
Status Block offset
Idle timeout value
0
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12 (%AQ)
Beginning address for the COMMREQ status.
0
Address +5:
Address +6:
Command number
14
Address +7:
Address +8:
Function code
Address +9
Address +10
Priority
Address +11:
Address +12:
to Address+n:
Datagram content
Address
Address
Address
Address
+1:
+2:
+3:
+4:
Datagram Priority
A GBC can send one datagram per bus scan. That datagram may be assigned either
normal priority or high priority. Therefore, during one bus scan, there may be one
normal priority datagram followed by up to 31 high priority datagrams, or up to 32 high
priority datagrams sent by the devices on the bus.
In one bus scan (one complete rotation of the bus token among all devices on the bus),
there can be only one normal priority datagram sent by any device. If a normal priority
datagram or similar system message (such as a fault report) has already been sent by any
device (including itself), a device must wait until its next turn on the bus before it can
send a normal priority datagram.
GFK-1034B
6-19
6
Datagrams and I/O Blocks
If the bus will also be used for I/O block control, normal priority datagrams are
recommended to allow other messages such as fault reports (which the system handles
as normal priority datagrams) to get through. In addition, normal priority datagrams
ensure that bus scan time is only modestly delayed for communications. Bus scan time
affects the response time of any I/O data on the bus. If there are I/O blocks on the bus,
use high priority only if the datagram transmission cannot be delayed. Normal priority
will work satisfactorily except when there are many devices attempting to send
datagrams simultaneously.
6-20
Series 90
GFK-1034B
6
Maximum CPU Sweep Time Increase for Datagrams: To estimate the impact of
Datagrams on CPU sweep time, add together the times required for all Datagrams that
might be sent between the GBC and the CPU during one sweep if No Wait mode is
selected. Repeat this for each GBC in the PLC that sends or receives Datagrams.
Total Datagram Bytes Sent
(may be none)
+
.031mS
.031mS
.031mS
1.200mS
OR
+
______mS
GFK-1034B
6-21
6
COMMREQ #15: Request Datagram Reply Command
The Request Datagram Reply command can be used to send any datagram that causes
the target device to return a reply, such as: Read Configuration or Read Diagnostics.
With this command, the GBC automatically transfers replies to the CPU; no separate
Dequeue Datagram command is needed to handle them.
These datagrams are normally programmed using their assigned COMMREQ command
numbers. The primary reason for sending any of these datagrams using COMMREQ
#15 would be to assign it high priority, guaranteeing that it would be sent on the next
bus scan. Before doing this, see page 6-19 for important information about datagram
priority.
Command Length
Address +1:
No Wait
Address +2:
Address +3:
Address +4:
Address +5:
Address +6:
Command number
15
Address +7:
0 31
Address +8:
Function code
Address +9
00 Read ID
02 Read Configuration
08 Read Diagnostics
0C Read Block I/O
1E Read Device
27 Read Data
Address +10
Priority
Address +11:
Address +12:
01 Read ID Reply
03 Read Configuration Reply
09 Read Diagnostics Reply
0D Read Block I/O Reply
1F Read Device Reply
28 Read Data Reply
Address +13:
Address +14:
Memory offset
Address +15:
Address +16 to
Address +n:
Datagram Content
Enter the entire datagram as shown in the Genius I/O System Users Manual.
Series 90
GFK-1034B
Index
A
A to D Comm fault, 5-5
AIHi/LowAlarm fault, 5-4
AIUnder/Overrange fault, 5-4
Analog faults, 5-4
AQ Under/Overrange fault, 5-4
B
Baud rate, 1-8, 4-5
configuration, 4-11
Bus
cable characteristics, 1-10
cable types, 1-81-10
how to disconnect, 3-5
installation, 3-6
length, 1-8
noise, 3-5
removal, 3-5
termination, 1-8, 3-8
using other cable types, 1-10
C
Cable types
characteristics, 1-10
high temperature, 1-9
prefabricated, 1-10
recommended, 1-9
Cal Mem fault, 5-5
Catalog numbers
cables
IC660BLC001, 1-10
IC660BLC003, 1-10
GFK-1034B
CPU, 1-7
GBC, IC693BEM331, 1-1, 1-6
Genius Bus Interface Unit,
IC760GBI001, 1-4
Hand-Held Programmer, IC693PRG300,
1-7
HHM, IC660HHM501, 1-7
inline HHM port, 44A736310-001-R001,
1-7, 3-11
mounting plate, IC660MPH509, 3-13
Series Six Bus Controller,
IC660CBB902F/903F, 1-7
software, 1-7
Circuit number, 5-2
Index-1
Index
using Hand-held Programmer, 4-94-15
using Logicmaster 90 software, 4-34-15
Connector, Hand-held Monitor, 3-11
CPU sweep, 2-2, 6-16, 6-20
CS Feedback Error fault, 5-4
G
GBC. See Genius Bus Controller
GCM. See Genius Communications Module
GE Fanuc bulletin board, 5-6
GENA faults, 5-4
Generic devices, configuring, 4-7, 4-13
Genius blocks, 1-2, 1-3
Genius Bus Controller
description, 1-5
number in system, 1-2
operation, 1-11
specifications, 1-6
Genius bus scan, description, 1-11
Genius Communications Module, 1-2,
2-12
receives global data from GBC, 2-12
F
Fault table, 5-2
Faults
categories, 5-2
Index-2
H
Hand-held Monitor, 1-2
connector, 3-11
Hand-held Programmer, compatibility, 1-7
Headend fault, 5-5
GFK-1034B
Index
I
I/O blocks, 1-2, 1-3
compatibility, 1-7
configuration, 4-1
on bus, 2-12
I/O bus fault, 5-5
N
No Load fault, 5-4
No Wait mode, 6-4
P
Passwords, Levels suitable for COMMREQs, 6-1
L
LEDs
Channel OK, 4-4
Comm OK, 1-5
Module OK, 1-5
LL Analog faults, 5-4
Index-3
Index
S
S6. See Series 6; Series Six
SBA, 4-6, 4-11
See also Bus address
configuring devices for, 4-13
Scan time contributions, 2-7
Selecting a cable type, 1-81-10
Timing
additional information, 6-21
bus scan and CPU sweep, 6-16, 6-20
bus scan time, 2-11
CPU sweep time, 2-7
device to device response time, 2-11
Index-4
V
Versions
CPU, 1-7
software, 1-7
W
WD (watchdog) Timeout fault, 5-5
Wiring Error fault, 5-4
GFK-1034B