853 Profibus Manual
853 Profibus Manual
853 Profibus Manual
DANGER
Indicates an imminently hazardous situation that, if not avoided, will result in death or serious injury. This signal word is to be limited to the most extreme situations. It may also be used to alert against unsafe practices. (Color: red)
WARNING
Indicates a potentially hazardous situation that, if not avoided, could result in death or serious injury. It may also be used to alert against unsafe practices or cause product failure. (Color: orange)
Caution
Indicates a potentially hazardous situation that, if not avoided, may result in minor or moderate injury. It may also be used to alert against unsafe practices. (Color: yellow)
Chapter 2...............................................................................2-1
Hardware ........................................................................................ 2-1 Mounting ....................................................................................... 2-1 Wiring............................................................................................ 2-1 Network Connector ....................................................................... 2-2 Module and Network Status LEDs ................................................ 2-3
Chapter 3...............................................................................3-1
Network Configuration..................................................................... 3-1 Local Assignment of PROFIBUS Address .................................... 3-2 Assignment of Network Data Rate ................................................ 3-4
Chapter 4...............................................................................4-1
PROFIBUS GSD File ...................................................................... 4-1 853 Three Phase Power Controller GSD File ............................... 4-2
Chapter 5...............................................................................5-1
PKW and PZD Data Capability ....................................................... 5-1 Parameter Process data Object .................................................... 5-1 Data Exchange using PPOs ......................................................... 5-3
PZD Output Data................................................................................... 5-3 PZD Input Data ..................................................................................... 5-4
Using the PKW Structure for Single Parameter Requests ............ 5-5 Error Response............................................................................. 5-7 Modifying the Assignment of PZD Data ........................................ 5-9
PZD Output Map ................................................................................... 5-9 PZD Input Map .................................................................................... 5-11
Chapter 6...............................................................................6-1
Configuration Example.................................................................... 6-1 Hardware Configuration ................................................................ 6-1 Software Configuration ................................................................. 6-4 Sample Code ................................................................................ 6-9
Chapter 7...............................................................................7-1
Troubleshooting .............................................................................. 7-1
Glossary .................................................................................... i
ii
List of Figures
Figure 1-1 PROFIBUS Connectivity ............................................................................. 1-1 Figure 2-1 850 Series PROFIBUS Interface Card ........................................................ 2-1 Figure 2-2 PROFIBUS Interface Connector ................................................................. 2-2 Figure 2-3 Location of status LEDs .............................................................................. 2-3 Figure 6-1 GSD file installation..................................................................................... 6-1 Figure 6-2 Hardware configuration of test system........................................................ 6-3 Figure 6-3 FC100: Receive data from the 853 ............................................................. 6-4 Figure 6-4 FC101: Send data to the 853 ...................................................................... 6-5 Figure 6-5 S7DEMO_853 block summary.................................................................... 6-6 Figure 6-6 DB100: Input data received from the 853 ................................................... 6-7 Figure 6-7 DB100: Output data sent to the 853............................................................ 6-8 Figure 6-8 853Ctrl: Allows user to read and write variables in real time....................... 6-9 Figure 7-1 PROFIBUS Interface Board ........................................................................7-2
List of Tables
Table 1-1 Technical Specifications...............................................................................1-2 Table 1-2 Transmission Medium Specifications ........................................................... 1-3 Table 2-1 PROFIBUS Connector Pinout ...................................................................... 2-2 Table 2-2 PROFIBUS Interface Status LEDs ............................................................... 2-3 Table 5-1 PPO Data Exchange Message Format ........................................................ 5-2 Table 5-2 Master's PZD Output Data ........................................................................... 5-3 Table 5-3 853 PZD Input Data ..................................................................................... 5-4 Table 6-1 853 Output and Input Words ........................................................................ 6-2 Table 7-1 PROFIBUS Interface Status LEDs ............................................................... 7-2 Table 7-2 PROFIBUS Troubleshooting ........................................................................ 7-3
iii
PROFIBUS is a vendor-independent, low-level network standard that defines the connection and communication between industrial devices. PROFIBUS has two primary functions: Control of connected industrial devices Monitoring link for connected industrial devices
The Spang 850 Series PROFIBUS Interface products support the PROFIBUS-DP variant of the PROFIBUS protocol, which is a multimaster, master-slave, token passing protocol designed especially for communication between automatic control systems and distributed I/O at the device level. The open nature of the network allows equipment from different manufacturers to coexist on the same bus. The Spang 850 Series PROFIBUS Interface products are 'slave' devices; that is, they do not initiate communication. A master device on the network must establish a connection with the 850 Series PROFIBUS interface, in order for data to be exchanged. The PROFIBUS-DP network standard follows a high speed version of the RS485 standard, permitting baud rates of up to 12Mbaud. A maximum of 32 PROFIBUS-DP stations (nodes) may be contained within a single network segment. Use of RS485 repeaters allows a total of up to 127 stations.
1-1
Description
May 2005
Technical Specifications
Bus Connector
Bus access
Signalling
Encoding
Terminating Resistors
1-2
May 2005
Description
Impedance: 135 165 ohm; f = 3 20 MHz Capacity: < 30 pF/m Loop resistance: 110 ohm/km Wire diameter: 0.64 mm Core cross section: > 0.34 mm2 (22 AWG) Impedance: 100 130 ohm; f > 100 KHz Capacity: < 60 pF/m Loop resistance: na Wire diameter: 0.64 mm Core cross section: > 0.22 mm2 (24 AWG)
Cable Type B
1-3
Description
May 2005
1-4
Chapter 2 Hardware
Mounting The 850 Series PROFIBUS Interface card is mounted on the main control board inside the 850 Series Controller. The actual card mounted in the controller (850 chassis version) is shown below.
Wiring Each station on the PROFIBUS network is connected to the medium via a 9-pin D-sub connector. The female side of the connector is located in the station (850 series Interface), while the male side is mounted on the bus cable. The bus cable (type A and type B) must be terminated at both ends by a termination resistor. The termination resistor is 220 ohms (type A cable) or 150 ohms (type B), accompanied by 390 ohm pullup and pulldown resistors. Typical PROFIBUS T connectors offer a selectable termination option. It is important to note that stations located between the terminated ends of a cable run must not be resistor-terminated.
2-1
Hardware
May 2005
Network Connector
The 850 series PROFIBUS Interface connector is a female (socket) DB9 type. The PROFIBUS cable connector is specified as a DB9 male (plug) type. Cable (plug end) connectors generally include selectable terminating resistors. Terminating resistance MUST be applied at the end stations on the network.
Description Shield, protective ground -24V output voltage Receive/Transmit Data N Control P Data ground Voltage - plus
(2)
2 3 B/B'
- 24 V
(2)
RxD/TxD - P
(2)
4 5 6 7 8 A/A' C/C'
CNTR P DGND VP
(1)
+ 24 V
RxD/TxD - N
(2)
CNTR N
(1) Signal is only necessary at the end node (station at the end of the bus) (2) These signals are optional.
2-2
May 2005
Hardware
The interface card uses three LEDs to describe Module and Network status. The LEDs flash during power up as a self-test. Status is summarized in the following table.
On
Interface board is not communicating with control board No network activity Configuration incomplete Interface is configured and exchanging data with its master
D5, D3 D3 D6, D3
Flashing Flashing On
2-3
Hardware
May 2005
2-4
DANGER
Only qualified electrical personnel familiar with the construction and operation of this equipment and the hazards involved should install, operate, and/or service this equipment. Read and understand this manual and other applicable manuals in their entirety before proceeding. Failure to observe this precaution could result in severe bodily injury or loss of life.
Caution
The 850 Series Controller is configured using the programmable settings. Programming the settings incorrectly can cause the controller to exhibit intermittent or full output conditions.
In order to communicate across PROFIBUS, the 850 Series controller must be configured as a node (station) on the PROFIBUS network. Each station on the network must have a unique address in the range 0 - 126. The default slave address is 126; however, address 126 is NOT a valid slave address for IO data exchange. There are two methods available for setting the address of the 850 Series controller: 1) by a master station over the network (refer to the Communication chapter); or 2) locally, using the Configuration Tool supplied with the 850 Series controller. In either case, it is imperative that the station address remain unique on the network throughout the configuration process.
3-1
Network Configuration
May 2005
Local Assignment of PROFIBUS Address Note: The 850 Series Controller must be under Local control (i.e, the Remote/Local input is open) to enable write capability from the Configuration Tool. Refer to the specific 850 Series product manual (SPE-AM 851, SPE-AM 853, etc) for detailed information on the Configuration Tool. Establish on-line communication between the 850 Series Controller and the accompanying Configuration Tool. Open the settings window, and select the Network Tab. Set the Network Type for PROFIBUS.
3-2
May 2005
Network Configuration
Set the Network Address. It is the user's responsibility to assign a station address which is UNIQUE on the network. There is no address arbitration procedure on the PROFIBUS network; duplicate station addresses will result in undefined network behavior.
3-3
Network Configuration Set the Network Loss Option for desired operation.
May 2005
This setting defines 850 Controller behavior in the event that communication over the network is lost. FAULT and STOP IGNORE and RUN The 850 Controller will indicate a fault and the output will be shut off. There is no indication of network loss, and the 850 Controller continues normal operation. The 850 Controller will indicate an alarm and continue normal operation.
Assignment of Network Data Rate The 850 series PROFIBUS interface is an AUTOBAUD device. When the interface is added to the PROFIBUS network, it senses the network baud rate, and sets its own baud rate accordingly.
3-4
4-1
PROFIBUS GSD
May 2005
; Device Data File for 853 Three Phase Power Controller ; Copyright (c) 2004, Spang Power Electronics ; GSD Rev 3.0 #PROFIBUS_DP GSD_Revision = 2 Vendor_Name = "Spang Power Electronics" Model_Name = "853 Three Phase Power Control" Revision = "Rev 8.x" Ident_Number = 0x0773 Protocol_Ident = 0 Station_Type = 0 FMS_Supp = 0 Hardware_Release = "Rev B" Software_Release = "8.00x" ; Supported baudrates 9.6_supp = 1 19.2_supp = 1 93.75_supp = 1 187.5_supp = 1 500_supp = 1 1.5M_supp = 1 3M_supp = 1 6M_supp = 1 12M_supp = 1 ; Maximum responder time for supported baud rates MaxTsdr_9.6 = 60 MaxTsdr_19.2 = 60 MaxTsdr_93.75 = 60 MaxTsdr_187.5 = 60 MaxTsdr_500 = 100 MaxTsdr_1.5M = 100 MaxTsdr_3M = 200 MaxTsdr_6M = 200 MaxTsdr_12M = 200 ; Supported hardware features Redundancy = 0 Repeater_Ctrl_Sig = 2 24V_Pins = 0 ; Slave Specific Freeze_Mode_Supp = 0 Sync_Mode_Supp = 0 Auto_Baud_Supp = 1
The 853 is an 'autobaud' device; it supports all of the baudrates defined for Profibus networks.
'Max_Tsdr' is the maximum time allowed to pass before the slave responds to the master. It is specified in 'Tbits', a time equal to the inverse of the baud rate. One Tbit at 12M = 83nsec
The 853 will configure itself to the existing network baud rate upon powerup. The network address of the 853 is set by the master through SAP 55.
4-2
May 2005
PROFIBUS GSD
Set_Slave_Add_Supp = 1 ; Maximum length of user parameter data User_Prm_Data_Len = 0 ; Default user parameter string ; none Slave_Family = 0@Spang Min_Slave_Intervall = 2 Modular_Station = 1 Max_Module = 3 Max_Input_Len = 32 Max_Output_Len = 32 Max_Data_Len = 56 Max_Diag_Data_len = 8 Each 'Module' mirrors a PPO type defined for the 850 series. Module 1 corresponds to PPO 1, Module 2 is the same as PPO 2, and so on. Modules 1 and 2 define the output and input data lengths, and include the 850 setting numbers assigned to the output and input data. Module 3 defines the output and input data lengths, but does not include setting numbers; the assignment (configuration) stored in the 850 will be used.
Module = "5WOut 10WIn - config follows" 0xCD, 0xC4, 0xC9, 68, 17, 54, 75, 72, 30, 63, 74, 119, 11, 50, 13, 65 ; 5w out, 10w in, data follows 1 EndModule Module = "PKW + 5Out 10In - config follows" 0xCD, 0xC8, 0xCD, 68, 17, 54, 75, 72, 30, 63, 74, 119, 11, 50, 13, 65 ; PKW + PZD, 5w out, 10w in, data follows 2 EndModule Module = "PKW + 5Out 10In - config saved" 0xC0, 0xC8, 0xCD ; PKW + PZD, 5w out, 10w in, no data follows 3 EndModule ; Spang 853 Configuration specific parameters ; Spang_Icon_File = "SP850.ico"
4-3
PROFIBUS GSD
May 2005
4-4
5-1
May 2005
PKW
PZD
PKE
IND
PWE
PZD1
PZD2
PZD3
PZDn
PZD2
PZD3
PZDn
Parameter ID / Value Process Data; cyclically transmitted Parameter ID (octets 1-2) Sub-index (octets 3-4) Parameter Value (octets 5-8) Control Word (request) Status Word (response)
5-2
May 2005
Type 1 communication does not include a PKW segment. Type 1 is defined as 5 words of PZD (process) data out (from the master), and 10 words of PZD data in (to the master). Type 2 communication includes the 8-byte PKW (parameter) segment, 5 words of process data out, and 10 words of process data in. The default PPO type for the 853 is PPO 1, described as 5 words of output data (control information from the master), and 10 words of input data (status information sent to the master). There is no PKW segment in the 853 default configuration. Data Exchange using PPOs The slave's diagnostic response indicates satisfactory configuration, and whether or not it has a master (4th byte of diagnostic response). When the master detects the satisfactory configuration of its slave (by repeated requests for diagnostics), the master and slave enter the Data Exchange mode. The Data Exchange mode is marked by the transfer of process data between the master and slave in a queryresponse, or polled, arrangement. The master sends output data to the slave and receives input data in response. The master's output data is written to the 853. Input data is data read from the controller and sent to the master. If the slave has been configured for data transfer involving PKW (parameter) data, the PKW portion of the message will be handled apart from the PZD (process) data. PZD Output Data The PZD output data (from master to 853 slave) is summarized below. The first two bytes of PZD output data are ALWAYS the Control Word (setting 93). No other 853 setting may be mapped to this output.
5-3
May 2005
PZD Input Data The PZD input data (from 853 Controller to master) is summarized in the following table. The first two bytes of the PZD input data are ALWAYS the Status Word (setting 94). No other 853 setting may be mapped to this input. Input data is READ-ONLY and cannot be altered by the master.
5-4
May 2005
Using the PKW Structure for Single Parameter Requests The PKW is an 8 byte segment at the front of the data exchange message. The PKW is used by the master to issue a single parameter request. The slave processes the request and formulates the response to it. It is important to note that the slaves PKW response may not be ready to be included in the immediate cyclic response telegram. The slave will include its PKW response in a subsequent cyclic response after it has processed the request. The slave is unable to respond to a new parameter request until the current request has been completed. It is the responsibility of the master to maintain the order and timing of parameter requests within the cyclic message. The 8-byte PKW segment is interpreted as follows:
PKW PZD
PKE
IND
PWE
PZD1
PZD2
PZD3
PZDn
Parameter ID (octets 1-2) Sub-index (octets 3-4) Parameter Value (octets 5-8)
The PKE (Parameter ID) is a 16 bit value which contains the request/response code and parameter number. Bits 0 10 identify the 853 parameter number. Bit 11 is unused. Bits 12 15 identify the request/response.
Parameter ID (PKE) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Identifier (ID) REQUEST 0 = no request 1 = read 2 = write RESPONSE 0 = no response 1 = transfer resp 7 = error resp 8 = no master
PNU numbers 1 119 correspond to 850 series settings PNU numbers 150 164 correspond to process data settings
The IND (index) is currently reserved for future use. The PWE is a 16 bit value transferred high byte first. For a parameter read request, the PWE contents are undefined. Likewise in a parameter write response, the PWE contents are undefined.
5-5
Parameter Process data Object (PPO) As an example, the PKW read request of 853 setting number 95 (Ramp Up Time) is as follows:
PKW PZD
May 2005
IND 00 00
PWE 00 00 00 00
PZD1
PZD2
PZD3
PZDn
Read request, Parameter number 95 Not used Not used for Parameter Read
The master continues to issue the same PKW request in the cyclic message exchange until a PKW response is received. Only one PKW task is processed at any one time. The slave will issue a no response in the PKW segment of its cyclic response until the PKW request has been processed.
PKW PZD
IND 00 00
PWE 00 00 00 00
PZD1
PZD2
PZD3
PZDn
5-6
May 2005
When the slave has processed the PKW request, it will issue a transfer response or an error response.
PKW PZD
IND 00 00
PWE 00 00 00 0AH
PZD1
PZD2
PZD3
PZDn
Transfer response, setting number 95 Not used Current value of setting number 95 (eg, 10 seconds)
The slave continues to provide the last response PKW until the master formulates a new request. A PKW read response always provides the current value. Error Response If the slave cannot process the PKW request, it issues an error response. If the error identifier in the slave response is 8, it means the master does not have control of the slave for PKW processing. The slaves configuration is probably incorrect. If the error identifier in the slave response is 7, the error is described in the PNU field.
Parameter ID (PKE) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Error Identifier
Error Codes
0 = illegal parameter number 1 = Parameter value cannot be changed 17 = request cannot be processed due to operating state 18 = unspecified error
5-7
May 2005
As an example, a request to write a new value to a read-only setting, such as status, will return an error. Request:
PKW PZD
IND 00 00
PWE 00 00 AA 55H
PZD1
PZD2
PZD3
PZDn
Write request, setting number 94 (Status) Not used Desired value of setting number 94
Response:
PKW PZD
IND 00 00
PWE 00 00 00 11H
PZD1
PZD2
PZD3
PZDn
Error response, setting number 94 (Status) Not used Error 17, request cannot be processed due to operating state
Important Note The PKW message segment cannot be used to modify an 853 setting that is mapped to a PZD output. As an example, the control word (setting 93) is mapped to PZD output one. This means that a PKW request to write the control word will generate an error response.
5-8
May 2005
Modifying the Assignment of PZD Data The data telegram is used for the cyclic transfer of data between master and slave. PPO capability breaks the data telegram into an acyclic PKW (parameter) segment and a cyclic PZD (process) segment. The process data are applied to settings assigned by the information sent from the master to the slave during configuration. It is possible to modify the settings referenced in the data telegram by using the PKW segment of the data telegram. Note that the first output word must always remain the control word, and the first input word will always be the status word. The PZD data is defined as 16 bit values transferred as bytes, high byte first. Each word of data corresponds to an 853 setting. Output data is written to the setting; input data is read from the setting. The list of settings addressed in the PZD data is an array that can be accessed as parameter numbers 150 164. The mapping of PZD position to parameter is illustrated below. PZD Output Map
PZD Offset 0 2 4 6 8 Parameter Number 150 151 152 153 154 Description / Default Mapping Output 1 data / Setting 93 Control Word (ALWAYS) Output 2 data / Setting 68 Power Setpoint Output 3 data / Setting 17 Voltage Setpoint Output 4 data / Setting 54 Current Setpoint Output 5 data / Setting 75 Duty Cycle Setpoint
Any 853 setting that can be modified is a valid output parameter. For example, to change Output 2 from setting 68 (Power Setpoint) to setting 17 (Voltage Setpoint) the PKW message segment would look like the following:
5-9
May 2005
IND 00 00
PWE 00 00 00 11H
PZD1
PZD2
PZD3
PZDn
Write request, Parameter number 151d = 97H Not used New 853 setting number 17d = 11H
Changes to the PZD output map should be made with the 850 unit output OFF. It is the users responsibility to ensure proper values are set in the PZD output data before turning the unit output on. The PKW response:
PKW PZD
IND 00 00
PWE 00 00 00 00
PZD1
PZD2
PZD3
PZDn
Transfer response, Parameter number 151d = 97H Not used Not used
5-10
May 2005
Any 853 setting is a valid input parameter. To change Input 6 from setting 119 (Fault Code) to setting 102 (Product Code) the PKW message segment would look like the following:
PKW PZD
IND 00 00
PWE 00 00 00 66H
PZD1
PZD2
PZD3
PZDn
Write request, Parameter number 161d = A1H Not used New 853 setting number 102d = 66H
IND 00 00
PWE 00 00 00 00
PZD1
PZD2
PZD3
PZDn
5-11
6-1
Configuration Example
May 2005
Several input/output modules are defined in the 853 GSD. This example uses module 1, 5 Words Out, 10 Words In config follows, defined as 5 words of output data and 10 words of input data. The module describes the information passed between the S7 400 PLC master and the 853 slave in Data Exchange mode. The information is described below.
6-2
May 2005
Configuration Example
6-3
Configuration Example
May 2005
Software Configuration Transfer instructions in the Siemens S7 400 PLC are limited to a max of 4 bytes of consistent data. Since the data between the PLC and the 853 has a maximum of 14 words, two System Function calls are used to read and write data. The System Function calls are SFC14 (read consistent data of DP standard slave), and SFC15 (write consistent data to a DP standard slave). The use of system function calls ensures the consistency of data over the length of the data exchange. The S7 demo project has two User Function Calls which utilize SFC14 and SFC15, and are illustrated in the following figures.
6-4
May 2005
Configuration Example
6-5
Configuration Example
May 2005
6-6
May 2005
Configuration Example
6-7
Configuration Example
May 2005
6-8
May 2005
Configuration Example
Figure 6-8 853Ctrl: Allows user to read and write variables in real time.
Sample Code The sample code using SIMATIC Step 7 v5.2 software has been tested and is available by request.
6-9
Chapter 7 Troubleshooting
DANGER
Only qualified electrical personnel familiar with the construction and operation of this equipment and the hazards involved should install, operate, and/or service this equipment. Read and understand this manual and other applicable manuals in their entirety before proceeding. Failure to observe this precaution could result in severe bodily injury or loss of life.
DANGER
The user is responsible for conforming with all applicable local, national, and international codes; wiring practices, grounding, disconnects, and overcurrent protection are of particular importance. Failure to observe this precaution could result in severe bodily injury or loss of life.
DANGER
This equipment is at line voltage when AC power is connected. Disconnect and lock out all ungrounded conductors of the AC power line. Failure to observe these precautions could result in severe bodily injury or loss of life.
DANGER
Power must be applied to the 850 Series Controller with the cover removed to perform certain troubleshooting procedures. Voltages on many components are at incoming line potential. To avoid electric shock hazard or damage to equipment, do not touch any component other than those specified in the manual. Failure to observe these precautions could result in severe injury or loss of life.
7-1
Troubleshooting
May 2005
PROFIBUS Interface LED Indicators The following figure illustrates the location of module and network status LEDs on the PROFIBUS interface card.
On
Interface board is not communicating with control board No network activity Configuration incomplete Interface is configured and exchanging data with its master
D5, D3 D3 D6, D3
Flashing Flashing On
7-2
May 2005
Troubleshooting
Troubleshooting Guide
Power Supply failed D5 (red) LED on The PROFIBUS Interface is not communicating with the main control board
7-3
Troubleshooting
May 2005
7-4
Glossary
Glossary of common terms and abbreviations used in SCR Power Controllers and their applications
Term or Acronym
ASCII Autobaud GSD I/O LED NC NO NEC NEMA PCB PCMCIA PKW PLC PPO PROFIBUS PROFIBUS-DP
Description
American Standard Code for Information Interchange The ability of a device on a network to sense the network baud rate PROFIBUS Electronic Device Description Input/Output Light emitting diode Normally closed contact Normally open contact National Electric Code National Electrical Manufacturers Association Printed Circuit Board Personal Computer Memory Card International Association Parameter segment of a PPO-style cyclic PROFIBUS message Programmable Logic Controller Parameter Process data Object A vendor-independent, low-level, industrial network standard A master-slave, token-passing protocol designed specifically for automated control and device-level IO. A variant of the PROFIBUS protocol. Process-data segment of a PPO-style cyclic PROFIBUS message Root Mean Squared Receive Silicon Controlled Rectifier Reference for PID control Transmit
Glossary
May 2005
Term or Acronym
VAC VDC VRMS
Description
Volts Alternating Current Volts Direct Current Volts Root Mean Squared
ii