Profibus Ug Iss3
Profibus Ug Iss3
Profibus Ug Iss3
Profibus-DP
SAFETY INFORMATION
Persons supervising and performing the electrical installation or maintenance of a Drive and/or an external Option Unit must be suitably qualified and competent in these duties. They should be given the opportunity to study and if necessary to discuss this User Guide before work is started. The voltages present in the Drive and external Option Units are capable of inflicting a severe electric shock and may be lethal. The Stop function of the Drive does not remove dangerous voltages from the terminals of the Drive and external Option Unit. Mains supplies should be removed before any servicing work is performed. The installation instructions should be adhered to. Any questions or doubt should be referred to the supplier of the equipment. It is the responsibility of the owner or user to ensure that the installation of the Drive and external Option Unit, and the way in which they are operated and maintained complies with the requirements of the Health and Safety at Work Act in the United Kingdom and applicable legislation and regulations and codes of practice in the UK or elsewhere. The Drive software may incorporate an optional Auto-start facility. In order to prevent the risk of injury to personnel working on or near the motor or its driven equipment and to prevent potential damage to equipment, users and operators, all necessary precautions must be taken if operating the Drive in this mode. The Stop and Start inputs of the Drive should not be relied upon to ensure safety of personnel. If a safety hazard could exist from unexpected starting of the Drive, an interlock should be installed to prevent the motor being inadvertently started.
GENERAL INFORMATION
The manufacturer accepts no liability for any consequences resulting from inappropriate, negligent or incorrect installation or adjustment of the optional operating parameters of the equipment or from mismatching the Drive with the motor. The contents of this User Guide are believed to be correct at the time of printing. In the interests of a commitment to a policy of continuous development and improvement, the manufacturer reserves the right to change the specification of the product or its performance, or the contents of the User Guide, without notice. All rights reserved. No part of this User Guide may be reproduced or transmitted in any form or by any means, electrical or mechanical including photocopying, recording or by any information storage or retrieval system, without permission in writing from the publisher. Copyright Author Issue Code System File Hardware (UD73) Firmware (UD73) January 2001 Control Techniques SSPD Paul Bennett Issue 3 V2.07.03 Issue 1 V2.04.00
Contents
1
1.1 1.2 1.3
Introduction
Profibus-DP Interface for Unidrive Product Conformance Certification Overview Specification
4
4 4 4
2
2.1
Mechanical Installation
Unidrive
4
4
3
3.1 3.2
Electrical Installation
Profibus-DP Connectors Profibus-DP Data Connections
ERNI Connector Siemens Connector
4
4 4
4 4
3.2.1 3.2.2
4 4 4
4 4
3.6
4
4.1 4.2 4.3 4.4 4.5 4.6 4.7
Getting Started
Basic Communications Quick Start Profibus-DP Node Address Profibus-DP Data Rate Data Format Network Status Network Loss Trip Initialising Set-up Changes
4
4 4 4 4 4 4 4
5
5.1 5.2 5.3 5.4 5.5 5.6
Cyclic Data
What is Cyclic Data? What is Data Consistency Profibus-DP Data Formats Mapping Parameters on Unidrive Internal 32-Bit Parameters on UD70 Storing Parameters
Saving Unidrive Parameters (Menu 1 to 19) Saving UD70 Parameters (Menu 20 and Internal)
4
4 4 4 4 4 4
4 4
5.6.1 5.6.2
5.7
5.7.1
Mapping Conflicts
Control Word Mapping Conflicts
4
4
Fieldbus Control Word for Unidrive Fieldbus Status Word for Unidrive Disabling Cyclic Data Channels
4 4 4
6
6.1
4
4
4 4
6.2
7
7.1 7.2 7.3 7.4
GSD Files
What are GSD Files? Unidrive GSD File Data Consistency Profibus-DP Data Formats
4
4 4 4 4
8
8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8
Diagnostics
Fieldbus Code Firmware Version System File Version Node Address Network Data Rate Network Status No Data Transfer Unidrive Trip Codes
4
4 4 4 4 4 4 4 4
9
9.1 9.2 9.3
Advanced Features
Network Loss Trip Unidrive Sequencing Mode 3 Drive Reset Using The Profibus-DP Network
Reset Without DPL Code Reset Using CT Mode Non-Cyclic Communications Reset Using DPL Code
4
4 4 4
4 4 4
Non-Cyclic Parameter Store Endian Format EVENT Task Trigger on UD70 Multi-Master Networks
4 4 4 4
10
Quick Reference
Complete Parameter Reference Profibus-DP Data Formats Fieldbus Control Word Fieldbus Status Word Unidrive Trip Codes
4
4 4 4 4 4
1
NOTE
Introduction
Unidrive parameters are denoted in this manual by #MM.PP, where MM refers to the menu number, and PP refers to the parameter number within that menu. Please refer to the Unidrive Advanced User Guide for a full list of parameter definitions.
1.1
1.2
NOTE
Unidrive Profibus-DP interfaces fitted with V2.04.00 firmware or earlier do NOT have Product Conformance Certification.
1.3
Overview Specification
Auto slave configuration of data format and data consistency during Profibus-DP network initialisation. Supported data rates (bits/sec): 1.5M, 500k, 187.5k, 93.75k, 19.2k, 9.6k Three 16 bit input/output words, all can be mapped to or from Unidrive parameters CT Single Word Format non-cyclic data channel
Issue Number: 3
Mechanical Installation
The Unidrive must be disconnected from the mains supply before installing or removing an option module. Warning
2.1
Unidrive
1. Slide the option module into the Unidrive.
2.
Push the option module into the Unidrive until it clicks into place.
Issue Number: 3
3
3.1
Electrical Installation
Profibus-DP Connectors
The Unidrive Profibus-DP interface has two 9-way D-type sockets (A and B) to connect to the Profibus-DP network. Connectors C and D are the RS232 programming port (C) and RS485 general-purpose communications port (D) of the UD70.
A C
B D
The Profibus-DP connectors are parallel connectors, so either connector can be used. The pin -out connections are identical, and are given in the table below. Terminal 8 3 5 6 Shell Function A B 0V ISO VDC Screen Description Negative data Line Positive data Line 0V Isolated +5V line for termination resistors Cable braided screen connection
3.2
Issue Number: 3
3.2.1
ERNI Connector
The ERbic range of fieldbus connectors from ERNI includes a Profibus-DP connector with a vertical cable outlet (Part No. 103658) that is suitable for use with the Unidrive Profibus-DP interface. This connector allows 2 cables to be connected to the same connector, and does not break the network if disconnected from the Unidrive ProfibusDP interface. Further details are available from the ERNI web site at www.erni.com. The ERNI connector can only be fitted to D-type connector A on the Unidrive Profibus-DP interface, as shown in the diagram below.
5 9
4 8
3 7
2 6
1
A B C A D
5 9
4 8
3 7
2 6
B A B A
ERNI ERbic Profibus Connector with vertical cable outlet Part No: 103658
A termination connector is also available with the appropriate termination resistors fitted inside the connector. Refer to section 3.5 for further details.
Issue Number: 3
3.2.2
Siemens Connector
Another suitable Profibus-DP connector for use with Unidrive is available from Siemens. (Part No. 6GK1 500 0EA02.) This connector has a switch that can enable of disable the internal termination resistor network. When termination is enabled, the outgoing bus is isolated. This connector allows 2 cables to be connected to the same connector, and does not break the network if disconnected from the Unidrive Profibus-DP interface. Further details are available from the Siemens web site at www.siemens.de. The Siemens connector can be fitted to either Profibus-DP D-type connector (A or B) on the Unidrive Profibus-DP interface.
5 9
4 8
3 7
2 6
1
A B C D
5 9
4 8
3 7
2 6
OFF
ON
A1 B1 A2 B2
Issue Number: 3
3.3
Profibus-DP Cable
Profibus-DP cable has a single twisted pair plus overall screening. The data wires are usually red and green, and should be connected as shown in the table below. Cable Green Data Signal A Terminal Description 8 Negative data line Connect to pins 1 or 4 on a Commander SE Profibus-DP interface connector Positive data line Connect to pins 2 or 5 on a Commander SE Profibus-DP interface connector Cable screen Connect to pin 3 on a Commander SE Profibus-DP interface connector
Red
Shell
Profibus-DP networks (like most fieldbus systems) run at high data rates, and consequently require cable specifically designed to carry high frequency signals. Low quality cable will attenuate the signals, and may render the signal unreadable for the other nodes on the network. Cable specifications and a complete list of approved manufacturers of equipment for use on Profibus-DP networks is available on the Profibus web site at www.profibus.com.
NOTE
Control Techniques can only guarantee correct and reliable operation of its Profibus-DP interfaces if the network cable installed has been fully approved by the PROFIBUS Nutzerorganisation.
10
Issue Number: 3
3.4
Ensure that the screen clamp makes good contact with the shield of the cable
B A B A
ERNI ERbic Profibus Connector with vertical cable outlet Part No: 103658
3.5
+5V
0V ISO
It is very important in high-speed communications networks that the network communications cable is correctly terminated. Failure to terminate the network properly may mean that the network operates with substantially reduced noise immunity, or in the worst case, the network doesnt work at all.
Issue Number: 3
11
3.5.1
5 9
4 8
3 7
2 6
B A
ERNI ERbic Profibus Connector with vertical cable outlet Part No: 103658
3.5.2
Siemens Connector
The termination resistor network is fitted in the Siemens connector. The resistors can be switched in or out of the circuit as required using the Termination Resistor Enable Switch.
5 9 4 8 3 7 2 6
A B C D
5 9
4 8
3 7
2 6
OFF
ON
Termination Resistor Enable Switch Siemens RS485 Profibus Connector Part No: 6GK1 500 0EA02
A1 B1 A2 B2
12
Issue Number: 3
3.6
NOTE
Terminating resistors (Rt) MUST be installed at BOTH ends of each network segment. The maximum length of cable for each segment is determined by the data rate at which the network must operate. The table below gives a summary of the maximum segment length for each data rate. Data Rate (bits/sec) 9.6K to 93.75K 187.5K 500K 1.5M Maximum Segment Length (m) 1200 1000 400 200 Maximum Total Network Length (m) 4800 4000 1600 800
Issue Number: 3
13
Getting Started
The Quick Start section shows the basic parameter configurations required for the Profibus-DP interfaces to establish communications. Cyclic and non-cyclic data explanations are given in chapters 5 and 6.
NOTE
Parameters #20.01 to #20.20 and #20.50 are reserved for configuring the Profibus-DPinterface, and should not be used in DPL programs.
4.1
The Profibus-DP interface will re-initialise, and configure itself with the new node address. The data format and consistency are automatically detected when the master controller initialises the network. Function Node Address Data Rate Network Loss Trip Unidrive #20.05 Recommended Setting 1 to 125
Not displayed The data rate is automatically detected on Profibus-DP networks #20.11 48
4.2
NOTE
Changes to #20.PP parameters do not take effect in the Profibus-DP interface until the UD70 has been reset. See section 4.7.
14
Issue Number: 3
4.3
4.4
Data Format
The Unidrive Profibus-DP interface automatically detects the required data format when the master controller initialises the network. Data consistency is optional, and is also detected during network initialisation. 3 Cyclic Words with Mode 1 Non-Cyclic data (with or without consistency) is the same data format as used on Mentor II and Commander SE. Each cyclic data word is mapped to a Unidrive parameter with default mappings as shown in the table below. Cyclic Channel IN Word 0 IN Word 1 IN Word 2 IN Word 3 OUT Word 0 OUT Word 1 OUT Word 2 OUT Word 3 Default Mapping Status Non-cyclic data word Status word Post-ramp speed reference Motor active current Non-cyclic data word Control word Digital speed reference 1 Torque reference
4.5
Network Status
Unidrive: #20.50 The status of the Profibus-DP network is displayed in #20.50, and can be viewed on the display on the Unidrive. #20.50 >0 Status Network healthy Description
Indicates the number of network cycles per second, and the slave is exchanging data with the master controller. Network is Indicates that the network is not currently not running running.
Issue Number: 3
15
4.6
NOTE
Changes to #17.PP parameters in the Unidrive do not take effect until the UD70 has been reset. See section 4.7.
4.7
NOTE
Resetting the UD70 does not store the #20.PP configuration parameters, so these changes will be lost when the Unidrive is powered down. See section 5.6.2 for details on storing UD70 parameters.
16
Issue Number: 3
5
NOTE
Cyclic Data
OUT data and IN data describe the direction of data transfer as seen by the PLC scanner.
5.1
NOTE
The mapping configuration cannot be changed dynamically, as the UD70 must be reset before changes to the mapping become active.
5.2
Issue Number: 3
17
5.3
5.4
NOTE
#20.01 to #20.20, and #20.50 are all reserved for Profibus-DP set-up and configuration, and should not be used in DPL programs. The default mapping values are shown in the table below. Cyclic Channel IN Word 0 IN Word 1 IN Word 2 IN Word 3 OUT Word 0 OUT Word 1 OUT Word 2 OUT Word 3 Mapping Default Mapping Status Parameter ---#20.07 #20.03 #20.04 ---#20.06 #20.01 #20.02 Reserved for the non-cyclic data #90.11, fieldbus status word #2.01, post-ramp speed reference #4.02, torque-producing current Reserved for the non-cyclic data #90.11, fieldbus control word #1.21, digital speed reference 1 #4.08, torque reference
NOTE
If a mapping parameter is set to an invalid value, e.g. destination parameter is read only, or parameter does not exist, the Unidrive will reset the mapping parameter (#20.PP) to its default value. If a cyclic channel is not required, setting the mapping value to -1 will disable it. The data word will still be transmitted over the network, but the data value will not be written to any Unidrive parameter.
18
Issue Number: 3
NOTE
The cyclic data channels do not use decimal points. For example, the digital speed reference 1 (#1.21) has units of Hertz, accurate to 1 decimal place. To write a value of 24.6Hz to #1.21, the value must be transmitted as 246.
5.5
NOTE
If the mapping for both cyclic channel 2 and cyclic channel 3 are directed to 32 bit registers, only the low 16 bits of each register will be written to or read from.
5.6
Storing Parameters
Although any changes to the mapping will take effect after a UD70 reset sequence, the new values must be stored in non -volatile memory if they are to be restored automatically when the Interface is next powered up.
5.6.1
Issue Number: 3
19
will retain all values in menu 1 through menu 19 when the Unidrive is next powered up.
5.6.2
5.7
Mapping Conflicts
When the mapping parameters for the Profibus-DP cyclic channels are set, care must be taken to ensure that there are no clashes with the mapping of the analogue and digital inputs within the Unidrive. The Unidrive Profibus-DP interface will not indicate any conflict of mapping parameters. This only applies to analogue and digital inputs, and OUT data on the Profibus-DP network. If a numerical parameter is written to from two different sources, the value of this parameter will depend entirely upon the sca n times for the analogue or digital input and the Profibus-DP network. Further confusion may be caused due to the update rate of the display. A parameter may appear to be steady at a particular value, but occasionally glitch in the value will be seen. In reality, this value may be changing continuously, leading to erratic behaviour. Function Analogue I/P 1 Analogue I/P 2 Analogue I/P 3 Digital I/P 1 Digital I/P 2 Digital I/P 3 Digital I/P 4 Digital I/P 5 Digital I/P 6 Logic O/P 1 Mapping Parameter #7.10 #7.14 #7.18 #8.10 #8.13 #8.16 #8.19 #8.21 #8.23 #9.10 Function Logic O/P 2 Motorised Pot O/P Binary Summer Comparator 1 O/P Comparator 2 O/P Reference Input PID O/P Cyclic OUT Word 1 Cyclic OUT Word 2 Cyclic OUT Word 3 Mapping Parameter #9.20 #9.25 #9.33 #12.07 #12.17 #13.06 #14.16 #20.06 #20.01 #20.02
Ensure that each Unidrive parameter in the table above has a different value programmed. A value of 0 will disable analogue and digital inputs, and -1 will disable the cyclic data channels.
20
Issue Number: 3
5.7.1
5.8
NOTE
b7 #18.31
b6 #1.46
b5 #1.45
b4 TRIP
b3 RUN REV
b2 JOG
b1 RUN FWD
b0 ENABLE
The bits shown as Mx are individual mask bits that allow the corresponding "bx to be masked, i.e. the MASK bits determine whether or not the data bit is written through to the corresponding parameter.
Issue Number: 3
21
0 0 0 0 0 0 1 1 1 1 1
If mask bits M0 and M1 are set to 1, ENABLE and RUN FWD are updated with the values of b0 and b1 (either 0 or 1) every time the control word value is received. JOG and RUN REV will not be updated, even if the values of b2 and b3 change, because their mask bits (M2 and M3) are not set to 1. If M0 and M1 are reset to 0, the values in b0 and b1 will NOT be written to ENABLE and RUN FWD, and these parameters will remain set to their current state. The TRIP bit (b4) will cause a tr52 trip when set to 1, but the trip cannot be cleared until the TRIP bit (b4) has been reset to 0. Parameters #18.31 to #18.33 are general user parameters and do not have mask bits. Bit 0 Function Description ENABLE Set to 1 to put the Unidrive in READY mode. (The hardware ENABLE must also be present.) The RUN FWD, JOG and RUN REV bits will have no effect unless the ENABLE bit is set to 1. The Unidrive outputs are disabled immediately when the ENABLE bit is reset to 0, and the motor will coast to stop RUN Set to 1 to run the motor in the forwards direction. FWD Reset to 0 to decelerate the motor to a controlled stop before the Unidrive output stage is disabled JOG Set to 1 with RUN FWD or RUN REV bit also set to jog the motor in the appropriate direction. The Unidrive will ramp the motor to the normal speed or stop when the JOG bit is reset to 0, depending on the status of the RUN FWD and RUN REV bits.
22
Issue Number: 3
4 5 6 7 8 9 10 11 12 13 14 15
Set to 1 to run the motor in the reverse direction. When reset to 0, the Unidrive will decelerate the motor to stop before the outputs are disabled Set to 1 to trip the Unidrive on tr52. The TRIP bit must be reset to 0 before the Unidrive can be reset. Preset Reference Select. These bits are used to select the digital speed references used. Refer to the Unidrive User Guide for more information. User application bit User application bit ENABLE mask bit RUN FWD mask bit JOG mask bit RUN REV mask bit User application bit Mask bits for the Preset Reference Select bits
Some example control words for Wire-Proof PLC mode are given in the table below. b15-b12 0000 0001 0001 0001 0001 b11-b8 0010 1110 1110 1110 1110 b7-b4 0000 0000 0000 0000 0000 b3-b0 0000 0001 0011 1001 1101 Value 0x0200 0x1E01 0x1E03 0x1E09 0x1E0C Action Drive disable Enabled + stopped Enabled + run fwd Enabled + run rev Enabled + jog rev
5.9
b7
b6
b5
b4
b3
b2
b1
b0
#10.08 #10.07 #10.06 #10.05 #10.04 #10.03 #10.02 #10.01 The table below shows the particular status of the Unidrive indicated by each bit when set to 1.
Issue Number: 3
23
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Parameter #10.01 #10.02 #10.03 #10.04 #10.05 #10.06 #10.07 #10.08 #10.09 #10.10 #10.11 #10.12 #10.13 #10.14 #10.15
Description Drive healthy Drive running Zero speed Running at or below min speed Below set speed At speed Above set speed Load reached In current limit Regenerating Dynamic brake active Dynamic brake alarm Direction commanded Direction running Mains Loss Not used
5.10
24
Issue Number: 3
NOTE
The non-cyclic data channel does not use decimal points. For example, the digital speed reference 1 (#1.21) has units of Hertz, accurate to 1 decimal place. To write a value of 24.6Hz to #1.21, the value must be transmitted as 246.
6.1
Stamp number
b7
b6
b5
b4
b3
b2
b1
b0
Data byte
NOTE
If little endian data format has been selected, the bytes that form the non-cyclic data word MUST be swapped BEFORE the non-cyclic data word is transferred to the Profibus. See section 9.5.
Issue Number: 3
25
Bit 0 to 7
Function Data
Values 0 to 255
Description Depending on the stamp number of the telegram, this byte contains the menu or parameter number, or data high or low byte. Indicates the stamp number of the word. This shows which part of the message is currently in progress. Setting the stamp number to 0 resets the internal non-cyclic sate machine These should be set to 0.
8 to 11
Stamp number
0 to 4
0 = Data OK Indicates the success or failure of the message. Failure could occur if the 1 = Error parameter does not exist, or is a read-only or write-only parameter. 0 = Write 1 = Read Defines whether the data word is part of a READ or WRITE cycle is in progress.
15
R/W
NOTE
X = dont care. Generally, these bits should be set to 0. If a message is aborted part way through, the non-cyclic OUT word should be reset to 0. This will reset the non-cyclic state machine, and allow the message sequence to be restarted.
26
Issue Number: 3
6.1.1
Define menu number. Define parameter number. Request high data byte. Request low data byte.
Send telegram 3 to OUT word 0
READ
Read IN word 0
Read IN word 0
Tx_Stamp_No = Rx_Stamp_No? Yes No Store data byte Send next telegram to OUT word 0
No
ERROR. Check paramter exists, data is in correct range, and parameter is Read/Write
END OF SEQUENCE
The following example telegrams show how to read the data value from #3.02 in the Unidrive.
TELEGRAM 1
The first telegram from the master indicates a READ cycle, and the stamp number is 1. The data byte would contain the menu number for the parameter that is to be read. Bit Value b15-b12 1XXX b11-b8 0001 Stamp number = 1 b7-b4 0000 Menu = 3 b3-b0 0011
When the first telegram has been received and processed in the slave node, it is mirrored in the non-cyclic IN word back to the PLC. This is the signal to the master controller program that the first telegram of the message has been received and understood, and the second telegram can be transmitted.
Issue Number: 3
27
TELEGRAM 2
The second telegram from the master also indicates a READ cycle, but the stamp number is now 2. The data byte would contain the parameter number for the parameter that is to read. Bit Value b15-b12 1XXX b11-b8 0010 Stamp number = 2 b7-b4 0000 b3-b0 0010
Parameter = 2
When the second telegram has been received and processed in the slave node, it is mirrored in the non-cyclic IN word. This is the signal to the master controller program that the second telegram of the message has been received and understood, and the third telegram can be transmitted.
TELEGRAM 3
The third telegram from the master acts as the indication to the slave node to send the data high byte from the requested parameter. The data byte is not used in this telegram, and should be set to 0. Bit Value b15-b12 1XXX b11-b8 0011 Stamp number = 3 b7-b4 XXXX b3-b0 XXXX
When the third telegram has been received and processed in the slave node, the node will mirror the stamp number in the non-cyclic IN word, and load the high byte of the parameter value into the data byte. Bit Value b15-b12 10XX b11-b8 0011 Stamp number = 3 b7-b4 0000 b3-b0 0101
If an invalid parameter was specified in telegrams 1 and 2, e.g. parameter is write only, or does not exist, the Profibus-DP interface will set the ERROR bit to 1 (b14 = 1). The data bits will have no significance. Bit Value b15-b12 11XX b11-b8 0010 Stamp number = 2 b7-b4 XXXX b3-b0 XXXX
If an error is reported, it is recommended that the non-cyclic data word is set to 0 to ensure that the non-cyclic state machine is completely reset, and ready for the next non-cyclic READ or WRITE sequence.
28
Issue Number: 3
TELEGRAM 4
The fourth telegram from the master acts as the indication to the slave node to send the data high byte from the requested parameter. The data byte is not used in this telegram and should be set to 0. Bit Value b15-b12 1XXX b11-b8 0100 Stamp number = 4 b7-b4 XXXX b3-b0 XXXX
When the fourth telegram has been received and processed in the slave node, the node will mirror the stamp number in the non-cyclic IN word, and load the low byte of the parameter value into the data byte. Bit Value b15-b12 1XXX b11-b8 0100 Stamp number = 4 b7-b4 1101 b3-b0 1100
= (high data byte * 256) + low data byte = (0x05 * 0x100) + 0xDC = 0x05DC = 1500 rpm
6.1.2
Define menu number. Define parameter number. Set data high byte. Set data low byte.
WRITE
Read IN word 0 Check status 1 of ERR bit Tx_Stamp_No = Rx_Stamp_No? Yes Tx_Stamp_No = 4? Yes No No Parameter written OK ERROR Check paramter exists, and that it is a Read/Write parameter
END OF SEQUENCE
Issue Number: 3
29
The following example telegrams show how to write a value of 120.0 Hz (0x04B0) to #1.21 in the Unidrive.
TELEGRAM 1
The first telegram from the master indicates a WRITE cycle by setting the R/W bit to 0. The stamp number is set to 1. The data byte contains the menu number for the parameter that is to be written to. Bit Value b15-b12 0XXX b11-b8 0001 Stamp number = 1 b7-b4 0000 Menu = 1 b3-b0 0001
When the first telegram has been received and processed in the slave node, it is mirrored in the non-cyclic IN word. This is the signal to the master controller program that the first telegram of the message has been received and understood, and the second telegram can be transmitted.
TELEGRAM 2
The second telegram from the master also indicates a WRITE cycle, but the stamp number is now set to 2. The data byte contains the parameter number for the parameter that is to be written to. Bit Value b15-b12 0XXX b11-b8 0010 Stamp number = 2 b7-b4 0001 b3-b0 0101
Parameter = 21
When the second telegram has been received and processed in the slave node, it is mirrored in the non-cyclic IN word. This is the signal to the master controller program that the second telegram of the message has been received and understood, and the third telegram can be transmitted.
TELEGRAM 3
The third telegram from the master has the stamp number set to 3. The data bits contain the data high byte for the parameter being written to. Bit Value b15-b12 0XXX b11-b8 0011 Stamp number = 3 b7-b4 0000 b3-b0 0100
When the third telegram has been received and processed in the slave node, it is mirrored in the non-cyclic IN word. This is the signal to the master controller program that the third telegram of the message has been received and understood, and the fourth telegram can be transmitted.
30
Issue Number: 3
TELEGRAM 4
The fourth telegram from the master has the stamp number set to 4. The data bits contain the data low byte for the parameter that is being written to. Bit Value b15-b12 0XXX b11-b8 0100 Stamp number = 4 b7-b4 1011 b3-b0 0000
When the fourth telegram has been received and processed in the slave node, it will write the data (#1.21 = 1200) as transmitted, ignoring the decimal point. If the operation is successful, the ERR bit is reset to 0 and the telegram is reflected in the non-cyclic IN word. Bit Value b15-b12 00XX b11-b8 0100 Stamp number = 4 b7-b4 1011 b3-b0 0000
If there was a problem with writing the data to the defined parameter, e.g. parameter is read only, does not exist, or data is out of range, the ERR bit is set to 1. Bit Value b15-b12 01XX b11-b8 0100 Stamp number = 4 b7-b4 XXXX b3-b0 XXXX
6.2
Issue Number: 3
31
#20.11
200
0 0 0
Trip Delay Time (ms) Specifies the time-out period for the ProfibusDP network. If no network messages are received in this time period, the network loss trip is invoked. (See section 9.1) Endian Format Select See section 9.5 Network Loss Trip Enable UD70 Store and Reset
The parameters listed in the table below return information about the Profibus-DP interface. Writing to these parameters will not affect the operation of the node. Param #20.14 Description Option ID Code Indicates the fieldbus type, flavour and hardware version. (See section 8.1) Software Version Vxx.yy Indicates the firmware version fitted to the Profibus-DP interface. (See section 8.2) Fieldbus Diagnostic Indicates the number of message being processed by the Unidrive Profibus-DP. (See section 8.6) System File Version (See section 8.3)
#20.15
#20.50
#17.02
All parameters from #20.01 to #20.20 are reserved for use to configure new features that may be added in future updates of the Unidrive Profibus-DP interface. Unpredictable behaviour of the Profibus-DP interface may result if these parameters are used for other purposes.
32
Issue Number: 3
7
7.1
GSD Files
What are GSD Files?
GSD files are text files that are used with the Profibus-DP network configuration software. They contain information about the device capabilities, such as supported data rates, delay timings, supported data formats, etc. GSD files are not actually downloaded to the PLC or scanner. The information they contain is used when the network configuration file is generated, but they are necessary and are only used during network configuration. They must usually be installed into the network configuration software, or copied to a specific directory. Refer to the software documentation for instructions about installing GSD files. Control Techniques cannot offer specific technical support on any of the software packages available for configuring Profibus-DP networks.
NOTE
A device cannot be included in the configuration for a Profibus-DP network without an associated GSD file.
7.2
Issue Number: 3
33
7.3
Data Consistency
Data consistency provides a method of ensuring that all data is updated at the same time, thus preventing any form of data skew. Using data consistency can often put restrictions on data manipulation within the master controller, and require data bytes or words to be written in a certain order. Using data consistency can increase the master controller cycle time, so it should only be used if really necessary. (See section 5.2).
7.4
When the master initialises the network, it will transmit the configuration byte to each slave. If the configuration byte matches one of the three modes above, the slave will automatically configure itself for this type of data. If the telegram does not match any of the above data formats, the node will not be initialised and the master will indicate that there is an error on the network.
34
Issue Number: 3
8
NOTE
Diagnostics
The information from the parameters described below should always be noted before contacting Control Techniques for technical support.
8.1
Fieldbus Code
Unidrive: #20.14 The fieldbus code identifies the hardware level in the Profibus-DP interface. This information is vital when trying to determine what upgrades can be performed on older modules. The identification of the high-speed communications option module can be read from #20.14 on the Unidrive display. This number is shown in the form XYZ, where X is the fieldbus type, Y is the fieldbus flavour, and Z is the hardware revision level. #20.14 100 Fieldbus Type 1 (Profibus) Fieldbus Flavour 0 (DP) Hardware Revision 0 (UD73A Issue 1 and UD73B Issue 1)
8.2
Firmware Version
Unidrive: #20.15 The version of firmware fitted to the Profibus-DP interface can be read from #20.15. The Hardware Revision column shows the hardware levels that can accept each version of firmware. #20.15 202 204 205 Firmware Version V2.02.00 V2.04.00 V2.05.00 Hardware Revision 0 0 0
Issue Number: 3
35
8.3
NOTE
System files can be downloaded using the WINFLASHER utility, which can be obtained from you local Drive Centre.
8.4
Node Address
Unidrive: #20.05 Every Profibus-DP node must be assigned a unique node address. If two or more nodes have the same address, this will cause a conflict when the master attempts to initialise the network. Ideally, the node address should be configured on each node BEFORE any attempt is made to connect it to the network.
8.5
36
Issue Number: 3
8.6
Network Status
Unidrive: #20.50 #20.50 on Unidrive indicates the number of valid messages per second being received by the node. The Profibus-DP network master controller addresses every node on the network once per network cycle, and exchanges the configured amount of information. If a network has been correctly wired, screened and terminated, there will be very few errors occurring, and the number of messages per second displayed on each node should be the same. #20.50 is only updated once per second.
8.7
No Data Transfer
If data is not being transferred from the master controller to the Unidrive, make the following checks: The mapping parameters have been programmed correctly. If an invalid mapping was entered, it will have been reset to 0. Check that there are no mapping parameter conflicts, i.e. an analogue input is not trying to control the same parameter as a cyclic OUT channels.
8.8
tr57 tr60
See section 9.3 for details on how to reset the Unidrive using the Profibus-DP network.
Issue Number: 3
37
9
9.1
Advanced Features
Network Loss Trip
Unidrive: 0 = trip disabled #20.11 16 to 992 = trip delay time (in ms) The Profibus-DP interface counts the number of valid network cycles received in a time period specified by #20.11. The trip is triggered if no messages are received in a given sample period, and messages were received in the previous sample period. The default setting for #20.11 is 48ms. The UD70 Global Run-Time Trips also have to be enabled by setting #17.14 to 1.
Sample points Messages per sec #20.11
As can be seen from the diagram, the actual time from network loss to Unidrive trip will range from #20.11 ms to 2 * #20.11 ms. If the trip time is set too low, spurious network loss trips may be seen. The actual network loss trip time depends entirely on the number of messages per second being received under normal operation. As a rough guide, the network loss trip time (#20.11) should be set such that a minimum of 5 messages will be received in any given sample period under normal operating conditions.
NOTE
The network loss trip delay is specified in ms, but the time set will be rounded up to the nearest multiple of 16ms. Hence, if the time delay is set to 100ms, this will be rounded up to 112ms.
38
Issue Number: 3
9.2
the display will show "Inh" when set at 0, and depends on #6.30 and #6.32 when set to 1. Setting #6.15 to 0 overrides #6.30 and #6.32, and immediately disables the Unidrive. The motor will coast to rest if it is running when the Unidrive is disabled. the jog bit must be set, along with the appropriate run and direction signals.
JOG
To reset the Unidrive using the Profibus-DP network, use the non-cyclic channel to set #10.38 to 100. The Unidrive will clear #10.38 back to 0 and reset. (See Unidrive manual for more information.) Some example control word values for the Unidrive are given in the tables below. b15b12 0000 0001 0001 0001 0001 b11-b8 0010 1110 1110 1110 1110 b7-b4 0000 0000 0000 0000 0000 b3b0 0000 0001 0011 1011 1111 Value 0x0200 0x1E01 0x1E03 0x1E0B 0x1E07 Action (PLC mode) Drive disable Enabled + stopped Enabled + run fwd Enabled + run rev Enabled + jog rev
Issue Number: 3
39
9.3
9.3.1
By default, #10.33 is directly controlled by digital input 2. This must be disabled by setting the mapping parameter for digital input 2 (#8.13) to another value. If the terminal reset function is required in addition to a fieldbus reset function, logic function 1 or 2 can be configured as an OR function of the fieldbus and terminal reset signals. The parameter settings for menu 9 to implement this are shown below. Parameter #8.13 #9.04 (#9.14) #9.05 (#9.15) #9.06 (#9.16) Value <> 10.33 18.31 1 8.02 Parameter #9.07 #9.08 #9.09 #9.10 (#9.17) (#9.18) (#9.19) (#9.20) Value 1 1 0.0 10.33
NOTE
The Unidrive may need to be reset several times if multiple trips have occurred. As the reset will only occur on a 0 -1 transition of #10.33, the master controller should toggle the RESET bit until Drive Healthy (bit 0 of the status word) goes to 1.
9.3.2
40
Issue Number: 3
9.3.3
; check for 0 to 1 transition of RESET bit IF reset% = 1 AND old_reset% = 0 THEN ; set #10.38 to 100 until Drive Healthy bit is set DO #10.38 = 100 LOOP WHILE #10.01 = 0 ENDIF old_reset% = reset% } ; store current state of RESET signal
If another trip condition occurs while the Unidrive is tripped, the Unidrive must be reset twice before all trips are cleared. This is achieved by using the DO...WHILE loop until the Drive Healthy bit (#10.01) is set. The DPL program will also be reset, and the INITIAL task will run when the reset sequence ins complete.
NOTE
If a run-time (program) error occurs in the UD70, the DPL program will stop, and the master controller will not be able to reset the Unidrive using the Profibus-DP network. In this case, the Unidrive node can only be reset using non-cyclic data to access #10.38.
9.4
NOTE
The Unidrive Profibus-DP interface will take approximately 700ms to complete the reset sequence, after which the network can be restarted.
Issue Number: 3
41
9.5
Endian Format
Unidrive: 0 = big endian #20.13 1 = little endian The Unidrive uses word (16-bit) format, but the master controller must split each word into 2 bytes (high byte and low byte) for transmission over the Profibus. The "endian format" defines whether the high byte or low byte is transmitted first. Provided that the master controller and slave device are using the same endian format, the data word value will be reconstructed correctly. The Unidrive Profibus-DP interface uses big endian format by default, where the high byte is transmitted first, followed by the low byte. However, some master controllers use little endian format. This results in "byte swapping" when the data value is reconstructed at the other end of the network. For example, a value of 0x0102 (258 decimal) may be reconstructed as 0x0201 or 513 decimal. If #20.13 is set to 1, the Unidrive Profibus-DP interface will treat all data received as little endian, and use the first byte received as the low byte of the data word.
NOTE
With firmware V2.05.00 and earlier, the bytes for the non-cyclic data word are NOT swapped. To use non-cyclic data in little endian data mode, the bytes for each non-cyclic telegram must be swapped BEFORE they are transferred to the Profibus.
9.6
Care must be taken not to put too much code in the EVENT task. It has a higher priority than all other UD70 tasks except the INITIAL task, so an extended EVENT task could easily prevent the SPEED task from running, and cause the UD70 to trip on tr54.
NOTE
This feature is only available with system file V2.07.06 or later.
42
Issue Number: 3
9.7
Multi-Master Networks
Profibus-DP networks can operate with more than one master device connected to the same lines. Commander SE, Unidrive and Mentor II Profibus-DP interfaces can all operate on multi-master networks, but each device can only be assigned to one of the master devices. Consult the supplier of your master controller for more details about implementing multi-master Profibus-DP networks.
Issue Number: 3
43
10
10.1
Quick Reference
Complete Parameter Reference
Parameter #20.01 #20.02 #20.03 #20.04 #20.05 #20.06 #20.07 #20.11 #20.13 #20.14 #20.15 #20.50 #17.02 #17.14 #17.19 #20.08 #20.09 #20.10 #20.12 #20.16 #20.17 #20.18 #20.19 #20.20 Default 121 408 201 402 0 9011 9011 48 0 ------------0 0 0 0 0 0 0 0 0 0 0 Description OUT Channel 2 Mapping OUT Channel 3 Mapping IN Channel 2 Mapping IN Channel 3 Mapping Node Address OUT Channel 1 Mapping IN Channel 1 Mapping Trip Delay Time (ms) Data Endian Format Option ID Code (Read only) Firmware Version XXYY, where the firmware version is VXX.YY.ZZ (Read only) Fieldbus Diagnostic (Read only) System File Version (Read only) Network Loss Trip Enable UD70 Store and Reset Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
10.2
44
Issue Number: 3
10.3
b7 #18.31
b6 #1.46
b5 #1.45
b4 TRIP
b3 RUN REV
b2 JOG
b1 RUN FWD
b0 ENABLE
Bit 0
Function Description ENABLE Set to 1 to put the Unidrive in READY mode. (The hardware ENABLE must also be present.) The RUN FWD, JOG and RUN REV bits will have no effect unless the ENABLE bit is set to 1. The Unidrive outputs are disabled immediately when the ENABLE bit is reset to 0, and the motor will coast to stop RUN Set to 1 to run the motor in the forwards direction. FWD Reset to 0 to decelerate the motor to a controlled stop before the Unidrive output stage is disabled JOG Set to 1 with RUN FWD or RUN REV bit also set to jog the motor in the appropriate direction. The Unidrive will ramp the motor to the normal speed or stop when the JOG bit is reset to 0, depending on the status of the RUN FWD and RUN REV bits. RUN Set to 1 to run the motor in the reverse direction. REV When reset to 0, the Unidrive will decelerate the motor to stop before the outputs are disabled TRIP Set to 1 to trip the Unidrive on tr52. The TRIP bit must be reset to 0 before the Unidrive can be reset. Preset Reference Select. These bits are used to #1.45 select the digital speed references used. Refer to #1.46 the Unidrive User Guide for more information. #18.31 User application bit #18.32 User application bit M0 ENABLE mask bit M1 RUN FWD mask bit M2 JOG mask bit M3 RUN REV mask bit #18.33 User application bit Mask bits for the Preset Reference Select bits M5 M6
4 5 6 7 8 9 10 11 12 13 14 15
Issue Number: 3
45
10.4
b7
b6
b5
b4
b3
b2
b1
b0
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Parameter #10.01 #10.02 #10.03 #10.04 #10.05 #10.06 #10.07 #10.08 #10.09 #10.10 #10.11 #10.12 #10.13 #10.14 #10.15 X
Description Drive healthy Drive running Zero speed Running at or below min speed Below set speed At speed Above set speed Load reached In current limit Regenerating Dynamic brake active Dynamic brake alarm Direction commanded Direction running Mains Loss Not used
46
Issue Number: 3
10.5
tr57 tr60
Issue Number: 3
47