Fife SBPC-21-PB PROFIBUS DP Customer Instruction Manual

Fife Corporation
PO Box 26508, Oklahoma City, OK 73126, U.S.A. Phone: 405.755.1600 / Fax: 405.755.8425 www.fife.com / E-mail: fife@fife.com
SBPC-21-PB
FifeNet to Profibus™ Gateway
Customer Instruction Manual
PROFIBUS DP
© 2002 Fife Corporation. All rights reserved.
SBPC-21-PB CUSTOMER INSTRUCTION MANUAL
COPYRIGHT
• • • • • •
All rights reserved. Any reproduction of this Instruction Manual, in any form, in whole or in part, requires the prior written consent of Fife Corporation.
The information given in this Instruction Manual is subject to change without notice.
We have compiled this Instruction Manual with the greatest possible care and attention. However, the possibility of error cannot be completely excluded. Fife Corporation accepts no legal liability for incorrect information given and the consequences arising therefrom.
AnyBus is a registered trademark of HMS Industrial Networks AB.
All other trademarks are the property of their respective holders.
SBPC-21-PB CUSTOMER INSTRUCTION MANUAL
TABLE OF CONTENTS
• • • • • •
GENERAL INFORMATION ............................................................................................................................1
Introduction ..............................................................................................................................................1
Profibus DP Overview..............................................................................................................................1
Producer/Consumer Model......................................................................................................................3
FifeNet .....................................................................................................................................................3
SBPC-21-PB Switch/Jumper Configuration.............................................................................................4
SBPC-21-PB External Connections/Switches/Indicators.........................................................................5
Profibus DP Baud Rate............................................................................................................................5
SBPC-21-PB Network Status ..................................................................................................................6
SBPC-21-PB Error Codes .......................................................................................................................7
F
IFENET THEORY ......................................................................................................................................9
FifeNet Time Slices..................................................................................................................................9
Multiplexed Time Slices ...........................................................................................................................9
FifeNet Master .......................................................................................................................................10
SBPC-21-PB Data Flow.........................................................................................................................10
C
ONFIGURATIONS....................................................................................................................................13
Hardware Configuration - Single CDP-01..............................................................................................13
Hardware Configuration - Multiple CDP-01’s.........................................................................................14
Software Configuration ..........................................................................................................................14
GSD File ................................................................................................................................................14
C
OMMUNICATION MAPPING......................................................................................................................15
Profibus to FifeNet Data ........................................................................................................................15
FifeNet to Profibus Data ........................................................................................................................16
C
ONTROL INFORMATION ..........................................................................................................................19
CDP-01 Control Matrix...........................................................................................................................19
External Lock .........................................................................................................................................19
Status Data Block ..................................................................................................................................22
PECIAL CONTROL OF FIFENET DEVICES.................................................................................................29
S
CDP-01 Key Code Data Path ................................................................................................................29
CDP-01 Key Codes ...............................................................................................................................30
Simulating Dual-Key Presses ................................................................................................................30
CDP-01 LED Panel Data .......................................................................................................................31
I
NDEX......................................................................................................................................................33
SBPC-21-PB CUSTOMER INSTRUCTION MANUAL
1
GENERAL INFORMATION
• • • • • •
Introduction
The Fife SBPC-21-PB (Serial Bus Protocol Converter) provides a gateway between Fife’s proprietary FifeNet network and Profibus™. Using the SBPC-21-PB, data originating from FifeNet can be sent on Profibus and data from Profibus can be sent to FifeNet.
Profibus DP Overview
The supported media for the SBPC-21-PB Profibus is a shielded copper cable consisting of a twisted pair. The baud rate for the bus is between 9.6K baud to a maximum 12M baud. The Profibus DP network is able to carry 126 nodes and the total amount of data for Profibus DP is 244 bytes out per module and 244 bytes in per module. Node 126 is only used for commissioning purposes and should not be used to exchange user data. An example of a Profibus network with an SBPC-21-PB is shown in the diagram below.
Figure 1-2: Example of an SBPC-21-PB Network Connection
Profibus DP Master
Profibus DP Slave #1
Profibus DP Slave #2
Profibus DP Slave #3
FifeNet
RS-232
Profibus
The SBPC-21-PB connects to both FifeNet and Profibus providing translation between two networks.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 1
Table 1-1: Technical Features for Profibus DP
Transmission Technique: Profibus DIN 19245, Part 1
Medium Access: Hybrid medium access protocol according to DIN 19245, Part 1
Communications: Peer-to-Peer (User Data Transfer) or Multicast (Synchronization)
Operation Modes
Synchronization: Enables synchronization of the inputs and/or outputs of all DP slaves.
Functionality
Security and Protection Mechanisms
Cabling and Installation
SUMMARY OF PROFIBUS DP TECHNICAL FEATURES
EIA RS 485 twisted pair cable or fiber optic.
9.6 kbit/s up to 12 Mbit/s, maximum distance 200m at 1.5 Mbit/s extendible with
repeaters.
Monomaster or multimaster systems supported.
Master and slave devices, maximum 126 stations possible.
Cyclic master slave transfer and acyclic master-master data transfer.
Operate: cyclic transfer of input and output data.
Clear: inputs are read and outputs are cleared.
Stop: only master-master functions are possible.
Sync-Mode: Outputs are synchronized.
Freeze-Mode: Inputs are synchronized.
Cyclic user data transfer between DP-Master(s) and DP Slave(s).
Activation or deactivation of individual DP Slaves.
Checking of the configuration of the DP Slaves.
Powerful diagnosis mechanisms, 3 hierarchical levels of the diagnosis messages.
Synchronization of inputs and/or outputs.
Address assignments for the DP-Slaves over the bus with Master Class 2.
Configuration of the DP-Master (DPM1) over the bus.
Maximum 244 bytes input and output data per DP Slave, typical 32 bytes.
All messages are transmitted with Hamming Distance HD=4
Watchdog timer at the DP slaves.
Access protection for the inputs/outputs at the DP slaves.
Data transfer monitoring with configurable timer DP Master (DPM1).
Connecting or disconnecting of stations without affecting of other stations.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 2
PROTOCOL AND SUPPORTED FEATURES
Fieldbus Type PROFIBUS-DP EN 50 170 (DIN 19245)
Protocol Version Version 1.10
Protocol Stack Supplier Siemens
Auto Baud Rate Detection Supported Baud Rate Range: 9.6 kbit to 12Mbit
PHYSICAL INTERFACE
Transmission Media Profibus Bus Line, Type A or B Specified in EN 50170
Topology Master-Slave Communication
Fieldbus Connector 9-Pin Female DSUB
Cable Shielded Copper Cable, Twisted Pair
Isolation
Profibus DP Ccommunication IC SPC3 Chip from Siemens
The bus is galvanically separated from the other electronics with an on-board DC/DC converter. Bus signals (A-line and B-line) are isolated via optocouplers.
Producer/Consumer Model
The Producer/Consumer Model allows the exchange of information between a sending device (“producer”) and many receiving devices (“consumer”) without requiring the same data to be sent multiple times to different destinations. The producer sends the data once and each consumer on the network receives the data at the same time. The data can be used (“consumed”) or ignored by each receiving device independently. FifeNet uses the Producer/Consumer Model.
FifeNet
FifeNet’s deployment of the Producer/Consumer Model allows data sent by a single device to be received simultaneously by multiple devices on the same network. Each receiving device can choose to use (“consume”) the information or ignore it as its needs dictate. FifeNet is based on a fixed time slicing architecture where transmitting devices send data in fixed, predetermined time intervals.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 3
SBPC-21-PB Switch/Jumper Configuration
Since the SBPC-21-PB participates in two networks at the same time, it must have two network addresses (a FifeNet address and a Profibus node address). The FifeNet address is set via the FifeNet serial port, which is common with many FifeNet peripherals. The Profibus master sets the baud rate for the Profibus network. If the SBPC-21-PB is installed as the end point in a FifeNet network, the jumpers shown below should be installed to provide network termination.
Figure 2-2: SBPC-21-PB Top View
These jumpers should be installed if the SBPC-21-PB is at the end of a FifeNet network. They provide network termination. The other two jumpers should always be installed as they select half-duplex FifeNet communication.
Terminated Not Terminated
Profibus Termination
The end nodes in a Profibus DP network must be terminated to avoid reflections on the bus line. To accomplish this, the Profibus DP module is equipped with a termination switch. If the module is used as the first or last module in a network, the termination switch must be in the ON position. Otherwise, the switch must be in the OFF position. If an external termination connector is used, the switch must be in the OFF position.
The termination dip switch can only be accessed with the SBPC-21-PB top cover removed. To enable termination, the switch must be in the OFF position.
Termination Switch Position OFF Up toward top cover. ON Down toward circuit board.
The 7-segment LED is used to display errors or exceptions. During normal operation, the display will continuously “cycle” the outer segments.
Profibus node address switches. See the following page for description of these switches.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 4
SBPC-21-PB External Connections/Switches/Indicators
SBPC-21-PB mounting considerations are simplified as all connections to the SBPC-21-PB are on the same side of the box. The node address and rotary switches are accessible after removal of the plastic hole plugs which should be reinstalled after configuration is completed.
Figure 1-3: SBPC-21-PB Side View
Connection to FifeNet is accomplished using the standard FifeNet connector. Configuration is also downloaded using this connection.
LED indicators provide feedback for network troubleshooting.
Pin Name Signal
Housing Shield Connected to PE.
1 Not connected
2 Not connected
3 B-Line Positive RXD/TXD
4 RTS Request to Send1
5 GND BUS Isolated GND from RS-485 side1.
6
7 Not connected
8 A-Line Positive RXD/TXD
9 Not connected
1
+5V Bus and GND Bus are used for bus termination. Some devices, like optical transceivers (RS485 to fiber optics), might require external power from these pins. RTS is used in some equipment to determine the direction of transmission. In normal applications only A-Line, B-Line, and Shield are used.
+5V BUS Isolated +5VDC from RS-485
D-SUB Connector
1
.
side3
The Profibus Node address is set using these rotary switches. This enables address settings from 1-99 in decimal format. The left switch sets the most significant digit and the right switch sets the least significant digit. The node address cannot be changed during operation.
Profibus DP Baud Rate
The baud rate on a Profibus DP network is set during configuration of the master. Only one baud rate is possible in a Profibus DP installation. The SBPC-21-PB uses auto baud rate detection so the user does not have to configure the baud rate. Baud rates supported are:
9.6 kbit/s 187.5 kbit/s 3 Mbit/s
19.2 kbit/s 500 kbit/s 6 Mbit/s
93.75 kbit/s 1.5 Mbit/s 12 Mbit/s
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 5
SBPC-21-PB Network Status
The SBPC-21-PB network status is determined by interpretation of the external LED status indicators as described below.
Figure 1-4: SBPC-21-PB LED Indicators
Table 1-1
ONLINE
LED State Meaning
Green
Off Module is not ONLINE
LED State Meaning
Red
Off Module is ONLINE.
LED State Meaning
Off No faults present.
Flashing Red (1 Hz)
Flashing Red (2 Hz)
Flashing Red (4 Hz)
Indicates that the module is ONLINE and data exchange is possible.
OFFLINE
Indicates that the module is OFFLINE and no data exchange is possible.
FAULTS
Error in configuration: IN and/or OUT length set during initialization of the module is not equal to the length set during configuration of the network.
Error in user parameter data: The length/contents of the user parameter data set during initialization of the module is not equal to the length/contents set during configuration of the network.
Error in initialization of the Profibus communication ASIC.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 6
SBPC-21-PB Error Codes
The 7-segment LED digit on the SBPC-21-PB main board is used to indicate errors or other potential problems. See page 2 of this manual for the location of this LED. The error codes are divided into the categories listed below. Since there is only a single-digit display and the error codes are 3 digits in length, the error codes are displayed in three parts. The most significant digit will appear first followed by the second and third digits. The display will go blank for a moment and the cycle repeats unless the SBPC-21-PB has been configured to attempt to restart after an error. If this is the case, the error will only cycle once. All state machine errors 5XX are considered nonfatal and only cycle once. Below are the error codes and their meanings:
Table 1-2
SBPC PROCESSOR ERRORS
F01 Processor attempted to execute and undefined instruction.
F02 Software interrupt vector occurred.
F03 Attempt to fetch instruction from invalid memory.
F04 Attempt to read data from invalid memory.
F05 Reserved exception vector.
F06 FLASH memory checksum fault.
F07 Pool memory allocation error.
F08 Byte memory allocation error.
F09 Unable to create thread.
F0A Unable to create event.
F0B Unable to create semaphore.
F0C Unable to create mutex.
F0D Unable to create queue.
F0E Unable to write to queue.
F0F Console I/O error.
COMMUNICATION MODULE ERRORS
E01 The configuration matrix is corrupted.
E02 No HMS Anybus module detected.
E03 Anybus module failed to initialize (no interrupt received).
E04 Anybus module failed to initialize (interrupt stuck).
E05 Anybus module failed to initialize (mailbox not ready).
E06 Anybus mailbox timeout.
E07 Anybus mailbox response indicated error.
E08 Anybus mailbox response timeout.
E09 Anybus dual-port RAM fault.
E0A Anybus output area release timeout.
E0B Anybus initialization timeout.
STATE MACHINE ERRORS
501 State machine file is corrupted.
502 State machine is disabled.
503 State machine started in shutdown mode.
504 Bad state machine instruction encountered.
505 State machine instruction fetch from address is out of range.
506 State machine stack error (too many nested calls).
507 State machine stack error (too many returns).
508 State machine attempted divide by zero.
509 State machine tried to access more than four timers.
50A State machine variable address is out of range.
Errors that begin with ‘F’ are unrecoverable faults. The SBPC cannot participate in FifeNet or Profibus operations. In the default configuration the SBPC will attempt to restart.
Errors that begin with ‘E’ are associated with the Profibus interface. In the default configuration, the SBPC will attempt to restart. With the exception of error ‘E01,’ FifeNet is functional; however, the default configuration will attempt to restart which will interrupt FifeNet.
Errors that begin with ‘5’ are related to the state machine capability of the SBPC. These errors are cycled only once and do not cause the SBPC to restart.
________________________________________________________________________________________________________________
12-20-2002 Figure Sheet 1-851-A Page 7
Loading...
+ 28 hidden pages