GE Fanuc Automation Programmable Control Products Series 90™-30 PROFIBUS Slave Module User's Manual GFK-2193A August 2004
GFL-002 Warnings, Cautions, and Notes as Used in this Publication Warning Warning notices are used in this publication to emphasize that hazardous voltages, currents, temperatures, or other conditions that could cause personal injury exist in this equipment or may be associated with its use. In situations where inattention could cause either personal injury or damage to equipment, a Warning notice is used. Caution Caution notices are used where equipment might be damaged if care is not taken.
Contents Overview and Specifications........................................................................................ 1-1 PROFIBUS Information ................................................................................................... 1-1 Related Publications....................................................................................................... 1-1 IC693PBS201 Slave Module Specifications.................................................................. 1-2 PROFIBUS Basics ....
Contents Get Slave Status Command Block – Basic Example ................................................. 4-7 Get Slave Status - Reply Data Format ....................................................................... 4-8 Network Parameter Errors .......................................................................................... 4-9 Read Module Header (5).................................................................................................
Chapter Overview and Specifications 1 This manual provides instructions for installing, programming, and troubleshooting control systems that use the Series 90-30 PROFIBUS slave module, IC693PBS201. It is assumed that you have a basic understanding of Series 90-30 PLCs and are familiar with PROFIBUS-DP protocol. The Series 90-30 PROFIBUS Slave module enables a Series 90-30 CPU to be a slave on a PROFIBUS DP network and to communicate with a PROFIBUS DP master.
1 SYS 1 COM PROFIBUS DP SLAVE Key SERVICE RS232 4 5-IGND 1 LEDs System (SYS) and Communications (COM) indicators 2 Service Port RS232, 9-pin male, D-Shell Connector. Used for module firmware upgrades. 3 PROFIBUS Port 9-pin female D-Shell Connector. Used for connecting to a PROFIBUS network.
1 PROFIBUS Basics PROFIBUS Network Overview • PROFIBUS is an open, vendor independent FieldBus standard for a wide range of applications in industrial automation, including motion control. • PROFIBUS is a dynamic technology that grows functionally while complying with the European FieldBus Standard EN 50 170.
1 Data bandwidth Demands on PROFIBUS Communications Systems Amount of Data Management level Mbytes Transmission Duration Transmission Frequency Hours/Minutes Day/Shift Cell level Kbytes Seconds Hours/Minutes Field Level Bytes Several 100 microseconds to 100 milliseconds 10 to 100 milliseconds Actuator sensor level Bits Microseconds to milliseconds Milliseconds Network Topology A PROFIBUS-DP network may have up to 127 stations (address 0-126), however address 126 is reserved for commission
1 Repeater Connecting Segments Participant Participant Participant Remote Repeate Link Segment (No Participants) Termination Branch Segment Participant Participant Participant Remote Repeater Termination To additional participants Figure 1-2. Repeaters and bus termination Network Connectors PROFIBUS connections are created with a 9 pin sub-D connector.
Chapter Installation 2 This chapter contains information on the following procedures: Reviewing system power requirements Installing the PROFIBUS module in the PLC rack Installing PROFIBUS wiring Connecting the Slave to the PROFIBUS network Selecting the proper line type PROFIBUS cable types Installing bus termination Reviewing System Power Requirements Review the power requirements of your system to ensure that your power supply has sufficient capacity to support the PROFIBUS S
2 Connecting the Slave to the PROFIBUS Network Network Segment Length A PROFIBUS network uses either fiber optic or RS-485 copper media. The copper bus line specified in EN 50 170 is “Line Type A” and is the recommended cable type. A more economical copper cable “Line Type B” is commonly used for smaller installations; however, it is not specified in EN 50 170. It is extremely important to use cable rated to PROFIBUS specifications.
2 PROFIBUS Cable Types The recommended cable is Belden 3079A PROFIBUS Cable This is a shielded, 150 ohm twinaxial (single twisted pair) cable. It has 22 AWG conductors and a mutual capacitance of 9.0 pF per foot, nominal. For complete specifications on this cable, please contact your Belden dealer or visit their website at www.belden.com.
2 Note: For proper network termination, it is essential that the terminating devices maintain power. Power is provided by the device on Pin 6 and Ground on Pin 5. If power is lost to either terminating device, the network may not operate correctly. Generally, the lone network master device is one of the terminating devices. Therefore, a loss of power to the network master renders the network inoperable anyway.
Chapter Configuration 3 These configuration procedures are intended for users with at least a basic knowledge of the CIMPLICITY Machine Edition Logic Developer software and the Series 90-30 PLC. For help with using the software, please see the software’s built-in help system. Note: The PROFIBUS Slave is supported only in Machine Edition Logic Developer-PLC. Adding a PROFIBUS Slave Module to the Hardware Configuration Add the IC693PBS201 module to the PLC rack configuration. 1. In the folder.
3 Configuring a PROFIBUS Slave Module The PROFIBUS Slave module has four Parameters tabs: Settings, Input Data Area, Output Data Area, and Power Consumption. Settings Tab Station The Slave module’s station number that is used on the PROFIBUS network. Can be in the range from 1 to 125. Each module on a network should be given a unique station number. Default is 1. Note that the Master is commonly assigned to Station 0 (zero).
3 Input Data Area Tab The input data area describes data received over the network by the Slave module from the PROFIBUS Master. These inputs are mapped, using the Input Data Area tab, into specific memory locations in the PLC where the Slave module resides. PROFIBUS Slave Module’s Input Data Area Parameters Area A read-only identifier for the row. Valid range: 1 to 32. Type Data type of area being defined. Valid types are Digital In, Analog In, and Empty. The default value is Empty.
3 Output Data Area Tab The output data area describes data sent over the network by the Slave module to the PROFIBUS Master. These outputs are mapped, using the Output Data Area tab, from specific memory locations in the PLC where the Slave module resides. Area Read-only identifier for the row. Valid range: 1-32. Type Data type of area being defined. Valid types are Digital Out, Analog Out, and Empty. The default value is Empty. Size Describes the size of the data area on the network.
Chapter Status and Diagnostics 4 The following methods can be used to obtain status and diagnostic data: Observing and interpreting the LED indicators on the PROFIBUS module, described below Monitoring the Status/Firmware ID Array, page 4-2 Using Communications Request (COMMREQ) ladder logic instructions to instruct the PROFIBUS module to gather diagnostic or status data and report it to the PLC CPU, page 4-3 Note: The PROFIBUS Slave Module does not generate faults for the Fault Table.
4 Status/Firmware ID Array The starting reference address for this two-word array is set in the PROFIBUS Slave software configuration. For details, see “Parameters” in chapter 3. Word Name Description 1 Slave Status This word contains the slave status code. The status can be read using the Get Slave Status COMMREQ (task 3), described on page 4-7. . 2 Firmware ID Current firmware version running on the Slave module.
4 Communication Requests The Communications Request uses the parameters of the COMMREQ Ladder Instruction and an associated Command Block to define the characteristics of the request. An associated Status Word reports the results of each request. The Communication Request function (COMMREQ) allows the program to communicate with a GE Fanuc intelligent module, such as a PROFIBUS slave module.
4 FT Output: The function’s FT (fault) output can provide an output to optional logic that can verify successful completion of the Communications Request. The FT output can have these states: FT Output Truth Table Enable Input Status Does an Error Exist? FT output Active No Low Active Not active Yes No execution High Low The FT output is set High if: The specified target address is not present (for example, specifying Rack 1 when the system only uses Rack 0).
4 COMMREQ Programming Requirements and Recommendations COMMREQ instructions should be enabled by a contact from a transition coil. If using more than one COMMREQ in a ladder program, verify that a previous COMMREQ executed successfully before executing another one. This can be done by checking the Status Word and the FT (Fault) output. The FT output is held False if the Enable Input is not active.
4 COMMREQ Status Word The following table defines the format of the Status Block used during the COMMREQ handshake. Status Word Format Word Name Description 1 State (See “Status Word State Codes” below.) The state of the current COMMREQ request 2 LostCommand Command code of the last command lost when the CRL bit is set in Flags.
4 PROFIBUS Slave Module COMMREQ Reference The PROFIBUS Slave module supports the following COMMREQ tasks and responses. Task 3 5 6 Name Description Page No. Get Slave Status Retrieves detailed status information for the Slave. 4-7 Read Module Header Retrieves module header information. 4-10 Clear Counters Clears counters in ReadModuleHeader 4-12 Get Slave Status COMMREQ (3) The Get Slave Status COMMREQ retrieves detailed status information for the slave module from the 16-bit slave status word.
4 (Word 7) Command Code: Word 7 specifies the Command code for the COMMREQ to be executed. Get Slave Status = 3. (Word 8) Local PLC - Memory Type: Words 8—9 specify the location in the PLC where the response will be written. Valid values for Word 8 are listed on page 4-7. (Word 9) Local PLC - Memory Starting Address: Word 9 determines the starting address in the local PLC in which the response is to be written.
4 Network Parameter Errors The following errors codes may be returned in bits 0—6 in the Get Slave Status reply. Note: The error code is the numerical value of the bits.
4 Read Module Header (5) The Read Module Header command retrieves Network Diagnostic Information for the Device. Read Module Header Command Block – Basic Example The following command block accomplishes the following: Get Module Header Data Return the COMMREQ Status Word to %R10—%R13. Return the Device Status to %R251—%R275.
4 (Word 9) Local PLC - Memory Starting Address: Word 9 determines the starting address in the local PLC in which the response is to be written. The value entered is the offset (0-based) from the beginning of PLC memory for the memory type and mode specified in Word 8. This offset will be either in bits, bytes, or words depending on the mode specified (for example, if Word 8=16 and Word 9=2, the starting address will be %I9). Valid ranges of values depend on the PLC’s memory ranges.
4 Clear Counters (6) The Clear Counters Command sets the counters in the PROFIBUS module to zero. Clear Counters Command Block – Basic Example In the following command block, Status is returned in %R251—%R252 (words 8 and 9).
Index C Clear Counters (6), 4-12 COMMREQs Clear Counters (6), 4-12 Get Slave Status details, 4-7 memory types, 4-7 PROFIBUS Master, 4-7 Read Module Header (5), 4-10 COMMREQs, general information, 4-3 error detection and handling, 4-5 ladder instruction, 4-3 operation, 4-4 programming recommendations, 4-5 status word, 4-6 Configuration, 3-1 software, 1-2 CPU version, 1-2 F Features, 1-2 network connectors, 1-5 network overview, 1-3 network topology, 1-4 standards, 1-1 R Read Module Header, 4-10 Review