Download - Series 90-30 GENIUS Bus Controller Manual
ÎÎ
GE Fanuc Automation
Programmable Control Products
Series 90 -30
Genius� Bus Controller
User’s Manual
GFK-1034B April 1996
GFL–002
Warnings, Cautions, and Notesas Used in this Publication
Warning
Warning notices are used in this publication to emphasize thathazardous voltages, currents, temperatures, or other conditions thatcould cause personal injury exist in this equipment or may beassociated with its use.
In situations where inattention could cause either personal injury ordamage to equipment, a Warning notice is used.
Caution
Caution notices are used where equipment might be damaged if care isnot taken.
Note
Notes merely call attention to information that is especially significant tounderstanding and operating the equipment.
This document is based on information available at the time of its publication. Whileefforts have been made to be accurate, the information contained herein does notpurport to cover all details or variations in hardware or software, nor to provide forevery possible contingency in connection with installation, operation, or maintenance.Features may be described herein which are not present in all hardware and softwaresystems. GE Fanuc Automation assumes no obligation of notice to holders of thisdocument with respect to changes subsequently made.
GE Fanuc Automation makes no representation or warranty, expressed, implied, orstatutory with respect to, and assumes no responsibility for the accuracy, completeness,sufficiency, or usefulness of the information contained herein. No warranties ofmerchantability or fitness for purpose shall apply.
The following are trademarks of GE Fanuc Automation North America, Inc.
Alarm MasterCIMPLICITYCIMPLICITY PowerTRACCIMPLICITY 90–ADSCIMSTARField Control
GEnetGeniusGenius PowerTRACHelpmateLogicmasterModelmaster
PowerMotionProLoopPROMACROSeries FiveSeries 90
Series OneSeries SixSeries ThreeVuMasterWorkmaster
Copyright 1996 GE Fanuc Automation North America, Inc.All Rights Reserved
Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 iiiGFK-1034B
Preface
This manual describes the features and operation of the Series 90�-30 Genius� Bus Con-troller (GBC). It also provides the configuration and programming information neededto complete the interface between a Series 90-30 PLC and a Genius I/O bus.
Revisions to this ManualChanges made to this manual, as compared to the previous version (GFK-1034A) consistof the following:
� Updated compatibility information, which includes new releases of Series 90-30hardware and Logicmaster 90-30/20/Micro software (see page 1-7).
� A reference to the run-disable mode, which does not apply to the GBC, was deletedfrom page 6-14.
� Other corrections and clarifications have been made as necessary.
Content of this ManualChapter 1. Introduction: describes the Series 90-30 Genius Bus Controller and explainshow it operates. Topics include: System Overview, I/O Devices on the Bus, Genius BusController Description, Compatibility, The Genius Bus, Genius Bus Controller Operation,Datagrams, and Sending and Receiving Global Data.
Chapter 2. Operation and Timing: explains the relationship between the operation ofthe bus controller and global data transmission on the Genius bus. Also describes timing,and how other devices on the bus handle global data.
Chapter 3. Installation: explains how to install and remove a GBC module, connect andterminate the communications bus, remove and install the module’s Terminal Assembly,and install an extra connector on the Genius bus for a Hand-held Monitor.
Chapter 4. Bus Controller Configuration: explains how to complete the Logicmasterconfiguration steps for a Bus Controller and its bus.
Chapter 5. Diagnostics: describes diagnostic capabilities in Series 90-30 PLC systems thatuse Genius I/O and communications. Topics include: Displaying and Clearing GeniusFaults From The Programmer I/O Fault Table, Status Bits, and Diagnostic Messages.
Chapter 6. Communication Requests: describes the use of the COMMREQ (Commu-nication Request) program instruction for fault handling and communications functions.
Preface
Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 iv GFK-1034B
Related PublicationsFor more information, refer to these publications:
Genius� I/O System and Communications User’s Manual (GEK-90486-1)
Genius� I/O Discrete and Analog Blocks User’s Manual (GEK-90486-2)
Genius� Hand-held Monitor User’s Guide (GFK-0121)
Series Six� Bus Controller User’s Manual (GFK-0171)
Series Five� Bus Controller User’s Manual (GFK-0248)
Series 90�-30 Programmable Controller Installation Manual (GFK-0356)
Series 90�-70 Remote I/O Scanner User’s Manual (GFK-0579).
Series 90�-70 Genius Bus Controller User’s Manual (GFK-0398).
Logicmaster� 90 Series 90-30/20/Micro Programming Software User’s Manual(GFK-0466).
Series 90�-30/20/Micro Programmable Controllers Reference Manual (GFK-0467).
Logicmaster� 90-70 Software User’s Manual (GFK-0579)
Hand-Held Programmer, Series 90�-30 and 90-20 User’s Manual (GFK-0402)
Field Control I/O Module User’s Manual (GFK-0826)
Genius� Bus Interface Unit User’s Manual (GFK-0825
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)
We Welcome Your Comments and SuggestionsAt GE Fanuc Automation, we strive to produce quality technical documentation. Afteryou have used this manual, please take a few moments to complete and return theReader ’s Comment Card located on the next page.
Libby AllenSenior Technical Writer
�Genius is a registered trademark of GE Fanuc Automation North America, Inc.
Contents
vGFK-1034B Series 90 -30 Genius� Bus Controller User’s Manual – April 1996
Chapter 1 Introduction 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
System Overview 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I/O Devices on the Bus 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Required for Genius Blocks 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Required for a Remote Drop 1-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . Field Control Station 1-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Genius Bus Controller Description 1-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status LEDs 1-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Specifications 1-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Compatibility 1-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The Genius Bus 1-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Genius Bus Specifications 1-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Selecting a Cable Type 1-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Genius Bus Controller Operation 1-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Genius Bus Scan 1-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Data from Devices on the Bus 1-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Data from the CPU 1-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Diagnostics 1-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Datagrams 1-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Global Data 1-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2 Operation and Timing 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How the Genius Bus Controller Handles Global and Input Data 2-1. . . . . . . . . Genius Bus Controller Receives Global or Input Data 2-2. . . . . . . . . . . . . . . Genius Bus Controller Sends Output Data 2-4. . . . . . . . . . . . . . . . . . . . . . . . . Genius Bus Controller Sends Global Data 2-5. . . . . . . . . . . . . . . . . . . . . . . . . Global Data Without an Application Program 2-5. . . . . . . . . . . . . . . . . . . . . .
Data Transmission on the Genius Bus 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Timing 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CPU Sweep Time for the Genius Bus Controller 2-7. . . . . . . . . . . . . . . . . . . . Bus Scan Time for Global Data 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device-to-Device Response Time 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How Other Devices Handle Global Data Sent by the Genius Bus Controller 2-12
Chapter 3 Installation 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Choosing a Rack Location for the GBC 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Module Installation and Removal 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Installation 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Removal 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Bus Installation 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terminal Assembly Removal and Installation 3-9. . . . . . . . . . . . . . . . . . . . . . . . .
Installing a Hand-held Monitor Connector 3-11. . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
vi Series 90 -30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Chapter 4 Configuration 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration Overview 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Device Types and Assigned Configuration Parameters 4-2. . . . . . . . . . . . . .
Sending and Receiving Global Data 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration Using Logicmaster 90 Software 4-3. . . . . . . . . . . . . . . . . . . . . . . . . . Module-specific Data 4-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Device-specific Data 4-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entries in REF VU (Reference View Option) 4-8. . . . . . . . . . . . . . . . . . . . . . .
Configuration Using the Hand-held Programmer 4-9. . . . . . . . . . . . . . . . . . . . . . . Hand-held Programmer Error Messages 4-9. . . . . . . . . . . . . . . . . . . . . . . . . .
Select the GBC 4-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configure GBC-specific Parameters 4-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configure Device-specific Parameters 4-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 5 Diagnostics 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Status Bits 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fault Table 5-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fault Table Definitions 5-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical Help 5-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 6 Communication Requests 6-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQs and Passwords 6-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Programming for a Communication Request 6-2. . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQ Command Block Format 6-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Block Contents 6-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command Block Quick Reference 6-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The COMMREQ Instruction 6-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQ Inputs and Outputs 6-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQ Status Block 6-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Programming Examples 6-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using COMMREQs to Send Datagrams 6-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQ Descriptions 6-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMREQ #8: Enable/Disable Outputs Command 6-14. . . . . . . . . . . . . . . .
COMMREQ #13: Dequeue Datagram Command 6-15. . . . . . . . . . . . . . . . . .
COMMREQ #14: Send Datagram Command 6-18. . . . . . . . . . . . . . . . . . . . . .
COMMREQ #15: Request Datagram Reply Command 6-22. . . . . . . . . . . . .
1section level 1 figure bi level 1 table_big level 1
Restarts for autonumbers that do not restart in eachchapter.figure bi level 1, reset table_big level 1, reset chap_big level 1, reset1app_big level 1, resetAfigure_ap level 1, resettable_ap level 1, resetfigure level 1, reset table level 1, reset Table 1.
these restarts must be in the header frame of chapter 1.a:ebx, l 1 resetAa:obx:l 1, resetAa:bigbx level 1 resetAa:ftr level 1 resetAc:ebx, l 1 reset1c:obx:l 1, reset1c:bigbx level 1 reset1c:ftr level 1 reset1
Reminders for autonumbers that need to be restartedmanually (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.
1-1GFK-1034B
Chapter 1 Introduction
This chapter provides an overview of the Series 90-30 Genius Bus Controller (GBC) andits operation. The following topics are presented:
� 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 OverviewThe Series 90-30 Genius Bus Controller (catalog number IC693BEM331) is used tointerface a Genius I/O serial bus to a Series 90-30 PLC. The GBC receives and transmitscontrol data of up to 128 bytes for up to 31 devices on the Genius bus.
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
Î Î
REMOTE DROP
A
SC
NNER
BUSCONTROLLER
CPUa42453
COMMUNICATIONSBUS
HAND-HELDMONITOR
I/O BLOCKS
PS
1
1-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
A Genius bus may serve:� Genius blocks, which provide interface to a broad range of discrete, analog, and
special-purpose field devices. Genius blocks are self-contained modules withadvanced diagnostics capabilities and many software-configurable features.
� Remote Drops, Series 90-70 I/O racks that are interfaced to the bus via Remote I/OScanner Modules. Each remote drop can include any mix of discrete and analog I/Omodules, 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 eightadditional Field Control modules. The BIU provides intelligent processing, I/O scanning,and feature configuration for the I/O Station.
� Hand-held Monitor, which can be used as a portable device orpermanently-mounted. A HHM provides a convenient operator interface for blocksetup, data monitoring, and diagnostics.
� Multiple hosts, for communications using datagrams and Global Data.
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 additionalcommunications. Or, a bus may be dedicated to CPU communications, with multipleCPUs and no I/O devices. More complex systems can also be developed, with dual CPUsand one or more additional CPUs for data monitoring.
Number of Genius Bus ControllersUp to eight GBCs or Enhanced Genius Control Modules (GCM+) can be installed in aSeries 90-30 PLC system that has release 5.0 or later Logicmaster 90 software and release5.0 or later CPU firmware. The GBC can not be installed in a system with a GCM.
1
1-3GFK-1034B Chapter 1 Introduction
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 modulesin one or more remote drops. The total number of I/O circuits that can be served by oneGenius bus depends on the types of I/O devices that are used and the memory availablein the CPU.
Memor y Required for Genius Blocks
Memory requirements for Genius I/O blocks are shown below. For %I and %Q memory,the sizes shown are in bits. For %AI and %AQ memory, the sizes shown are in words.
Block TypeMaximum Memory Requirements
Block Type %I (bits) %Q (bits) %AI (words) %AQ (words)
115 VAC Grouped I/O blocks 8 8115 VAC Isolated I/O blocks 8 816 Ckt AC Input Block 1616 Ckt DC Sink/source blocks 16 1632 Ckt DC Sink/source blocks 32 32Relay Output blocks 164 Input/2 Output Analog Blocks 4 2Current-source Analog I/O Blocks 4 2Current-source Analog Output Blocks 6RTD Input blocks 6Thermocouple blocks 6High-speed Counter 16 16 15PowerTRAC Module A 16 16 18
PowerTRAC Module B 16 16 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, or16 outputs with input feedback. When configuring the GBC using either Logicmaster 90or the HHP, the number of inputs and outputs configured for the device must matchwhat is configured in the block.
1
1-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Memor y Required for a Remote Drop
Together, one 90-70 Remote I/O Scanner (IC697BEM733) and the modules it serves makeup a remote drop on the Genius bus.
PS
GENIUS BUSALL RACKS MUST BE AT THE SAME GROUND POTENTIAL
RACK 7
PS
ÎÎ
BRM
a44875
NOTE:
PS
A
SC
NNER
RACK 1
ÎÎ
BRM
BTM
RACK 6
PS
ÎÎ
BRM
UP TO 50 FEET
Î
REMOTE DROP
RACK 0
The remote drop can include any mix of Series 90-70 discrete and analog input andoutput modules, up to a total of 128 bytes of inputs and 128 bytes of outputs (8 discretepoints represent one byte and 1 analog channel uses 2 bytes).
Field Control Station
A Field Control station, consisting of a Genius Bus Interface Unit (IC670GBI001) and theI/O modules it serves can make up a remote drop on the Genius bus.
The remote drop can include any mix of Field Control discrete and analog input andoutput modules, up to a total of 128 bytes of inputs and 128 bytes of outputs (8 discretepoints represent one byte and 1 analog channel uses 2 bytes).
For more information, see the Field Control� I/O Module User’s Manual (GFK-0826) andthe Genius� Bus Interface Unit User’s Manual (GFK-0825).
1
1-5GFK-1034B Chapter 1 Introduction
Genius Bus Controller Description
The GBC is a standard, rack-mounted Series 90-30 PLC module. It plugs easily into thePLC’s backplane or into a remote baseplate. The latch on the bottom of the modulesecures it in position. The module’s Terminal Assembly, with its protective hinged cover,is removable.
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
Î
Î
LATCH
REMOVABLETERMINALASSEMBLY
HINGEDCOVER
COMM OK(LED)
OK(LED)
a43394
ÎÎÎ
There are no DIP switches or jumpers to set on the module. Its configuration iscompleted using the Hand-held Programmer or the Logicmaster 90-30 software.Configuration steps are in Chapter 3.
Status LEDsThe LEDs on the front of the GBC indicate its operating status and should be on duringnormal operation.
Shows the status of the GBC. This LED turns on after power updiagnostics are completed.
Shows the status of the bus. This LED is on steadily when the bus isoperating properly. It blinks for intermittent bus errors and is off for afailed bus. It is also off when no configuration has been received fromthe PLC CPU.
Module OK
Comm OK
1
1-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Module Specifications
Ordering information IC693BEM331
Module type� Series 90-30 PLC module, providing Genius Global Data communications, Genius backgroundcommunications and I/O control with up to 31 other devices.
Quantity per PLC Up to 8 GBCs in a PLC system with release 5.0 or laterfirmware and Logicmaster 90 software.
Current consumption <300mA at +5VDC
Global data length per GBC Transmitted: Up to 128 bytes. Received: Up to 128 bytes each from up to 31 other devices.
Output data length per GBC Up to 128 bytes transmitted to each of up to 31 other de-vices.
Input data length per GBC Up to 128 bytes received from each of up to 31 other de-vices
Series 90-30 PLC, memory types forglobal data
%G, %I, %Q, %AI, %AQ, %R,
LEDs OK, COMM OKSoftware diagnostics Status bits, Fault Reporting to Series 90-30 PLC
� Refer to GFK-0867B, or later for product standards and general specifications.
1
1-7GFK-1034B Chapter 1 Introduction
CompatibilitySpecific equipment or software versions required for compatibility with the GBC moduleare listed below.
The GBC can be used with the following CPU models and versions of Logicmaster 90-30software. In each case, later models or versions can be used.
CPU ModelsIC693CPU___
CPU Firmware Logicmaster 90 SoftwareIC641SWP___
311S331T313H323H340B341K
release 5.0 or later (release 5.0 or later)301R306K311A
351AA release 6.0 or later (release 6.0 or later)301S306L311A
351AB release 6.02 or later (release 6.0 or later)
To exchange global data with a Genius Bus Controller, the Series Six Bus Controller mustbe 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 softwareversion, and the Series Six register address configured for global data. HHM versionIC660HHM501K (rev. 4.7) or later is required. There is no Hand-held Monitor connectoron the GBC module, but a Hand-held Monitor can communicate with the GBC whileconnected to any other device on the bus. Optionally, an additional HHM matingconnector (catalog number 44A736310-001-R001) can be installed on the bus near theGBC.
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 allowsthe use of %M (discrete internal) references.
Genius I/O blocks can be present on the same bus as the GBC. However, because the BusController is not compatible with older phase A blocks, they should not be installed onthe same bus.
Series 90-30PLC
Series Six PLC
Genius Hand-held Monitor
Series 90-30 Hand-heldProgrammer
Genius I/O Blocks
1
1-8 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
The Genius Bus
Genius Bus Specifications
Bus Type Daisy-chained bus cable; single twisted pair plus shield or Twinax.Fiber optics cable and modems can also be used.
Bus Termination 75, 100, 120, or 150 ohm resistor at both ends of electrical bus cable.
Baud Rate Configurable. 153.6 Kbaud standard, 153.6 Kbaud extended, 76.8Kbaud, or 38.4 Kbaud.
Maximum Bus Length 7500 feet at 38.4 Kbaud, 4500 feet at 76.8 Kbaud, 3500 feet at 153.6Kbaud extended, 2000 feet at 153.6 Kbaud, standard. Maximumlength at each baud rate also depends on cable type. The Genius�I/O System User’s 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 cablewith modems. (See Chapter 2 of the Genius I/O System User’s Manual–GEK -90486-1.)
Maximum Number ofDevices
32 devices at 153.6 Kbaud standard, 153.6 Kbaud extended, or 76.8Kbaud. 16 devices at 38.4 Kbaud. Includes GBC and typically aHand-held Monitor.
Data Encoding Each bit is encoded into three dipulses, majority voted at the receiverto correct any single dipulse errors. A dipulse is an AC code consist-ing of a positive then negative excursion of voltage. Dipulses are in-dividually sampled to reject low and high frequency interference.
Modulation Technique Frequency Shift Keying (FSK) 0 to 460.8 KHz max. (153.6 Kilobaud)
Isolation fromBackplane
2000 volts Hi-Pot, 1500 volts transient common mode rejection.
Signal/noise Ratio 60 dB
Selecting a Cable Type
The Genius bus is a shielded twisted-pair wire that is daisy-chained from block to block andterminated at both ends. Proper cable selection is critical to successful operation of thesystem.
Each bus in the system can be of any cable type listed in the table below. Do not mix cables ofdifferent impedances, regardless of cable run length. The maximum run for mixed cable typeequals the shortest length recommended for any of the types used. Other, small-size twistedpair shielded wire of unspecified impedance can be used for short runs of 50 feet or less,using 75 ohm terminations.
The excellent noise reduction of these cable types, and of the Genius communications system,allow the communications bus to be mixed with other signalling systems and 120 volt AC con-trol circuits without added shielding or conduits. Conservative wiring practices, and nationaland local codes, require physical separation between control circuits and power distributionor motor power. Refer to sections 430 and 725 of the National Electric Code.
1
1-9GFK-1034B Chapter 1 Introduction
Cable Types
Cable #& Make
OuterDiameter
Terminating Resistor*
–10%to+20%
Number ofConductors/AWG (mm2)
DielectricVoltageRating
AmbientTempRating
Maximum Length Cable Run, feet/meters at baud rate
–10%to+20%1/2 Watt
AWG (mm2) Rating Rating153.6s 153.6e 76.8 38.4 �
(A)9823(B)9182(C)4596
(M)M39240
.350in8.89mm
150 ohms 2 / #22 (0.36) 30V 60C 2000ft606m
3500ft1061m
4500ft1364m
7500ft2283m
(B)89182 .322in8.18mm
150 ohms 2 / #22 (0.36) 150V 200C 2000ft606m
3500ft1061m
4500ft1364m
7500ft2283m
(B)9841(M)M3993
.270in6.86mm
*120 ohms 2 / #24 (0.22) 30V 80C 1000ft303m
1500ft455m
2500ft758m
3500ft1061m
(A)9818C(B)9207
(M)M4270
.330in8.38mm
100 ohms 2 / #20 (0.54) 300V 80C 1500ft455m
2500ft758m
3500ft1061m
6000ft1818m
(A)9109(B)89207(C)4798
(M)M44270
.282in7.16mm
100 ohms 2 / #20 (0.54) 150V 200C 1500ft455m
2500ft758m
3500ft1061m
6000ft1818m
(A)9818D(B)9815
.330in8.38mm
100 ohms 2 / #20 (0.54) 1500ft455m
2500ft758m
3500ft1061m
6000ft1818m
(A)9818(B)9855
(M)M4230
.315in8.00mm
100 ohms 4 (two pair)#22 (0.36)
150V 60C 1200ft364m
1700ft516m
3000ft909m
4500ft1364m
(A)9110(B)89696(B)89855
(M)M64230
.274in6.96mm
100 ohms 4 (two pair)#22 (0.36)
150V 200C 1200ft364m
1700ft516m
3000ft909m
4500ft1364m
(A)9814C)(B)9463
(M)M4154
.243in6.17mm
75 ohms 2 / #20 (0.54) 150V 60C 800ft242m
1500ft455m
2500ft758m
3500ft1061m
(A)5902C(B)9302
(M)M17002
.244in6.20mm
75 ohms 4 (two pair)#22 (0.36)
300V 80C 200ft60m
500ft152m
1200ft333m
2500ft758m
Notes: A = Alpha, B = Belden, C = Consolidated, M = Manhattan� = Limited to 16 taps at 38.4 Kbaud
Notes
The 89182, 89207, 4794, 89696, and 89855 types are high temperaturecables for use in severe environments, and are qualified for use in airplenums.
The 9815 type is water resistant, and can be used where direct burial isrequired.
Similar cables of equivalent terminating resistance such as 9207, 89207,and 9815 can be mixed.
1
1-10 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Using Other Cable Types
The cable types listed in the preceding table are recommended for use. If the cable typeslisted above are not available, the cable selected must meet the following guidelines.
1. High quality construction. Most important is uniformity of cross section along thelength of the cable. Poor quality cable may cause signal distortion, and increase thepossibility of damage during installation.
2. Precision-twisted shielded wire of EIA RS-422 standard type, having a uniformnumber of twists per unit of length. In a catalog, this type of cable may also be listedas twinaxial cable, data cable, or computer cable.
3. Relatively high characteristic impedance; 100 to 150 ohms is best; 75 ohms is theminimum recommended.
4. Low capacitance between wires, typically less than 20pF/foot (60pF/meter). Thismay be accomplished by inner dielectrics of foamed type, usually polypropylene orpolyethylene, having a low dielectric constant. Alternatively, the conductors may bespaced relatively far apart. Lower impedance types have smaller cross–sections, andprovide easier wiring for shorter total transmission distances.
5. Shield coverage of 95% or more. Solid foil with an overlapped folded seam and drainwire 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 chemicalresistance. 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 andNRZ data rate is useful for comparing cable types. The Genius bit consists of threeAC 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 applicationengineer.
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 inmating connectors that simplify wiring between I/O blocks.
1
1-11GFK-1034B Chapter 1 Introduction
Genius Bus Controller Operation
The GBC handles all data transfer between the PLC and the devices on its bus. In orderto 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 theCPU and the GBC.
The GBC manages data transfer between the bus and the CPU by maintaining anon-board RAM and a serial backplane interface. The GBC places inputs in the on-boardRAM when they are received from the Genius bus. When the input sweep of the PLCCPU occurs, inputs from the on-board RAM are transferred via the serial backplane tothe CPU. When the output sweep of the PLC CPU occurs, outputs are received from theCPU via the serial backplane and placed in the on-board RAM. When the GBC receivesthe token on the Genius bus, outputs from the on-board RAM are transmitted onto theGenius bus.
The Genius Bus Scan
A bus scan consists of one complete rotation of a “token” among the devices on the bus.
a43528
TOKEN PATH
2 3
ÎÎÎÎÎÎÎÎ
GBC
(DEVICE 31)
301
As mentioned earlier, these devices may include other GBCs, or Remote I/O Scanners, inaddition to (or instead of) the Genius blocks illustrated above.
During a bus scan, the GBC automatically:
� receives all input data that has been sent by devices on the bus.
� broadcasts global data.
� updates outputs, as permitted, to the devices on the bus. Transmission of outputsfrom the GBC can be disabled for one or more devices on the bus.
� receives any fault messages issued by devices on the bus and issues fault reports tothe CPU that can be displayed using the Logicmaster software.
� sends a single command received from the CPU (for example, a Clear Circuit Faultdatagram) to the appropriate devices.
The amount of time it takes for the communications token to pass to all devices dependson the baud rate, the number and types of devices on the bus, and the use of global dataand datagram communications.
1
1-12 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Input Data from Devices on the Bus
The GBC receives input data or global data from each input block, I/O block, remotedrop, or bus controller each time the block or Remote I/O Scanner has thecommunications token. (Because this data is broadcast, it may be received by any otherbus interface module operating on the bus).
INPUTSFROM BLOCK 4
1 2 3 4
GBC
a43559
= TOKEN
The GBC stores all the input data it receives. Once per CPU sweep, the CPU reads alldiscrete and analog inputs from the GBC. (Analog data is not multiplexed).
Output Data from the CPU
As the application program executes, the CPU sends outputs and any commands to theGBC. The GBC stores this data, transmitting it on the bus each time it has thecommunications token. Unlike inputs, which are broadcast, outputs are directed to thespecific device that should receive them.
GBCHAS
TOKEN
1 2 3 4
GBC
a43557OUTPUTS
PLC CPU
READS STORED INPUTS
STORES NEW OUTPUTS
TOKEN
1
1-13GFK-1034B Chapter 1 Introduction
Diagnostics
Genius blocks and other devices on the bus automatically report faults, alarms andcertain other predefined conditions to the PLC.
INPUTS AND FAULT MESSAGEFROM BLOCK 3
1 2 3 4
GBC
a43556
F FF
TOKEN
FAULT
Only one diagnostic message can be sent during any bus scan. If a fault message hasalready been sent (by another device) during that scan, a device saves its own diagnosticmessage until the next available bus scan. For example, if the communications token iscurrently at device 3, and faults occur at devices 3 and 4 at the same time, device 3 cansend its diagnostic message if another message has not already been sent. Device 4 mustwait at least one more bus scan to send its diagnostic message.
The GBC stores any diagnostic messages it receives. They are read automatically by theSeries 90-30 CPU. Faults can then be displayed in the fault table using the Logicmaster90-30 software. Faults on the Genius device can be cleared using the Genius HHM.Faults in the PLC’s I/O fault table and on the Genius device can be cleared fromLogicmaster 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 Genius� I/O System User’s Manualexplains datagrams in detail. It also shows the formats of the data that is transferred bydatagrams.
In an application program, communication request (COMMREQ) instructions are usedto send datagrams and to read any unsolicited datagrams that have been received. SeeChapter 6 for instructions.
1
1-14 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Datagrams
The Series 90-30 GBC supports all Genius datagrams. Refer to Chapter 3 of the Genius�I/O System and Communications User’s Manual (GEK-90486E-1) for further details on theuse of datagrams.
Datagram Type Description
Read ID Requests identifying information from a device on the bus.
Read ID Reply The automatic response to a Read ID datagram.
Read Configuration Requests configuration data from a device on the bus.
Read Configuration Reply The automatic response to a Read Configuration datagram.
Write Configuration Sends configuration data to a device on the bus.
Assign Monitor Commands a device on the bus to direct an extra copy of each FaultReport to another device on the bus.
Read Diagnostics Requests diagnostics data from a device on the bus.
Read Diagnostics Reply The automatic response to a Read Diagnostics datagram.
Write Point Sends up to 1 word of bit data to a Series Six or Series Five PLC, orto a host computer.
Read Block I/O Requests I/O data from some types of Genius blocks.
Read Block I/O Reply The automatic response to a Read Block I/O datagram.
Report Fault An automatic diagnostic message received from a device on thebus.
Pulse Test Commands a discrete block to pulse its outputs.
Pulse Test Complete Automatic indication that outputs have been pulsed.
Clear Circuit Fault Clears one specific circuit fault.
Clear All Circuit Faults Clears all circuit faults on bus devices.
Switch BSM Causes a Bus Switching Module to switch to alternate bus, if opera-tional.
Read Device Reads up to 128 bytes of CPU data via another GBC.
Read Device Reply The response to a Read Device datagram.
Write Device Sends up to 128 bytes of data to a CPU, via its GBC.
Read Data Requests temporary data from a High-speed Counter block.
Read Data Reply The automatic reply to a Read Data datagram.
Write Data Sends temporary data to a High-speed Counter block.
Read Map Requests the I/O map configuration of a Remote I/O Scanner orField Control
Read Map Reply Automatic response to a Read Map datagram.
Write Map Sends I/O map configuration to a Remote I/O Scanner or Field Con-trol.
1
1-15GFK-1034B Chapter 1 Introduction
Global DataGlobal 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 128bytes of Global Data each bus scan from each GCM+ or other GBC on its bus.
Sending Global Data Once set up by configuration (see Chapter 4), Global Data is broadcast automatically.Other devices that receive the Global Data place it in these memory locations:
Series 90-30 SendsGlobal Data To:
Other CPU Places Global Data in this Memory Location:
Series 90-30 PLC %I, %Q, %G, %R, %AI, %AQ, and %M (HHP configuration only).Memory type and beginning address are chosen during configuration ofthe receiving GBC.
Series 90-70 PLC %I, %Q, %G, %R, %AI, %AQ. Memory type and beginning address arechosen during configuration of the receiving GBC.
Series 90-30 GCM+ %I, %Q, %G, %R, %AI, %AQ. Memory type and beginning address arechosen during configuration of the receiving GCM+.
Series 90-30 PLC/GCM
%G memory location corresponding to Device Number (16-23) of theSeries 90-30 GBC that sent the data.
Series Six PLC Register memory. Beginning S6 address selected during configuration ofthe Series 90-30 GBC that sent the data.
Series Five PLC Register memory. Beginning S6 address selected during configuration ofthe Series 90-30 GBC that sent the data.
Computer PCIM or QBIM Input Table Segment corresponding to Device Numberof the Series 90-30 GBC that sent the data.
Receiving Global DataThe GBC can be configured to receive or ignore Global Data from any other GBC. Thememory type and length for incoming Global Data are also selected duringconfiguration, as described in Chapter 4.
The Series 90-30 CPU can place incoming Global Data in %I, %Q, %G, %R, %AI, %AQ,or %M (HHP configuration only) memory.
ExampleIn the following example, a Series 90-30 PLC (PLC 1) sends 64 bits of Global Databeginning at %I0105 to another Series 90-30 PLC (PLC 2). PLC 2 places this data into itsown 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-30PLC 1
Series 90-30PLC 2
%I0105 – %I0169%AI0032 – %AI0039
%I0017 – %I0081%AQ00001 – %AQ00008
��
2section level 1 figure bi level 1 table_big level 1
2-1GFK-1034B
Chapter 2 Operation and Timing
This chapter explains:
� 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 scantime 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 alsoreceive 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 %Imemory.
2
2-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Genius Bus Controller Receives Global or Input Data
The GBC passes global data and input data, from all devices for which a length has beenconfigured, 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 hasthe bus token. The global data is received by a GBC module (#20 in thediagram) in a Series 90-30 PLC system.
GBC
SBA #18 SBA #22SBA #20
Global datafrom SBA #22
�Global datafrom SBA #22
�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R
The GBC module stores the global data it receives. When the Series 90-30 CPU executesthe input update portion of its sweep, it reads global data, input data, and status bits (seebelow) from the GBC.
In this example, the PLC CPU copies global data from the GBC into the memorylocations configured for the devices at bus addresses 18 and 22.
GBC
SBA #18 SBA #22SBA #20
�
�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R,
%M
2
2-3GFK-1034B Chapter 2 Operation and Timing
What Happens If Incoming Global or Input Data Stops As part of the GBC configuration a data default (OFF or HOLD Last State) must beselected. If the GBC stops receiving data from any device(s) for which a global or inputdata length has been configured, the GBC sets the corresponding memory locations tothe selected default. If the default is OFF, the GBC supplies 0s for the missing data. If thedefault is HOLD, the GBC continues to supply the last set of valid data it received fromthe device.
Status Bits The GBC maintains a status bit for every potential bus device. Bit 0 of the 32 bits ofstatus corresponds to SBA0. Bit 31 corresponds to SBA31. These bits are set to a value of1 for every correctly configured device that is present on the bus. The bit correspondingto 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 thedevice is not configured or incorrectly configured), its bit is set to 0. In addition, the GBCdefaults the data as described above. The configuration supplied to the GBC mustprovide a location in %I in which to place the 32 status bits. The status bits are updatedevery PLC sweep.
Note: The GBC can been configured to receive global data from a Series 90-30 or 90-70PLC on the Genius bus. If this external 90-30 or 90-70 is put in STOP mode, global data isno longer sent. The GBC configured to receive this global data will default the device’sdata to OFF or to HOLD LAST STATE (as configured), but will not set the device’s statusbit to 0.
2
2-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Genius Bus Controller Sends Output Data
If there is an application program running in the 90-30, it executes before the PLC CPUupdates outputs. During the output portion of the sweep, if the GBC is configured tosend output data to devices on the Genius bus, the PLC CPU also writes the contents ofthe selected memory locations to the GBC.
Example:
GBC
SBA #18 SBA #19SBA #31�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R
The CPU sends new output data to its GBC from the memory locations configured asoutputs for devices 18 and 19. The GBC module stores the data until it receives the bustoken. At that time, it directs the output data for device 18 to device 18, and then directsthe output data for device 19 to device 19.
GBC
SBA #18 SBA #19SBA #31�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R
� �
Outputsfor 18
Outputsfor 19
2
2-5GFK-1034B Chapter 2 Operation and Timing
Genius Bus Controller Sends Global Data
If there is an application program running in the 90-30, it executes before the PLC CPUupdates outputs. During the output portion of the sweep, if the GBC is configured tosend global data to the Genius bus, the PLC CPU also writes the contents of the selectedmemory locations to the GBC.
In the following example, the CPU sends new global data to its GBC from thememory location configured for bus address 20.
GBC
SBA #18 SBA #22SBA #20�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R,
%M
The GBC module stores this data until it receives the bus token. At that time, itbroadcasts 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 sentfrom bus address 20:
GBC
SBA #18 SBA #22SBA #20�
Series 90-30Memory
%G, %I,%Q, %AI,%AQ, %R,
%M
Global datafrom SBA #20
�
What Happens If the CPU Stops Supplying Global Data or Output DataWhen the CPU stops, the GBC stops sending global data and output data.
Global Data Without an Application Program
The Series 90-30 can transmit and receive global data with or without running anapplication program. Configuring I/O modules in the Series 90-30 to have the samereference addresses used for global or input data allows the I/O modules to effectivelyexchange I/O data with another device on the bus. Thus, where it is desired to set up theSeries 90-30 PLC without a program, data coming into the GBC will be mapped to %Qand %AQ (where output modules are also mapped) and outgoing global data andoutput data will be mapped to %I or %AI (where input modules are also mapped).
2
2-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Data Transmission on the Genius Bus
Communications on the Genius bus occur by a method called “token passing”. Thedevices on the bus pass an implicit token, which rotates among the devices in sequencefrom address 0 to address 31. Unused addresses are passed with very slight delays. Thissequence is called a bus scan. After device 31 has had its turn, the scan restarts atdevice 0.
a43393
TOKEN PATH
DEVICESON THE
BUS0 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 alldevices 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 transmittingdevice sends one specific broadcast message which acts as a sign-off message, and thetoken passes to the next device.
If CPU sweep time is slower than bus scan time, it is possible that some incoming globaldata might change before it is picked up by the CPU. It is important to be sure that thedata 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 samedata repeatedly. Also, if output data changes too quickly, some outputs may changebefore they are sent out on the Genius bus. The ”Timing” section in this chapter explainshow to estimate bus scan time and CPU sweep time.
2
2-7GFK-1034B Chapter 2 Operation and Timing
Timing
Global, input, and output data adds to both the CPU sweep time in the Series 90-30 andto the scan time of the Genius bus. You can estimate the CPU sweep time and bus scantime added by data transmissions, and the time it can take for a Series 90-30 PLC to senddata and then receive a response based on that data.
CPU Sweep Time for the Genius Bus Controller
The impact of global, input, and output data on CPU sweep time depends on the type ofPLC, the GBC rack location, and the types and amounts of data transferred. Refer to thefollowing table.
CPU Model Rack LocationBase Contribution
(milliseconds)Per Byte Contribution(microseconds/byte)
311/313 N/A 0.887 13331 main 0.967 21
expansion 1.164 29remote 1.920 76
340/341 main 0.666 17expansion 0.901 24
remote 1.626 72
1. Once configured, the GBC always provides 32 status bits to the CPU, adding to theCPU sweep time. The time required for this is listed in the table above as the “basetime” under “Status Bits + Incoming Global/Input Data”.
For example, if a GBC is installed in a local or expansion rack of a model 331PLC, the base time for status bits and incoming global data is 1.2ms.
1.20incomingbase time
Because the GBC always supplies its status bits to the CPU, the incoming data basetime must be included in the sweep time calculation, regardless of whether or notthe GBC passes incoming global/input data to the CPU. A sweep time exampleillustrating this is on the next page.
2
2-8 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
2. If the GBC passes incoming global/input data from one or more bus devices to theCPU, multiply the total of: the number of global data bytes passed to the CPU by thecorresponding “per byte” time in microseconds as listed in the table. For the model331 PLC CPU only, incoming bit data has a slightly greater per byte rate than worddata. 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 6other devices to the model 331 CPU’s %R, %AI, or %AQ memory, the base timeplus the time required to transfer the data is:
1.20 + (96 * 0.017) =2.83ms
per-byte rate for %R, %AI or %AQfor model 331 CPU
incomingbase time
incoming global data16 bytes x 6 devices = 96
3. If the GBC will also send global/output data, find the additional base time foroutgoing global data. Add bytes of output data for each output device. To this basetime, add: the number of bytes sent multiplied by a per-byte time in microseconds asshown in the table. Again, for the model 331, use the “bit” per-byte time fordestination 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 ofsending the data is:
1.30 + (64 * 0.021) =2.64ms
outgoingbase time
outgoing global data64 bytes
per-byte rate for %R, %AI or %AQfor model 331 CPU
If the GBC does not send global data or output data, no base time or per-byte time isincluded in the CPU sweep. This is different from the incoming global datacalculation, 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
2-9GFK-1034B Chapter 2 Operation and Timing
Example with Genius Bus Controller in a Remote Rack
If the same GBC was installed in a remote rack, exchanging the same amounts of datawith 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
incomingbase time
incoming global data96 bytes
outgoing global data64 bytes
outgoingbase time
per-byte rate for %R, %AI or %AQfor model 331 CPU
Example with No Incoming Global Data or Input Data
If a GBC sends global data but does not pass any incoming global data to the CPU, thetime required to transfer its status bits still impacts the CPU sweep. The base time forincoming data described in step 1 must always be included in the sweep time calculation.
For example, a GBC in an expansion rack passes no incoming global data to theCPU, but sends 48 bytes each bus scan. The sweep time impact is:
1.2 + 1.3 + (48 * 0.021) = 3.51 ms
incomingbase time
outgoing global data48 bytes
outgoingbase time
per-byte rate for %R, %AI or %AQfor model 331 CPU
2
2-10 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Example with No Outgoing Global/Output Data, Genius Bus Controller Receivesboth Bit and Word Data
If the GBC passes incoming global data to the CPU but does not send any, the sweeptime calculation includes only the incoming data base time and per-byte time. Again, ifthe PLC CPU is a model 331, incoming data sent to %G, %I, or %Q has a slightly greaterper-byte rate than data sent to %R, %AI, or %AQ, so the two data types are separated inthe calculation.
In this example, a GBC in a local rack of a model 331 passes 32 words and 256bits of incoming global data to its CPU. It does not send any global data. Thesweep time impact is:
1.2 + (64 * 0.017) + (32 * 0.019) = 2.90 ms
incomingbase time
incoming word data32 words = 64 bytes
incoming discrete data256 bits = 32 bytes
per-byte rate for %R, %AI or %AQfor model 331 CPU
per-byte rate for %G, %I or%Q for model 331 CPU
Reducing the Sweep Time ImpactTo minimize the impact of global data transfer on the CPU sweep time, you can:
� 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 transferredon 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 forincoming global data.
2
2-11GFK-1034B Chapter 2 Operation and Timing
Bus Scan Time for Global Data
The minimum amount of time required for the token to make a complete bus rotation is3mS. This minimum time limit is imposed by the GBC and other types of bus interfacemodules. The maximum bus scan time is 400mS, but this will not be reached undernormal circumstances.
The presence of other PLCs, a host computer, I/O blocks, or datagrams on the bus addsto the bus scan time (although the time required for each individual messagetransmission remains the same). Using one of the slower baud rates also increases busscan time. The scan time increase from 153.6 Kbaud standard to 153.6 Kbaud extended isslight. But scan time is about twice as long at 76.8 Kbaud and four times as long at 38.4Kbaud.
Estimating Bus Scan TimeRefer to “Timing Considerations” in the Genius� I/O System and Communications User’sManual (GEK-90486-1) for instructions on how to estimate bus scan time.
You will need to add up the time needed to service all devices on the bus, including theGBC, at the bus baud rate. All 32 possible bus addresses (including unused busaddresses) must be accounted for. See the table below.
Device TypeContribution time in mS at each baud rate
Device Type153.6 Kb std 153.6 Kb ext 76.8 Kb 38.4 Kb
GBC 0.586 0.658 1.324 2.655
Unused Bus Address 0.026 0.052 0.104 0.208
Reducing Bus Scan TimeBus scan time can be shortened by reducing the number of devices on the bus, reducingthe amount of global data transmitted, or both.
Device-to-Device Response Time
If you want to find out approximately how long it will take for one module to sendglobal data to another and to receive a response based upon that data, add together themaximum times that may be required for each portion of the input to output cycle. Referto “Timing Considerations” in the Genius� I/O System and Communications User’s Manual(GEK-90486-1) for more information.
2
2-12 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
How Other Devices Handle Global Data Sent by the Genius BusController
Global data sent by a GBC can be received by any other Bus Controller, GeniusCommunications Module (GCM), Personal Computer Interface Module (PCIM), orQ-Bus Interface Module (QBIM on the bus. All devices receive the same global datamessage from the GBC. How each type of device handles the message is summarizedbelow. (See the table on page 1-15 for a list of memory locations for each module type.)
A GBC in another Series 90-30 PLC places the data in the memorylocation specified when that GBC is configured.
A GCM+ on another Series 90-30 PLC places the data in the memorylocation specified when that GCM+ is configured. If the GCM+ doesnot need all the data, a message offset and length can be specified.
The Series 90-30 Genius Communications Module uses specific %Gmemory locations for global data. It places incoming global data in the%G memory location corresponding to the Device Number (16–23) ofthe Series 90-30 GBC that sent the data. The GCM will not receive globaldata sent from SBAs 0–15 or 24–31.
The Series 90-30 PLC places incoming global data into the memorylocation selected during configuration of its GBC.
The Series 90-70 PLC places incoming global data into the memorylocation selected during configuration of its GBC.
If a Series Six Reference is specified during GBC configuration, anySeries Six and/or Series Five PLC on the bus will automatically receive allglobal data from the GBC and place it in that register location.
See Series Six PLC.
Data from the GBC is placed into the PCIM or QBIM Input TableSegment corresponding to the bus address of the GBC. The computer’sapplication program is responsible for transferring global data betweenthe CPU and the PCIM or QBIM.
I/O blocks (controlled by another host) can be present on the bus, butcannot receive global data.
Series 90-30PLC GBCModule
Series 90-30PLC GCM+Module
Series 90-30PLC GCMModule
Series 90-30PLC
Series 90-70PLC
Series SixPLC
Series FivePLC
Computer
I/O Blocks
3section level 1 figure bi level 1 table_big level 1
3-1GFK-1034B
Chapter 3 Installation
This chapter explains how to:
� determine the maximum number of GBCs and Genius blocks that can be configuredfor your system
� install and remove a GBC module� connect and terminate the communications bus� remove and install the module’s Terminal Assembly� install an extra connector on the Genius bus for a Hand-held Monitor
Note
If the Genius bus is operating at 76.8Kbaud, the bus must be properlyterminated 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 itwithout any bus connections, place a 75-ohm resistor across the Serial 1 and Serial 2terminals to ensure that the module will power-up.
3
3-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Choosing a Rack Location for the GBC
The GBC module can be located in any I/O slot in Series 90-30 CPU expansion andremote baseplates, or I/O racks, including remote racks. For the most efficient systemoperation, the main baseplate is preferred. See the “Timing” section of Chapter 2 fordetails.
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 ofother I/O modules in your system, your system may not be able to handle all eightGBCs.
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 1–3, below.
1. The I/O configuration block uses a base of 90 bytes of user memory. Each smartmodule uses 257 bytes of user memory for parameter data. Finally, every I/Osegment 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 thenumber derived from the formula above is greater than the number next to the CPUthat you are using, the system will not work due to memory limitations.
CPU Available Memory(bytes)
311 4,720
313 4,720
323 4,720
331 4,656
340/341 8,176
351 16,368
3
3-3GFK-1034B Chapter 3 Installation
Example:
A user wants to configure three GBCs (the first with 53 segments, the second with 26segments, and the third with 11 segments), 1 discrete input module, 1 analog inputmodule, 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 segmentsSecond GBC: 1 for status + 26 configured segmentsThird GBC: 1 for status + 11 configured segmentsDiscrete 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= 903 x 257= 77198 x 40=3,920 4,781
This will fit in a 341 CPU, but not in a 331 CPU.
3
3-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Module Installation and Removal
Module Installation
The GBC module is installed and removed in the same manner as all other Series 90-30modules. 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 facingaway from you.
2. Align the module with the desired base slot and connector. Tilt the module upwardso 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 thebottom of the module snaps into place, engaging the baseplate notch.
ÎÎÎÎ
ÎÎÎÎ
a43055ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎÎ
3
3-5GFK-1034B Chapter 3 Installation
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 terminaland the Serial 2 wires have been connected to one terminal or jumpered as described onthe next page. If this has been done, do not disconnect the bus cable or any terminatingresistor. Before removing the GBC, carefully remove the Terminal Assembly from thefront of the GBC (see page 3-9). Avoid contact with exposed cable wiring. Place theTerminal Assembly, with the bus wiring still attached, in a protected location.
Caution
If exposed wiring comes in contact with conductive material, data onthe 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 themodule.
2. While holding the module firmly at the top, continue fully depressing the releaselever and swing the module upward.
3. Disengage the hook at the top of the module by raising the module up and movingit away from the baseplate.
ÎÎÎÎ
Î
a43056
PRESSRELEASE LEVER
3
3-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
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:
OK
COM
GENIUSBUSCONTROL
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
GENIUS
1
3
2
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
4
44A729182–068R01FOR USE WITHIC693BEM331
SER1
SER2
SHDIN
SHDOUT
BUSCONTROLLER
a47051
10
Connection can be made to any of the terminals in a group. The cable is routed to andfrom the terminals via the bottom of the Terminal Assembly cavity.
3
3-7GFK-1034B Chapter 3 Installation
Using the cable type selected for the application, connect the devices as shown in thefollowing 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 touchother wires or terminals. Spaghetti tubing should be used to coverthese wires.
4. Connect Serial 1 terminals of adjacent devices and the Serial 2 terminals ofadjacent devices.
5. Connect Shield In to the Shield Out terminal of the previous device. (For the firstdevice on the bus, Shield In is not connected.)
6. Connect Shield Out to the Shield In terminal of the next device. (For the lastdevice on the bus, Shield Out is not connected.)
a43391First
Device
SHIELD
OUT
SHIELD
IN
SERIAL
2
SERIAL
1
R
SHIELD
OUT
SHIELD
OUT
LastDevice
SHIELD
OUT
R
ÎÎ
ÎÎ
Î
Î
ÎÎ
Î
Î
ÎÎÎÎ
ÎÎ
ÎÎ
ÎÎÎÎ
ÎÎ
ÎÎ
ÎÎ
ÎÎÎÎ
ÎÎ
ÎÎÎÎ
ÎÎÎÎ
SHIELD
IN
SERIAL
2
SERIAL
1
SHIELD
IN
SERIAL
2
SERIAL
1
SHIELD
IN
SERIAL
2
SERIAL
1
3
3-8 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Serial Wire ConnectionsThe Serial 1 and Serial 2 terminals are interconnected on the circuit board, not on theterminal strip. Incoming and outgoing signal wire pairs can be connected to either oneor two Serial 1 or Serial 2 terminals:
12
34
5
Serial 1terminals
Serial 1signal wires
jumper
12
34
5
Serial 1terminals
Serial 1signal wires
Signal Wires Connectedto One Terminal
Signal Wires Connectedto Two Terminals
If you are connecting two signal wires to the same terminal, use spade or lug-typeconnectors, or twist the exposed ends of the wires together before inserting them. Thiswill allow future removal of the Terminal Assembly without disrupting other devices onthe bus (see ”Module Removal”, in this chapter).
If you are connecting two signal wires to separate terminals, install a jumper betweenthe two terminals as shown on the right above. Failure to install the jumper will causethe entire bus to be disrupted whenever the faceplate is removed.
Terminating the BusThe bus must be terminated at both ends by its characteristic impedance. The list ofsuitable cable types in the Genius I/O System and Communications User’s Manual includesthe termination requirements for each cable type. If the GBC is at the end of the bus,install a resistor of the appropriate impedance across its Serial 1 and Serial 2 terminals asshown below.
If you need to install the terminating resistor across terminals different than those usedfor the signal wires, attach jumper wires between the signal wire terminals and theresistor terminals to prevent the bus from becoming unterminated if the TerminalAssembly is removed. Failure to do so will cause the entire bus to be disrupted wheneverthe faceplate is removed.
1
10
Signal Wires and Resistor Connectedto Different Terminals1
23
45
Serial 1 and 2 terminals
Serial 1signal wire
Signal Wires and Resistor Connectedto Same Terminals (preferred)
10
98
76
Serial 2signal wire
3
5Serial 1
signal wire
9
76
Serial 2signal wire
resistor
resistor
jumpers
Serial 1 and 2 terminals
3
3-9GFK-1034B Chapter 3 Installation
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.
Terminal Assembly Removal1. Open the hinged cover on the front of the module.
2. There is a jacking lever above the wiring terminals, on the left. Push this leverupward to release the terminal block.
ÎÎÎÎ
ÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎ
ÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
JACKINGLEVER
a43061
3. Grasp the narrower pull-tab located at the right of the retaining tab. Pull the tabtoward you until the contacts have separated from the module housing and thehook has disengaged.
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
ÎÎ
PULLTAB
a43715
3
3-10 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Terminal Assembly InstallationTo replace the Terminal Assembly, follow the steps below. If wiring is already in place, besure 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 besure they match. If a wired Terminal Assembly is installed on thewrong 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. Closethe Terminal Assembly door.
2. Place the hook at the bottom of the Terminal Assembly into the corresponding slot atthe 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 TerminalAssembly in place.
a43062
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎ
ÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎ
ÎÎÎÎÎ
2
3
1
REFER TO TEXT FORINSTALLATION PROCEDURE
3
3-11GFK-1034B Chapter 3 Installation
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-heldMonitor connector and serial bus terminals in a single convenient package.
Hand-held Monitor Connector
Serial Bus Terminals
Panel Mounting Ear2.834 in7.198 cm
1.673 in4.249cm
.5 in1.27 cm
shown at 100% of actual size
X1
X1 X2
X2 SA SB
SA SBX1 Serial 1X2 Serial 2SA Shield InSB Shield Out
46357
Mounting the HHM Connector
This unit can be easily mounted on a rail such as a standard 35mm or 15mm DIN rail.The panel-mounting ears are not used if the unit is installed on a DIN rail.
35mm DIN rail
(Removable) DIN railMounting Feet
side view: shown at 50% of actual size
46358
Alternatively, it can be installed directly on a panel using screws through its mountingears. The DIN rail feet on the back of the unit are removed when the unit ispanel-mounted.
3
3-12 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Making the Bus Connections
The Hand-held Monitor connector has two sets of terminals; one for incoming cable andthe other for outgoing cable.
Connect the Serial 1, Serial 2, and Shield In terminal of either connector to the previousdevice. Connect the Serial 1, Serial 2, and Shield In terminal of the other connector to thenext 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, therewill only be one bus cable attached.
X1
X1 X2
X2 SA SB
SA SB
X1 Serial 1X2 Serial 2SA Shield InSB Shield Out
Bus In
Bus 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. TheGenius I/O System and Communications User’s Manual (GEK-90486-1) lists appropriateterminating resistors for each recommended bus cable type.
3
3-13GFK-1034B Chapter 3 Installation
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 theHand-held Monitor, if you do not wish to use the connector described on page 3-11. Youwill 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 matingconnector. Also drill two holes for the mounting hardware.
2. Attach the mounting plate and mating connector to the panel using the mountinghardware supplied.
3. Secure the two ends* of the serial bus cable to the back of the panel using strainrelief brackets.
4. Strip the ends of the wires. Twist the two Serial 1 wires together and attach them topin 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 buscable. As with other devices, the HHM connector may be at either end of its bus. If itis, there will only be one bus cable attached.
MountingHardware
ÎÎ
ÎÎ ÎÎÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎ
Î
Î
BusCable
Bus Cable
StrainReliefs
Shield(Pin 4)
Mounting Surface(rear view)
MountingPlate
Hand-heldMonitor
Connector
a42240c
SER 1(Pin 5)
Crimp(Qty. 3)
Mating Connector
SER 2(Pin 9)
When making bus connections, the maximum exposed length of bare wires shouldbe two inches. For added protection, each shield drain wire should be insulated withspaghetti tubing to prevent the Shield In and Shield Out wires from touching eachother.
If the Hand-held Monitor connector is at either end of its bus, it is necessary to install anappropriate terminating resistor across the Serial 1 and Serial 2 wires. The Genius I/OSystem and Communications User’s Manual lists appropriate terminating resistors for eachrecommended bus cable type.
4section level 1 figure bi level 1 table_big level 1
4-1GFK-1034B
Chapter 4 Configuration
This chapter describes configuration procedures for the GBC. Topics include:
� 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 adevice type associated with it. The GBC and the devices on its bus must be configured intwo basic, different procedures.
1. The GBC must be configured as part of the Series 90-30 PLC system using theLogicmaster 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 GBC’s bus.
2. The devices on the bus must be configured separately. This includes:
A. I/O blocks with an HHM and/or Write Configuration COMMREQs, and
B. remote drops using Logicmaster 90-70.
Eight-point devices can not be configured in word memories.
For additional information on the configuration of devices and remote drops, see:
Genius� I/O System and Communications User’s Manual (GEK-90486-1) – Explainshow Global Data works. Details the data that can be transferred using ReadConfiguration and Write Configuration COMMREQs.
Genius� Discrete and Analog Blocks User’s Manual (GEK-90486-2) – includesinstructions for configuring most I/O blocks.
Logicmaster 90-70 Software User’s Manual (GFK-0579) – covers configuration of theentire PLC.
GFK-0402: Hand-Held Programmer, Series 90�-30 and 90-20 Programmable ControllersUser’s Manual – Describes the Hand-held Programmer displays, and explainsoperator procedures for module configuration, programming, and datamonitoring.
4
4-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Device Types and Assigned Configuration Parameters
Device Type Input1 Ref/Length Input2 Ref/Length Output1 Ref/Length Output2 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 0 0 0
16%I 16%I 0 0 0
32%I 32%I 0 0 0
8%Q 0 0 8%Q 0
16%Q 0 0 16%Q 0
32%Q 0 0 32%Q 0
8%IQ 8%IQ 0 8%IQ 0
16%IQ 16%IQ 0 16%IQ 0
32%IQ 32%IQ 0 32%IQ 0
6%AI 6%AI 0 0 0
6%AQ 0 0 6%AQ 0
4%A/I2%AQ 4%AI 0 2%AQ 0
HSC 15%AI 16%I 16%Q 0
PWRTRACA 16%I 18%AI 16%Q 0
PWRTRACB 16% I 30%AI 16%Q 0
CONTROL(this GBC)
0 0 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.
Sending and Receiving Global Data
To transmit global data, a device must be configured as CONTROL. (Only the SBA of theGBC module itself can be configured as CONTROL.) Set up the output lengths totransmit global data. Up to 128 bytes can be configured for the total of Output1 andOutput2 Lengths. Discrete(%Q) data will automatically be adjusted to multiples of 8 forbyte alignment.
For a device to receive global data, configure it as GENERIC and specify memory typesand lengths for the incoming data. Up to 128 bytes can be configured for the total ofInput1 and Input2 Lengths. Discrete (%I) data will automatically be adjusted tomultiples of 8 for byte alignment.
For a complete description of Global Data and how it works, refer to Chapter 7 ofGenius� I/O System and Communications User’s Manual (GEK-90486-1).
4
4-3GFK-1034B Chapter 4 Configuration
Configuration Using Logicmaster 90 Software
With the GBC installed in its proper rack/slot location, the Logicmaster 90-30configurator software program (release 5 or later) can be used to configure the modulein the offline mode. Once the complete set of configuration data has been entered, itmust then be downloaded to the PLC (in the online mode) to become effective in theGBC Module.
The GBC is configured by completing setup screens in the configurator software. Thesetup 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 correspondingto the GBC’s installed location in the PLC rack.
Select F2 (genius). The following screen will appear.
4
4-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Press F1 (gbc) and then the Enter key to select the GBC. The following screen willappear. (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 thefollowing screen.
Note that the configuration screen consists of two parts: module-specific data (BUSCONTROLLER 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 thePLC CPU, the GBC will not operate on the bus, and its Channel OK LED will not light.
4
4-5GFK-1034B Chapter 4 Configuration
Module-specific Data
Ordinarily, the Device Number (bus address) assigned to a buscontroller is 31. Any number from 0 to 31 can be used; however, eachmust be unique on that Genius bus (no configured device alreadypresent at that address). Whenever a Module SBA value is changed to anew value, the DEVICE DATA for the GBC associated with the oldaddress is automatically copied to the new address value and clearedfrom the old address. Default: 31
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 baudrate depends on the application, as explained in the Genius� I/O SystemUser’s Manual. Usually, the bus length determines the baud rate. Theentry made here establishes the baud rate for the GBC only. If thedefault baud rate (153.6 Kbaud extended) will not be used, the baud rateof other devices on the bus must also be changed. Typically, this is doneusing a Hand-held Programmer. Default: 153K STD
The S6 reference specifies the register location in a Series Six or a SeriesFive CPU that should be reserved for the global data that will betransmitted to it by the GBC. A value of zero indicates that no registerlocation should be reserved. The allowed range for Module Series SixReference is 0 to 16383 inclusive. Default: 0
This field contains the starting reference for the 32-bit status areamaintained by the GBC. Each bit of this area represents theonline/offline status of a device on the bus. Default: Next available %I0001address
The input default state can be either set to HOLD or OFF. Default: OFF
Device outputs can be initially ENABLED or DISABLED when the GBCis powered up. Default: ENABLED
Module SBA(serial busaddress)
Baud Rate
Series Six(S6)Reference
Status
Input Def
Out at strt
4
4-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Device-specific Data
A GBC module can support up to 31 devices on its bus. Each device will have thefollowing parameters associated with it.
A Device SBA can be between 0 and 31. Select by tabbing through theparameter, or by setting to the desired value. Pressing the PgDn keyincrements this parameter; pressing the PgUp key decrements thisparameter. If you enter a Device SBA that is the same as the ModuleSBA, the input area parameters cannot be filled in and the Device Typewill be fixed to CONTROL. Default: 0
Each device is associated with a device type. The device type selectioncan be tabbed through. The allowed device types and their associatedinput/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 startingreferences 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 devicetype is configured at SBA 21.
Device SBA
Device Type
4
4-7GFK-1034B Chapter 4 Configuration
GENERIC Devices
Note
For a device to be configured correctly using the generic device type, thenumber of input points (channels), and the number of output pointsconfigured must match exactly the amount of I/O the device istransmitting or expecting to receive. Otherwise, the device will beconsidered mismatched and the device’s status bit will be set to off (0).
When using a GE Fanuc Genius I/O block, the Input 1 Ref and Output1Ref must be set to the same starting address. Failure to set theseaddresses correctly can lead to Bus Controller errors and incorrect I/Omapping.
Note: For Input and Output Ref, the allowed memory types are %I, %AI, %Q, %AQ,%G, and %R.
A GENERIC device can be configured with two independent startinglocations for input data with associated lengths for each location. Theinput data received from the device by the GBC is extracted anddeposited into the PLC memory areas starting at these specifiedlocations. Default: next available %I reference
Associated lengths for input starting locations, above. Default: 0
A device can be configured with two independent starting locations foroutput data with associated lengths for each location. The output datatransmitted to the device by the GBC is extracted from the PLC memoryareas starting at these specified locations. Default: next available %Ireference
Associated lengths for input starting locations, above. Default: 0
Data from Output1 Ref will be sent to a device first, then data from Output2 Ref will besent. Example:
Output1 Ref/Len = %Q1–16Output2 Ref/Len = %R1–1
If the configured device is a 32-point output block, points 1–16 on the block arecontrolled by %Q1–16 and points 17–32 are controlled by %R1.
Data received as inputs from a device are placed first into Input Ref1, then into InputRef2. Example:
Input1 Ref/Len = %I1–8Input2 Ref/Len = %I33–41
If the configured device is a 16-point input block, points 1–8 on the block are put into%I1–8 and points 9–16 on the block are put into %I33–41.
Input1 Ref/Input2 Ref
Input1 Len/Input2 Len
Output1 Ref/Output2 Ref
Output1 Len/Output2 Len
4
4-8 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
After configuring all desired devices, press the Esc key to exit the detail configurationscreens. The following screen will appear.
Entries in REF VU (Reference View Option)
The reference view screen can be entered by pressing the REF VU softkey (shift F3) inthe rack menu. As shown in the example %I reference view screen below, everyconfigured device that has %I memory configured has an entry. Here, the first entrycorresponds to the Status Area of the GBC module with SBA 31. The second entrycorresponds to the configured device 8%I with SBA 21. The third entry corresponds to aGCM+ module in slot 4 of the rack with SBA 16. Press the appropriate function key tosee the other reference views: %Q (F4), %AI (F5), %AQ (F6), %R (F7), and %G (F8).
4
4-9GFK-1034B Chapter 4 Configuration
Configuration Using the Hand-held Programmer
With the GBC installed in its proper rack/slot location, a Hand-held Programmer can beused to configure the module in the offline mode. The Hand-held Programmer must beattached to and interfacing with the PLC. The PLC must be in Stop mode.
Hand-held Programmer Error MessagesThe Hand-held Programmer will display a message if you make an error duringconfiguration, or if the GBC is not present or not communicating with the host PLC.
REF ER May indicate either of the following:
A. The reference address assigned to that SBA exceeds thereference limit for the PLC model.
B. The SBA message offset plus the length of the referenceassigned to the SBA exceeds 128 bytes.
REF ADJ May indicate either of the following:
A. References have been adjusted (rounded) down to a byteboundary.
B. For discrete references, the reference length for the SBA hasbeen rounded up to a byte boundary.
IOM ERR The GBC module has stopped responding.
I/O ERR You have assigned reference addresses that overlap referencesalready assigned.
DAT ERR A parameter (such as the Series Six reference address) is out ofbounds.
GCM ERR A GCM has already been configured. A GBC can not be config-ured in this system.
4
4-10 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Select the GBCFrom the Program/Data screen, select module configuration by pressing the 4 key, thenthe ENTer key.
Press the Down Arrow key to reach the configuration screen for the rack and slotlocation of the GBC.
� Use the HHP keypad to select the slot in which the GBC is installed. For example, ifthe 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:
R0:04 GBC 1.0 <S I032:I0001–0032
The top line indicates the baseplate (R0) and slot (:04) selected. GBC stands for GeniusBus Controller. The number 1.0 identifies the firmware revision. The bottom line showsthe addresses in %I memory that are assigned to the status bits.
� If you press the key, the following screen appears:
R0:04 GBC 1.0 <S SBA: 31
Line 2 of the screen shows the module’s Serial Bus Address (SBA).
If the GBC was not previously configured, but is present in the rack and slot, it does notappear at first. The HHP indicates that the slot is “empty”.
R0:04 EMPTY <S
� 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, ap-pears:
R0:04 GBC 1.0 <S I32:I_
4
4-11GFK-1034B Chapter 4 Configuration
Configure GBC-specific ParametersUsing the HHP, configure the following, pressing the key to go through the moduleparameters in sequence. Pressing the –/+ key toggles through the values for theparameter being configured. Or, you can use the HHP keypad to enter a value. Press theENTer key to actually make each selection. If you want to go back to an earlierparameter, use the key.
GBC Status Reference
This field contains the starting reference for the 32-bit status area maintained by theGBC. Each bit of this area represents the online/offline status of a device on the bus.Default: %I0001
� Enter the beginning reference in %I memory for the GBC module’s 32 status bits. Itis 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:
R0:04 GBC 1.0 <S I032:I0001–0032
Press the key to go to the next configuration screen.
GBC Bus 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 key. Press the key to continue. Default: 31
R0:04 GBC 1.0 <S SBA: 31
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 Kbaudextended, 76.8 Kbaud, or 38.4 Kbaud. Selection of a baud rate depends on theapplication, as explained in the Genius I/O System User’s Manual. Usually, the bus lengthdetermines the baud rate. The entry made here establishes the baud rate for the GBConly. If the default baud rate (153.6 Kbaud extended) will not be used, the baud rate ofother devices on the bus must also be changed. Default: 153K STD
R0:04 GBC 1.0 <S BAUD: 153.6 EXT
� If the baud rate shown is not correct, press the +/– key to change it. When the
correct baud rate appears, press the ENTer key. Press the key to display thenext configurable feature of the module.
4
4-12 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Series Six Reference
If there is a Series Six or Series Five PLC on the bus that should listen to the global datasent by the GBC, a beginning register address for the data must be supplied. The rangeof registers available for global data use is 1 to 16,383. The Series Five or Series Six PLCwill figure out the length automatically. Default: 0
R0:04 GBC 1.0 <S S6 REF: 0
� If there is a Series Five or Series Six PLC on the bus that should receive global datafrom 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 receiveglobal 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 witha device or devices. Data will either HOLD its last state, or be set to 0 (OFF). If the GBCstops receiving data from one or more devices on the bus, it applies the data default tothe corresponding data being passed back to the CPU. Default: OFF
R0:04 GBC 1.0 <S INPUT DEF: OFF
� If data should hold its last state when communications are lost, select HOLD. Ifdata should be set to 0, select OFF. Press the –/+ key to make the selection, thenpress the ENTer key.
Outputs Powerup Enable/Disable
R0:04 GBC 1.0 <S OUTPUTS:ENABLE
Device outputs can be initially ENABLED or DISABLED when the GBC is powered up.To change the outputs powerup parameter to DISABLE, press the –/+ key, followed bythe ENTer key. Default: ENABLE
This completes the GBC module-specific portion of GBC configuration. The followingscreens are used to complete the device-specific portion of GBC configuration. Press the
key to continue.
4
4-13GFK-1034B Chapter 4 Configuration
Configure Device-specific Parameters
A GBC module can support up to 31 devices on its bus. (One of the 32 bus addresses isused 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, thesecond line will read UNASSIGNED.)
Pressing the key will cause the next parameter for the SBA to be displayed. If youwant to go back to an earlier address, use the key.
R0:04 GBC 00I1<S UNASSIGNED
GENERIC Devices
All devices entered using the HHP are of the Generic type.
Input1 Ref Type
A GENERIC device can be configured with two independent starting locations for inputdata with associated lengths for each location. The input data received from the deviceby the GBC is extracted and deposited into the PLC memory areas starting at thesespecified locations. You can change the reference type, by pressing the I/AI, Q/AQ, R, orG keys. When the desired reference type is displayed, press the ENTer key.
R0:04 GBC 00I1<S%I_
Input1 Len
Length associated with Input1 Ref type, above. You can change the length, using theHHP keypad. When the desired length is displayed, press the ENTer key. Lengthsshould be entered as the number of bits for %I, %Q, %G and as the number of words for%AI, %AQ, and %R.
R0:04 GBC 00I1<S%I8:_
Input1 Start Ref
Starting reference associated with Input1 Ref Type and Input1 Len, above. You canchange the start reference using the HHP keypad. When the desired address isdisplayed, press the ENTer key.
R0:04 GBC 00I1<S%I8: I001–008
4
4-14 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
lnput2 Ref Type
See Input1 Ref Type.
Input2 Len
Length associated with Input2 Ref starting location, below.
Input2 Start Ref
Starting reference associated with Input2 Ref Type and Input2 Len, above.
Output1 Ref Type
A GENERIC device can be configured with two independent starting locations foroutput data with associated lengths for each location. The output data transmitted to thedevice by the GBC is extracted from the PLC memory areas starting at these specifiedlocations. You can change the reference type by pressing the I/AI, Q/AQ, R, or G keys onthe HHP keypad. When the desired reference is displayed, press the ENTer key.
R0:04 GBC 00I1<S%Q
Output1 Len
Length associated with Output1 Ref starting location. You can change the length, usingthe HHP keypad. When the desired length is displayed, press the ENTer key.Lengths should be entered as the number of bits for %I, %Q, %G and as the number ofwords for %AI, %AQ, and %R.
R0:04 GBC 00I1<S%Q8:_
Output 1 Start Ref
Starting location for output data. You can change the address, using the HHP keypad.When the desired address is displayed, press the ENTer key.
R0:04 GBC 00I1<S%Q8: Q001–Q008
4
4-15GFK-1034B Chapter 4 Configuration
Output2 Ref Type
See Output1 Ref Type.
Output2 Len
Length associated with Output2 starting reference.
Output 2 Start Ref
See Output1 Start Ref.
Note
For a device to be configured correctly using the generic device type, thenumber of input points (channels), and the number of output pointsconfigured must match exactly the amount of I/O the device istransmitting or expecting to receive. Otherwise, the device will beconsidered mismatched and the device’s status bit will be set to off (0).
5 section level 1 figure bi level 1 table_big level 1
5-1GFK-1034B
Chapter 5 Diagnostics
This chapter describes the following diagnostics capabilities in Series 90-30 PLC systemsthat use Genius I/O and communications:
� Display of Genius faults in the programmer I/O Fault table (I/O Table faults relatedto 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, andconfirm the operating status of the GBC itself
Status BitsThe GBC uses 32 reference address bits in %I memory to supply status information forthe PLC. A default beginning reference (the next available %I) for the status bits isautomatically 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.
0 1 2 3 4 5 6 7 29 30 31• • • • • • • • • • • • • • • • • • • • •
First %I status reference,for example: %I0001
Last %I status reference,for example: %I0032
Status BitsLow reference High reference
Monitoring GBC and Bus Device StatusOnce per bus scan, the Series 90-30 PLC reads the status bits from the GBC. Anapplication program logic can monitor the selected %I memory area regularly to checkon the operating status of the GBC and the devices on its bus. This is especiallyrecommended it the data default parameter has been set to HOLD (hold last state).
If the GBC status bit = 1, the GBC is on the bus and configured. If the GBC status bit =0, the GBC is either not present or not configured.
For devices:
� 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
5-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Fault TableFaults and alarms from I/O devices, Bus Controller faults, and bus faults areautomatically logged into the Series 90-30 PLC’s I/O Fault Table. Faults can be displayedin 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 devicefaults as the 90-70 PLC does. This information is contained in the status bits, which arealso set to off (0) if there is a configuration or device mismatch. See page 2-3 for adiscussion of status bits.
Remote Drop Fault Drop ID#, rack, slot
|PROGRM |TABLES | STATUS | | |LIB |SETUP |FOLDER |UTILTY |PRINT1plcrun 2 passwd 3 plcflt 4 io flt 5 plcmem 6 blkmem 7refsiz 8 sweep 9 clear 10 zoom > I / O F A U L T T A B L E
TOP FAULT DISPLAYED: 0001 TABLE LAST CLEARED: 09–21 08:00:00 TOTAL FAULTS: 0007 ENTRIES OVERFLOWED: 0000 FAULT DESCRIPTION: OPEN WIRE PLC DATE/TIME: 10–14 10:05:13
FAULT CIRC REFERENCE FAULT FAULT DATE TIME LOCATION NO. ADDR. CATEGORY TYPE M–D H: M: S ___________ _____ _________ ___________________ ________________ _____ ________ 33#0.4 6 %AI010124 CIRCUIT FAULT ANALOG FAULT 10–12 08:12:20
MAINPLC RUN/ENABLE 7MS SCAN ONLINE L4 ACC: WRITE CONFIG CONFIG EQUAL PLC C: LESSON PRG: LESSON REPLACE
For a Genius bus fault, the display shows the date and time the fault occurred, and thefollowing information:
For a Genius bus fault, the format is: rack/slot/bus/bus address.For a Remote Drop fault, the format is: Drop ID#/rack/slot.
The relative position of a point within its module.
The I/O reference address where the fault was detected. It consists ofthe memory type (%I, %Q, %IQ, %AI, %AQ) and a five-digit offset.
The general type of fault that has occurred. For diagnostic faults, theCPU sets fault references. For fatal faults, the CPU sets fault referencesand places itself in STOP mode.
Further explains fault categories: Circuit Fault, Module Fault, I/O BusFault, Loss of Block, and GBC Software Exception. These categories aredefined in the table on page 5-4.
Provides additional information if the highlighted fault is one of theCircuit Faults or a Module Fault.
FaultLocation:
Circ No:
Reference Addr:
FaultCategory:
Fault Type:
FaultDescription:
5
5-3GFK-1034B Chapter 5 Diagnostics
Number of Faults in the I/O Fault TableThe I/O Fault Table can contain up to 32 faults. Additional faults cause the table tooverflow, and faults are lost. The system reference IO_FULL (%S00010) is set to indicatethat the fault table is full.
As faults occur, the first 16 are logged into the table and remain there until the table iscleared again; none of these 16 faults will be dropped if the table overflows. For faults 17through 32, the Fault Table operates as a First-In-First-Out stack. When fault 33 occurs,fault 17 is dropped from the table. Clearing the Fault Table removes all the fault listings.
Fault 1
Fault 16
Fault 17
Fault 33
.
.
�
�
�
�
Faults overflow here
New faults are added here
Clearing FaultsFaults 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 conditionsin the system. If the condition that caused a fault still exists and is detected, the fault willbe reported again.
Note
If you have a GCM+ and a 90-30 GBC in the same CPU system and onthe same Genius bus, you must turn the report faults configurationparameter on the GCM+ to no. If you enable report faults on theGCM+ in such a system, a single fault that occurs on the Genius bus orinside the 90-30 system will be reported endlessly, causing the fault tableto be filled with multiple reports of the same fault.
5
5-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Fault Table Definitions
Fault Category
Diag.or
FatalIndicates Fault
TypeIndicates Fault
DescriptionIndicates
CIRCUITFAULT
D Short cir-cuit, open
DISCRETEFAULT
Circuit faulton discrete
LOSS POWER Loss of user side powerCIRCUITFAULT
D Short cir-cuit, openwire, etc.
DISCRETEFAULT
Circuit faulton discreteI/O point SHORT CIRCUIT Short in user wiringwire, etc. I/O point
OVERLOAD Sustained overcurrent
NO LOAD Very low or no current flow
OVER TEMP Switch temperature too high
SWITCH FAIL Genius “smart switch” failure
POINT FAULT Integral individual point fault
FUSE BLOWN Integral output fuse blown.
ANALOGFAULT
Fault on ana-log I/O chan-
AI LOW ALARM Input channel low alarmANALOGFAULT
Fault on ana-log I/O chan-nel AI HI ALARM Input channel high alarmnel
AI UNDER RANGE Input channel under range
AI OVER RANGE Input channel over range
OPEN WIRE Open wire detected on inputchannel
AQ UNDER RANGE Output channel under range
AQ OVER RANGE Output channel over range
CS FEEDBACK ERR Feedback error from Current-source Analog block
GENAFAULT
Fault on aGENA
GENA CKT FLT Fault on a GENA analog or dis-crete point
LL ANALOG
Fault on alow-level
AI LOW ALARM Input channel low alarmLL ANALOGFAULT
Fault on alow-levelanalog chan-nel
AI HI ALARM Input channel high alarmFAULT analog chan-nel AI UNDER RANGE Input channel under range
AI OVER RANGE Input channel over range
OPEN WIRE Open wire detected on inputchannel
WIRING ERROR improper RTD connection orthermocouple reverse junctionfault
INTERNAL FAULT Cold junction sensor fault onthermocouple block, or inter-nal error in RTD block.
INPUT SHORT Input channel shorted
REMOTEFAULT
Fault on a Remote I/O
n/a Any fault detected by a RemoteI/O Scanner and sent to theFAULT Remote I/O
ScannerI/O Scanner and sent to thePLC.
5
5-5GFK-1034B Chapter 5 Diagnostics
Fault Table Definitions (continued)
Fault Category
Diagor
FatalIndicates Fault
TypeIndicates Fault
DescriptionIndicates
I/O BUSFAULT
D Genius busfault
BUS FAULT Genius bus fault
BUS OUTDISABLE
Bus Controller disabledall outputs on the busbecause communicationstimed out between thePLC CPU and the BusController.
I/O MODULEFAULT
D EEPROM fault,watchdog timeout
HEADENDFAULT
Block Fault (EEPROM,Watchdog, etc..)
CONFIG MEMFAIL
Genius EEPROM orNVRAM failure
CAL MEMFAIL
Genius calibrationmemory failure
SHARE RAMFAIL
Genius Shared RAMfault
INTRNALCKT FLT
Genius internal circuitfault
WD TIMEOUT Watchdog Timeout (dis-crete I/O modules only)
POINT FAULT Point fault (also indi-cated for CIRCUITFAULT category)
FUSE BLOWN Integral output fuseblown (also indicated forCIRCUIT FAULT catego-ry)
A TO DCOMMFAULT
Analog to digital com-munications fault or cal-ibration error
USERSCALINGERROR
Scaling error cause outof range values
Additional Fault Information
If you need more information about a listing in the Fault Table, move the cursor to thatfault and press the CTRL and F keys. A number string will appear above the commandline. The Series 90-30 PLC Installation and Operation Manual (GFK-0356) explains how tointerpret this additional fault information.
If you find it necessary to contact Field Service concerning a fault, you should beprepared to tell them the information that is provided in the Fault Table and thehexadecimal information you see when you press the Ctrl/F keys. Field Service personnel willgive you further instructions.
5
5-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Technical Help
PLC Hotline
Phone numbers 1-800-828-5747 (or 804-978-5747)
Internet address [email protected]
Fax number 804-978-5099
GE Fanuc Bulletin Board Files on this bulletin board are provided by GEFanuc “as-is” and no warranties apply. Thephone number is 804-978-5458 (up to 19200baud, 8 bits, no parity).
Fax Link 804-978-5824
6section level 1 figure bi level 1 table_big level 1
6-1GFK-1034B
Chapter 6 Communication Requests
This chapter explains how to use Communication Requests (COMMREQs) to:
� Enable/disable all outputs from the GBC to devices on the bus
� Send a datagram to a device on the bus.
� Send a datagram containing a Reply Datagram Request to a device on the bus
� Transfer an unsolicited incoming datagram from the GBC to the CPU.
For additional information, see the Genius� I/O System and Communications Manual(GEK-90486-1), which describes Genius Datagrams in detail.
COMMREQs and Passwords
Level 1 and 2 Logicmaster passwords, which prevent write access, cannot be used inapplications that include COMMREQs. COMMREQs require write access to return theircompletion status.
6
6-2 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Programming for a Communication Request
In order to communicate with an intelligent module (such as a GBC), the applicationprogram should perform the following actions.
1. Supply the content of the communication. Block Moves or similar programinstructions can be used to place the information into CPU memory. This content iscalled the Command Block.
Edit content of communication
Application Program
Command Block �
CPU Memory
2. Clear status block. The program should set the status block to all zeroes (see page6-9). Establishing this initial condition allows the program to differentiate betweenthe result of an earlier command and the currently-executing command.
Set status block to unassigned value
Application Program
Status Block �
CPU Memory
3. Use a COMMREQ instruction to perform the intended function.
Sends COMMREQ to Device
Application Program
� Genius BusController
4. Check the status of the requested task. COMMREQs should be executedsequentially. The application program should check that the status of the previousCOMMREQ to a GBC is complete, before sending it another one. Failure to do thismay result in improper operation of the GBC.
Check completion of communication
Application Program
Status Block � �
CPU Memory
6
6-3GFK-1034B Chapter 6 Communication Requests
COMMREQ Command Block Format
The first step in programming communications requests is to set up the contents of thecommunication. This can be done using Block Moves or similar program instructions, asshown later in this chapter.
Edit content of communication
Application Program
Command Block �
CPU Memory
Data is placed together in adjacent locations in CPU memory to form a Command Block.
Location Data
address “Data Block” Length
address + 1 Wait/No Wait Flag
address + 2 Status Pointer Memory Type
address + 3 Status Pointer Offset
address + 4 Idle Timeout Value
address + 5 Max. Communication Time
address + 6 toaddress + 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-bytedatagram; most Command Blocks are much shorter. The table on page 6-5 gives anoverview of the contents of each type of COMMREQ that may be sent to a Series 90-30GBC.
Command Block Contents
Command Block contents are described below. Further details are given in the table onpage 6-5.
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 theCommand Block Each type of COMMREQ command has a unique DataBlock.
This must be set to 0 for No Wait.
Length:
Wait/No WaitFlag:
6
6-4 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
The Status Pointer Memory Type and Offset (see below) identify thelocation of the function’s associated Status Block. The Status Block iswhere the COMMREQ will return its status. If one of the bit-orientedmemories (%I or %Q) is used as the status location, its bits can bemonitored (see page 6-9).
Location Data
address + 1 Status Pointer Memory
address + 2 Status Pointer offset
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 theStatus Pointer will be located.
For This Memory Type: Enter This Number:
%I discrete input table 70
%Q discrete output table 72
%R register memory 8
%AI analog input table 10
%AQ analog output table 12
Address + 3 of the Command Block contains the address within thememory type selected. The offset of the status location is 0-based. Forexample, if the Status Block was located at %R099, memory type wouldbe specified as 08 (for %R memory) and the offset would be 98.
Note that if a bit-oriented memory is specified, a byte boundary must beused for the offset.
This field is not used for the No Wait mode of communication.
This field is not used for the No Wait mode of communication.
The Data Block contains the parameters of the command. Completedescriptions of all commands appear later in this chapter (see pages 6-14through 6-22). The Data Block begins with a Command Number inAddress +6. The Command Number identifies the type ofcommunications function to be performed. The following CommandNumbers are used for the Genius GBC:
Command Function
8131415
Enable/disable outputs commandDequeue datagramSend datagramRequest datagram reply
Status Point-er MemoryType:
Status Point-er Offset:
Idle TimeoutValue:
MaximumCommunica-tion Time:
Data Block:
6
6-5GFK-1034B Chapter 6 Communication Requests
Command Block Quick Reference
The following table summarizes the content of the COMMREQ commands for a GBC.
Command Block Content
COMMREQ Description
Add. Add.+1
Add.+2
Add.+3
Add.+4
Add.+5
Add.+6
Add.+7
Add.+8 toAdd.+n
Length Wait/No
Wait
StatusPointer
MemoryType
StatusPointerOffset
IdleTimeout
Value
Max.Comms.
Time
COMMREQ
#
Additional Content
OutputsEnable, Disable(#8)
3 0 see page 6-14 0 0 8 seepage6-14
1 (enable)or 0 (disable)
seepage6-14
DequeueDatagram(#13)
7 0 see page 6-15 0 0 13 Add.+7 to Add.+12see page 6-15
Send Datagram(#14)
6 to 70words
0 see page 6-19 0 0 14 Add.+7 to Add.+nsee page 6-19
RequestDatagram Reply (#15)
10 to 78words
0 see page 6-22 0 0 15 Add.+7 to Add.+nsee page 6-22
6
6-6 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
The COMMREQ Instruction
After supplying the content of the communication in the Command Block, the applicationprogram uses a COMMREQ instruction to request communications with the GBC.
Sends COMMREQ to Device
Application Program
� Genius BusController
COMMREQ Inputs and Outputs
The COMMREQ instruction has four inputs and two outputs:
COMM
REQ
IN FT
SYSID
TASK
– function OK (logic)
– function faulted (logic)Pointer to the Command Block –
Location of the GBC –
Must be 1 for the GBC –
(enable) –
6
6-7GFK-1034B Chapter 6 Communication Requests
COMMREQ InputsPermissive logic that controls power flow to the COMMREQ functionblock.
The memory location of the Command Block, which contains thespecific command information. The Command Block may be located inany word-oriented area of memory (%P, %L, %R, %AI, or %AQ).
A hex value that gives the rack and slot location of the GBC. Use thisformat:
R S
rackslot
1 2
rack 1slot 2
Examples
Rack Slot Hex word value
07
42
0004h0702h
The task is always “1”.
COMMREQ OutputsThe function’s OK and FT outputs can provide power flow to optional logic which canverify successful completion of the COMMREQ. The OK and FT outputs may have thesestates:
ENable Error? OK output FT output
activeactive
not active
noyes
no execution
truefalsefalse
falsetruefalse
The OK and FT outputs are never both true at the same time; OK indicates correctexecution while FT indicates a fault condition. The COMMREQ passes power flow to OKunless:
� The specified module (in rack/slot) is not present.
� The specified task is not valid for the device. This is not checked if the specifieddevice is a GBC.
� The data length is zero.
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 (forexample, the Device Number entered is incorrect), these errors are reflected in the valuereturned in the status location, not in the FT output.
(enable)
IN:
SYSID:
TASK:
6
6-8 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
COMMREQ Status Block
When the GBC receives the communication from the CPU, it returns its current status tothe CPU, at the two-word memory location reserved for the Status Block. Possible statusvalues that can be returned are listed on the next page.
When a command is complete, the GBC writes any resulting data into the areadesignated in the command, and sets the status to Complete (4).
Note
Because COMMREQs require write access to return their status, level 1and 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 canbe 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 eachtime the COMMREQ completed successfully.
Clearing the Status BlockCOMMREQs to the GBC should be executed sequentially. Before sending a COMMREQto the GBC, the application program should check the status of any previousCOMMREQ to that GBC.
Check completion of communication
Application Program
Status Block � �
CPU Memory
When the previous COMMREQ has completed, the program should set the Status Blockto a value not in the list on the next page. Establishing this initial condition allows theprogram to differentiate between the result of an earlier command and thecurrently-executing command.
6
6-9GFK-1034B Chapter 6 Communication Requests
Contents of the Status BlockThe Status Block is two words of memory to which the GBC returns the status of theCOMMREQ.
The lower word is used for general information about the execution of the COMMREQ:
VALUEDESCRIPTIONdecimal
(word)binary (bit) DESCRIPTION
0148
163264
128256512
10242048
MSB 000000000000000000000001000000000100000000001000000000010000000000100000000001000000000010000000000100000000001000000000010000000000100000000000
GBC has not yet processed COMMREQCommand not accepted, GBC busy with previous requestCommand completed successfullyCommand terminated due to syntax error Command terminated due to data errorCommand terminated due to suspended activity on bus No data to transferCommand not supported by target deviceOnly No Wait commands may be sent to the target deviceMaximum Comms. Time must be greater than or equal to 5mSText buffer invalid in wait mode Device did not accept the message, or timed out.
The upper word of the status location provides additional status information.
VALUEdecimal(word)
DESCRIPTION
11215171
101102121141142143144201202203204205206207208209210211212213
Non-discrete block specified for Pulse TestNon-I/O device specified for Read ConfigurationInvalid circuit numberNon-controller device specified for Assign MonitorSwitch BSM - device not BSMSwitch BSM - bus position greater than 1P and L access not availableFunction code greater than 111Sub function code greater than 255Priority greater than 1 Datagram length greater than 134Invalid Device Number (greater than 31, but not 255)Incorrect length for the command typeDevice Number not configured or not active Previous No Wait command in progress; current No Wait command not acceptedInvalid status pointer location specified Command number is out of rangeSubcommand code is out of rangeOnly partial data transferredDevice Number 255 not allowed for this command Command specified is not valid for GBCCommand specified is only valid for controller devices Command specified is not supported by the device to which it was sent Invalid Alarm Enable/Disable mask
6
6-10 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Programming Examples
Example 1–Using a COMMREQ to Clear a Circuit Fault
The following example shows how a COMMREQ can be used to clear a circuit fault onpoint 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 statuspointer for this COMMREQ is %R21 (%R3 = 8,%R4 = 20). Note that the status registersare 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
6-11GFK-1034B Chapter 6 Communication Requests
Example 2–Using a COMMREQ to Clear All Circuit Faults
The following example shows how a COMMREQ can be used to clear all circuit faults onthe 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 ]|
6
6-12 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Using COMMREQs to Send Datagrams
The table on page 6-13 lists datagrams with their Subfunction Codes, lists possible waysto send datagrams, and explains what happens to datagrams received from otherdevices.
COMMREQ 14 (Send Datagram) and COMMREQ 15 (Request Datagram Reply) are theonly way to send messages to or from the GBC. Also, COMMREQ 13 (DequeueDatagram) must be used to handle datagrams that are not handled automatically.
All datagrams can be sent using COMMREQ 14 (Send Datagram). If COMMREQ 14 isused to send a datagram that has a reply, COMMREQ 13 (Dequeue Datagram) must alsobe used to obtain the reply from the GBC’s queue of unsolicited incoming datagrams.
6
6-13GFK-1034B Chapter 6 Communication Requests
Using COMMREQs to Send Datagrams
Datagram (hex code) Ways to Send It How Incoming Datagram is HandledRead ID (00) COMMREQ 15 (Request Datagram Reply)
*GBC replies automatically to Read ID datagram re-ceived from bus device.
Read ID Reply (01) (Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read ID datagram. *
Read Configuration (02) COMMREQ 15 (Request Datagram Reply)*
GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
Read Configuration Reply(03)
(Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Configuration datagram. *
Write Configuration (04) COMMREQ 14 (Send Datagram)Assign Monitor (05) COMMREQ 14 (Send Datagram) GBC queues it up. Use COMMREQ 13 (Dequeue Data-
gram) to read it.
Begin Packet Sequence(06) COMMREQ 14 (Send Datagram)
End Packet Sequence (07) COMMREQ 14 (Send Datagram)
Read Diagnostics (08) COMMREQ 15 (Request Datagram Reply)*
GBC replies automatically.
Read Diagnostics Reply(09)
(Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Diagnostics datagram. *
Write Point (0B) COMMREQ 14 (Send Datagram)GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
Read Block I/O (0C) COMMREQ 15 (Request Datagram Reply)*
Read Block I/O Reply (0D) (Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Block I/O datagram. *
Report Fault (0F) (Sent automatically) Received from bus devices; GBC automatically placesthe fault in the Fault Table.
Pulse Test (10) COMMREQ 14 (Send Datagram) GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it
Pulse Test Complete (11) (Sent automatically) Handled automatically if COMMREQ 14 was used tosend Pulse Test datagram. *
Clear Circuit Faults (12) COMMREQ 14 (Send Datagram)
Clear All Circuit Faults(13)
COMMREQ 14 (Send Datagram) GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
Switch BSM (1C) COMMREQ 14 (Send Datagram)
Read Device (1E) COMMREQ 15 (Request Datagram Reply) GBC automatically sends reply.
Read Device Reply (1F) (Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Device datagram. *
Write Device (20) COMMREQ 14 (Send Datagram) GBC processes automatically.
Read Data (27) COMMREQ 15 (Request Datagram Reply) GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
Read Data Reply (28) (Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Data datagram. *
Write Data (29) COMMREQ 14 (Send Datagram) GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
Read Map (2A) COMMREQ 15 (Request Datagram Reply)
Read Map Reply (2B) (Sent automatically) Handled automatically if COMMREQ 15 was used tosend Read Map datagram.
Write Map (2C) COMMREQ 14 (Send Datagram) GBC queues it up. Use COMMREQ 13 (Dequeue Data-gram) to read it.
* 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 GBC’s queue of unsolicited incoming datagrams.
6
6-14 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
COMMREQ Descriptions
COMMREQ #8: Enable/Disable Outputs Command
The Enable/Disable Outputs command can be sent to the GBC to disable sendingoutputs to any block.
Command Block for the Enable/Disable Outputs Command
Address: Command Length 3
Address +1: No Wait 0
Address +2: Status Block memorytype
70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12 (%AQ)
Address +3: Status Block offset Beginning address for the COMMREQ status.
Address +4: Idle timeout value 0
Address +5: Max. communicationstime
0
Address +6: Command number 8
Address +7: Device Number Enter 0–31 to enable or disable outputs to one block.To enable or disable outputs to ALL devices on thebus, enter the number 255.
Address +8: Enable/Disable com-mand
To disable outputs to the device(s) specified in address+7, enter 0. To enable outputs, enter 1.
Note that this COMMREQ overrides the configuration parameter outputsenable/disable at start. For example, if outputs were initially disabled to all blocks duringconfiguration, this COMMREQ could be used to enable outputs to specific devices or toall devices.
6
6-15GFK-1034B Chapter 6 Communication Requests
COMMREQ #13: Dequeue Datagram Command
The GBC handles most incoming datagrams automatically, with no additionalprogramming required. Under certain circumstances, however, the Dequeue Datagramcommand must be used to transfer incoming datagrams to the CPU. Program theDequeue Datagram command for the following:
� Replies that are received after sending Reply-type datagrams with the SendDatagram command. (If Send Datagram with Reply is used instead, it automaticallyhandles replies).
� Unsolicited datagrams that are not recognized by the GBC (Function Code not 20).
Command Block for the Dequeue Datagram Command
Location Parameter Contents
Address Command Length 7
Address +1: No Wait 0
Address +2: Status Block memory type 70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12(%AQ)
Address +3: Status Block offset Beginning address for the COMMREQ status.
Address +4: Idle timeout value 0
Address +5: Max. communications time 0
Address +6: Command number 13
Address +7: Maximum data memorylength
Enter bit or word value (depends on thememory type selected below). This entry tellsthe CPU how much memory will be neededto store all the data.
If the length of data returned by the deviceexceeds this length, the GBC writes as muchdata as possible to the PLC CPU and returns adata error to the COMMREQ status location.
Address +8: Memory type Enter the number that represents the locationwhere the GBC will place the data in theCPU: 70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12(%AQ)
Addresses9–12
Not used Not used
Number of Dequeue Datagram Commands Needed
One Dequeue Datagram command is needed for each incoming datagram. If multipleincoming Datagrams are expected during one CPU sweep, it will be necessary to placemultiple Dequeue Datagram commands in the program to assure their efficient transferto the CPU.
The number of Dequeue Datagram commands needed depends on whether theDatagrams have been sent using Normal or High Priority, and the relative lengths of theCPU sweep time and the scan time of the bus, as explained below.
6
6-16 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
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 incomingDatagram per CPU sweep. Therefore, only one Dequeue Datagram command per sweepwill be needed to handle incoming Datagrams.
If all Datagrams on the bus are sent with High Priority, the GBC can potentially receiveone Datagram from each transmitting device during a scan. The program should includethe same number of Dequeue Datagram commands as incoming Datagrams. (See page6-19 for a description of datagram priority.)
If the Bus Scan Time is Less than the CPU Sweep TimeIf the bus scan time is significantly shorter than the CPU sweep time, you can estimatethe number of Dequeue Datagram commands that must be sent to the GBC toaccommodate incoming Datagrams on that bus.
First, determine how many scans can occur in one CPU sweep. For example, if the busscan were 20mS and the CPU sweep were 90mS, the ratio between them would be 4.5 to1. This should be rounded upward to 5.
This is the maximum number of Normal Priority Datagrams that might be received in asingle CPU sweep. Plan to have the same number of Dequeue Datagram commands tothat GBC in the program to handle the incoming Datagrams.
For High Priority Datagrams, multiply the number found above by the total number ofdevices 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 haveto handle in a single CPU sweep. Plan on this number of Dequeue Datagram commandsto the GBC.
Additional Logic for Incoming DatagramsThe GBC can place up to 16 datagrams into an internal queue. These include anyunsolicited reply-type datagrams. This permits the program to, for example, send a ReadID Send Datagram and dequeue the Read ID Reply with the Dequeue DatagramCOMMREQ.
If the 16-item queue becomes filled, an informational fault GBC_SOFTWR_EXCPTN islogged (Fault Type is DQ_QUEUE_FULL) in the I/O Fault Table. If the DequeueDatagram is issued and there are no datagrams in the queue, the Status Pointer is set toNO DATA TO TRANSFER.
Program logic should be used to assure that no datagrams are accidentally written over.This might be done by copying each datagram to another memory location, or bychanging the data memory location specified in the Command Block after eachincoming datagram is received.
Note that the Dequeue Datagram queue is operated as a first-in-first-out (FIFO) queue.Specific datagrams within the queue can not be dequeued without first dequeueingdatagrams received earlier. This feature is different from the Series 90-70 GBC operation.
6
6-17GFK-1034B Chapter 6 Communication Requests
Format of Returned DataThe Dequeue Datagram returns data in the following format.
Location High Byte Low Byte
Memory Address Data Length Status byte
Memory address +1 Subfunction code Function code
Memory address +2 Data byte 2 Data byte 1
�
�
�
�
�
�
�
�
�
Memory address +69 Data byte 134 Data byte 133
Returned Data items are explained below.
The status byte reports the Device Number of the device that sent thedatagram. It also indicates whether the message was broadcast ordirected by the other device.
B/D x x n n n n n
bit 7 6 5 4 3 2 1 0
Device Number
Unused
Broadcast (1)Directed (0)
(5 bits: 0–31 decimal)
The number (0 to 134) of data bytes after the subfunction code.
The function code of the received message: 0 to 111 decimal or 0 to 6Fhex.
The subfunction code of the received message: 0 to 255 decimal or 0 toFF hex.
Status Byte:
Data Length:
FunctionCode:
SubfunctionCode:
6
6-18 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
COMMREQ #14: Send Datagram Command
Most datagrams are normally programmed using their assigned COMMREQ commandnumbers. However, datagrams can also be sent using the Send Datagram command andthe Request Datagram Reply command. The Send Datagram command might be used tosend:
� Datagrams for which no COMMREQ command number is defined, such as BeginPacket Sequence, End Packet Sequence, and Write Point.
� Read Device and Write Device datagrams that are broadcast, but which should beignored by another Series 90-30 GBC.
� Datagrams that must be guaranteed transmission during the next bus scan. Thisshould 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 PulseTest, 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 ReadDiagnostics or Read Configuration, are usually programmed using their assignedCOMMREQ numbers or the Request Datagram Reply command (COMMREQ #15).However, if Send Datagram is used to send datagrams that cause replies, theDequeue 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 aboutCOMMREQs and datagrams.
6
6-19GFK-1034B Chapter 6 Communication Requests
Command Block for the Send Datagram Command
Address: Command Length 6 – 70. Enter the number of words from Ad-dress +6 to Address +n.
Address +1: No Wait 0Address +2: Status Block memory type 70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12 (%AQ)Address +3: Status Block offset Beginning address for the COMMREQ status.Address +4: Idle timeout value 0
Address +5: Max. communications time 0
Address +6: Command number 14
Address +7: Device Number of the de-vice to receive the mes-sage.
0–31, or 255 to broadcast the message.
Address +8: Function code For any datagram listed below, 32 decimal (20 hex).
Address +9 Subfunction code (hex) See the list on page 6-12.
Address +10 Priority Enter 0 for normal priority, or 1 for high priority.
Address +11: Datagram length (in bytes) Enter the actual length of the Datagram, beginningat [address +12].
Address +12:to Address+n:
Datagram content Enter the entire datagram as part of the CommandBlock. The Genius I/O System User’s Manual showsdatagram structures.
If the Send Datagram command is used to broadcast aWrite Device datagram, and that datagram should beIGNORED by another Series 90-30 GBC, set the firstbyte of the datagram as shown in the System User’sManual (this byte is normally 0), to FE hex.
Datagram Priority A GBC can send one datagram per bus scan. That datagram may be assigned eithernormal priority or high priority. Therefore, during one bus scan, there may be onenormal priority datagram followed by up to 31 high priority datagrams, or up to 32 highpriority 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 prioritydatagram or similar system message (such as a fault report) has already been sent by anydevice (including itself), a device must wait until its next turn on the bus before it cansend a normal priority datagram.
6
6-20 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
Datagrams and I/O BlocksIf the bus will also be used for I/O block control, normal priority datagrams arerecommended to allow other messages such as fault reports (which the system handlesas normal priority datagrams) to get through. In addition, normal priority datagramsensure that bus scan time is only modestly delayed for communications. Bus scan timeaffects 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 prioritywill work satisfactorily except when there are many devices attempting to senddatagrams simultaneously.
Number of Datagrams per CPU SweepThe application program should include logic that verifies successful completion ofearlier datagrams before requesting new ones. Because a GBC can only send onedatagram per bus scan, the number of datagrams that can be executed during the sameCPU sweep of program logic depends on the relative lengths of the CPU sweep and thebus scan.
If the Bus Scan Time is Greater than the CPU Sweep Time: If the bus scan time isgreater than the CPU sweep time, the GBC will be able to send no more than onedatagram during one execution of the application program. Successful transmission of anormal priority datagram will depend on the absence of datagram and system messagetraffic on the bus.
If the Bus Scan Time is Less than the CPU Sweep Time: If the bus scan time issignificantly shorter than the CPU sweep time, the bus may be able to transmit multipledatagrams during one execution of the application program.
Effect of Datagrams on the Genius I/O Bus Timing: Normal Priority Datagrams allowfault reports and Hand-held Monitor communications on a bus to continue undisturbed.Only one Normal Priority Datagram is allowed each bus scan, so the scan time staysrelatively constant, and I/O update timing varies only by small increments.
If High Priority Datagrams are being transmitted constantly, the Hand-held Monitor willnot function properly; fault reports from blocks will be prevented from beingtransmitted on the bus, and regular COMMREQ commands (such as WriteConfiguration commands) to that GBC will fail with a transmission error. For thesereasons, use of High Priority Datagrams on a bus with I/O blocks should be avoided ifpossible.
If High Priority Datagrams are transmitted infrequently, they will cause some delay inthe Hand-held Monitor communications and other normal system messages, but thedelay should not be noticeable.
High Priority Datagrams will typically put more pressure on the GBC to transfermultiple Datagrams per CPU sweep. However, this can also occur with Normal PriorityDatagrams if the bus scan time is much shorter than the CPU sweep time.
6
6-21GFK-1034B Chapter 6 Communication Requests
Maximum CPU Sweep Time Increase for Datagrams: To estimate the impact ofDatagrams on CPU sweep time, add together the times required for all Datagrams thatmight be sent between the GBC and the CPU during one sweep if No Wait mode isselected. Repeat this for each GBC in the PLC that sends or receives Datagrams.
Total Datagram Bytes Sent x .031mS =(may be none)
+ LARGEST incoming Normal PriorityDatagram Received, bytes x .031mS =
OR
+ Total incoming High PriorityDatagrams Bytes Received x .031mS =
+ 1.200mS = ______mS
Additional Information about Timing If you need more information about timing for datagrams, Global Data, I/O devices, andremote drops, refer to the Genius� I/O System User’s Manual (GEK-90486-1).
6
6-22 Series 90
-30 Genius� Bus Controller User’s Manual – April 1996 GFK-1034B
COMMREQ #15: Request Datagram Reply Command The Request Datagram Reply command can be used to send any datagram that causesthe 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 separateDequeue Datagram command is needed to handle them.
These datagrams are normally programmed using their assigned COMMREQ commandnumbers. 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 nextbus scan. Before doing this, see page 6-19 for important information about datagrampriority.
Command Block for the Request Datagram Reply Command
Address: Command Length 10 – 78. Enter the number of words from Address +6 toAddress +n.
Address +1: No Wait 0
Address +2: Status Block memory type 70 (%I), 72 (%Q), 8 (%R), 10 (%AI), or 12 (%AQ)
Address +3: Status Block offset Beginning address for the COMMREQ status.
Address +4: Idle timeout value 0
Address +5: Max. communications time 0
Address +6: Command number 15
Address +7: Device Number of the de-vice to receive the message.
0 – 31
Address +8: Function code For any datagram listed below, 32 decimal (20 hex).
Address +9 Subfunction code (hex) ofthe datagram to be sent.
00 Read ID02 Read Configuration 08 Read Diagnostics0C Read Block I/O1E Read Device27 Read Data
Address +10 Priority Enter 0 for normal priority, or 1 for high priority.
Address +11: Datagram length (in bytes) Enter the actual length of the Datagram, beginning at [ad-dress +16].
Address +12: Subfunction code (hex) ofthe reply
01 Read ID Reply03 Read Configuration Reply09 Read Diagnostics Reply0D Read Block I/O Reply1F Read Device Reply28 Read Data Reply
Address +13: Memory type for the reply Enter a number: 8 (%R), 10 (%AI), or 12 (%AQ)
Address +14: Memory offset Starting address within this memory type.
Address +15: Maximum data memorylength neededIf the length of the memoryis smaller than the amountof reply data received, theextra portion of the datawill be lost, and a data error(16) will be returned to thestatus location.
Enter a value in bits or words, depending on the memorytype selected. This entry tells the CPU how much memorywill be needed to store all the reply data. The length de-pends on the message and device type. – for Read Configuration Reply, see COMMREQ #2. – for Read Diagnostics Reply, see COMMREQ #4. – for Read Device Reply, message length depends on device type. May be up to 64 words. – for Read Data Reply, message length is 5 words. – for Read ID Reply, message length depends on device type. See the Genius I/O System User’s Manual.
Address +16 toAddress +n:
Datagram Content Enter the entire datagram as shown in the Genius I/O Sys-tem User’s Manual.
Format of Returned DataReturned data format is the same as for the Dequeue Datagram. See page 6-17.
Index
Index-1GFK-1034B Series 90 -30 Genius� Bus Controller User’s Manual – April 1996
AA to D Comm fault, 5-5
AI Hi/Low Alarm fault, 5-4
AI Under/Overrange fault, 5-4
Analog faults, 5-4
AQ Under/Overrange fault, 5-4
BBaud rate, 1-8, 4-5
configuration, 4-11
Bulletin board, 5-6
Buscable characteristics, 1-10cable types, 1-8–1-10how to disconnect, 3-5installation, 3-6length, 1-8noise, 3-5removal, 3-5termination, 1-8, 3-8using other cable types, 1-10
Bus address, 4-5
Bus controller, operation, 1-11
Bus error rate, 5-3
Bus fault, 5-5
Bus Out Disable fault, 5-5
Bus scan, 6-16description, 1-11, 2-6reducing time of, 2-11
Bus scan time, 6-20
CCable types
characteristics, 1-10high temperature, 1-9prefabricated, 1-10recommended, 1-9
Cal Mem fault, 5-5
Catalog numberscables
IC660BLC001, 1-10IC660BLC003, 1-10
CPU, 1-7GBC, IC693BEM331, 1-1, 1-6Genius Bus Interface Unit,
IC760GBI001, 1-4Hand-Held Programmer, IC693PRG300,
1-7HHM, IC660HHM501, 1-7inline HHM port, 44A736310-001-R001,
1-7, 3-11mounting plate, IC660MPH509, 3-13Series Six Bus Controller,
IC660CBB902F/903F, 1-7software, 1-7
Circuit faults, 5-4
Circuit number, 5-2
Clearing faults, 5-3, 6-10
Comm OK, LED, 1-5
Command block, COMMREQ, 6-3
Command numbers, 6-4
COMMREQcommand block, 6-3command numbers, 6-4commands
Dequeue Datagram, 6-5, 6-13, 6-15Outputs Enable/Disable, 6-5, 6-13Outputs Enabled, 6-14Request Datagram Reply, 6-5, 6-13,
6-22Send Datagram, 6-5, 6-13, 6-18
examples, 6-10–6-12inputs, 6-7instruction, 6-6outputs, 6-7quick reference, 6-5Status Block, 6-8–6-11status pointer, 6-4
COMMREQs and Passwords, allowablepassword levels, 6-1
Communication Request. See COMMREQ
Communications, stopped, 2-3, 2-5
Compatibility, 1-2, 1-7
Computer, receives global data from GBC,2-12
Config Mem fault, 5-5
Configurationdevices, 4-11generic devices, 4-7, 4-13I/O blocks, 4-1remote drops, 4-1
Index
Index-2 GFK-1034BSeries 90�-30 Genius� Bus Controller User’s Manual – April 1996
using Hand-held Programmer, 4-9–4-15using Logicmaster 90 software, 4-3–4-15
Connector, Hand-held Monitor, 3-11
CPU sweep, 2-2, 6-16, 6-20
CS Feedback Error fault, 5-4
DData block, 6-4
Data default, 2-3
Data quantities, 1-4
Datagrams, 1-14incoming, 6-12, 6-16number per CPU sweep, 6-20–6-21priority, 6-16, 6-18, 6-19ways to send, 6-12, 6-18
Default, input state, 4-5
Definitions, faults, 5-4
Dequeue Datagram COMMREQ, 6-5, 6-15
Device number, 4-5
Device outputs, enabled/disabled at start-up, 4-5, 4-12
Device type, 4-6
Diagnostics, 1-13, 5-1–5-7
Discrete faults, 5-4
D-shell connector, installing, 3-13
EE–mail address, 5-6
Enable/Disable Outputs COMMREQ, 6-14
End of bus, terminating, 3-12, 3-13
Error messages, Hand-held Programmer,4-9
Errors, number on bus, 4-4
FFault table, 5-2
Faultscategories, 5-2
clearing, 5-3, 6-10descriptions, 5-2finding additional information about,
5-5identification, 5-4illegal memory type, 6-8location, 5-2number of, 5-3types, 5-2
Field control I/O, 1-2
Field Control station, 1-4
Fuse Blown fault, 5-4, 5-5
GGBC. See Genius Bus Controller
GCM. See Genius Communications Mod-ule
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 Controllerdescription, 1-5number in system, 1-2operation, 1-11specifications, 1-6
Genius bus scan, description, 1-11
Genius Communications Module, 1-2,2-12
receives global data from GBC, 2-12
Genius Hand-held Monitor, compatibility,1-7
Genius I/O blocks, compatibility, 1-7
Global data, 1-15memory types, 2-1operation, 2-2, 2-5sending and receiving, 4-2
HHand-held Monitor, 1-2
connector, 3-11
Hand-held Programmer, compatibility, 1-7
Headend fault, 5-5
Index
Index-3GFK-1034B Series 90 -30 Genius� Bus Controller User’s Manual – April 1996
II/O blocks, 1-2, 1-3
compatibility, 1-7configuration, 4-1on bus, 2-12
I/O bus fault, 5-5
I/O data, 1-4
I/O Fault Table capacity, 5-3
Illegal memory type fault, 6-8
Input default state, 4-5
Input Short fault, 5-4
Inputs and outputs, 1-11, 1-12
Installation, Genius Bus Controller,3-4–3-5
Internal fault, 5-4
Intrnal Ckt fault, 5-5
Isolation, 1-8
LLEDs
Channel OK, 4-4Comm OK, 1-5Module OK, 1-5
LL Analog faults, 5-4
Location, Genius Bus Controller, 3-2, 3-4
Logicmaster 90 software, configurationwith, 4-3
Logicmaster 90-30 software, compatibility,1-7
Loss Power fault, 5-4
MMemory, for I/O blocks, 1-3
Memory types, for global data, 1-6, 2-1in other hosts, 2-12
Modulation technique, 1-8
Module, Genius Bus Controller, descrip-tion, 1-5
Module OK, LED, 1-5
NNo Load fault, 5-4
No Wait mode, 6-4
OOpen Wire fault, 5-4
Operation, Genius Bus Controller, 1-11
Output data, operation, 2-4
Outputs Enable; Disable COMMREQ, 6-5,6-14
Outputs enable/disable at start, override,6-14
Over Temp fault, 5-4
Overload fault, 5-4
PPasswords, Levels suitable for COMM-
REQs, 6-1
Phone numbers, 5-6
PLC Hotline, 5-6
PLC sweep, scan time contributions, 2-7
Point fault, 5-4, 5-5
Priority, datagram, 6-16, 6-19
Programming for a COMMREQ, 6-2
RRacks, installing GBC in, 3-4–3-7
Read Configuration datagram, 6-22
Read Data datagram, 6-22
Read Device datagram, 6-22
Read Diagnostics datagram, 6-22
Reference address, 5-2
Reference view, 4-8
Remote drop, memory required for, 1-4
Remote drops, 1-2configuration, 4-1
Removing the module, 3-5
Request Datagram Reply COMMREQ,6-5, 6-22
Index
Index-4 GFK-1034BSeries 90�-30 Genius� Bus Controller User’s Manual – April 1996
SS6. See Series 6; Series Six
SBA, 4-6, 4-11See also Bus addressconfiguring devices for, 4-13
Scan time contributions, 2-7
Selecting a cable type, 1-8–1-10
Send Datagram COMMREQ, 6-5, 6-18
Serial Bus Address. See SBA
Series 90-30 PLC, receives global datafrom GBC, 2-12
Series 90-30 PLC, compatibility, 1-7
Series Five PLCSee also Series Six PLCreference address, 4-12
Series Six PLCcompatibility, 1-7receives global data from GBC, 2-12reference address, 4-12
Series Six Reference, 4-5
Share RAM fault, 5-5
Short Circuit fault, 5-4
Signal/noise ratio, 1-8
Slot number, 3-4
SpecificationsGenius bus, 1-8Genius Bus Controller, 1-6
Statusof COMMREQ, 6-8–6-11starting reference, 4-5, 4-11
Status bits, 5-1meaning, 2-3memory for, 2-1transferring to CPU, 2-7
Status blockclearing, 6-8COMMREQ, 6-9
Status LEDs, 1-5
Subfunction code, 6-12, 6-22
Sweep time, 2-6minimizing, 2-10
Sweep, PLC, scan time contributions, 2-7
Switch Fail fault, 5-4
System design, 3-2–3-4
TTechnical help, 5-6
Terminal assemblyinstallation, 3-10removal, 3-9
Terminating the bus, 1-8, 3-8
Timingadditional information, 6-21bus scan and CPU sweep, 6-16, 6-20bus scan time, 2-11CPU sweep time, 2-7device to device response time, 2-11
Token passing, 1-11, 2-6
UUser Scaling Error fault, 5-5
VVersions
CPU, 1-7software, 1-7
WWD (watchdog) Timeout fault, 5-5
Wiring Error fault, 5-4