Profibus Manual
Profibus Manual
Table of Contents
1. Introduction........................................................................... 2
2. Cyclical Data Exchange ....................................................... 3
3. PIV Interface......................................................................... 4
4. Calculating the Actual Values .............................................. 6
5. Diagnostic Messages ........................................................... 8
6. Digital Inputs......................................................................... 9
7. Project Planning of the "Thyro-P" DP Slave....................... 10
8. Annex ................................................................................. 14
1. Introduction
This communications card adds the Profibus-DP communications interface to the Thyro-P (thyristor
power controller). It can be used for integrating the Thyro-P into complex systems using the fieldbus.
In addition, there are 4 digital electrically isolated inputs on the card (see section 6). These can be
accessed via terminal X21.
The Profibus connection uses a 9-pin sub D socket (X20). It provides data lines A and B as well as an
electrically isolated supply voltage (5 V, 80 mA).
Cyclical data traffic is used for transmitting the input and output data. The cyclical data traffic has been
expanded by a parameter identifier value (PIV) mechanism for transmitting acyclical data (see
section 3).
Output data
The "master setpoint" is transmitted with the output data. It can be used for load power control or
regulation. Additionally the "Setpoint master error " is transferred. This desired value is used in case of
failure of the profibus.
Octet Purpose
1 Parameter PIV interface
2 identifier
3 Parameter value
4
5 Setpoint master
6
7 Setpoint master error
8
Table 2.1 Cyclical data master
Input data
Actual values (voltage, current, etc.) can be transferred with the input data. However, not all values are
always required. Consequently, in order to reduce the transmission time, it has been made possible to
select which parameters are to be transferred (see section 7).
Octet Purpose
1 Parameter PIV interface
2 identifier
3 Parameter value
4
5 4 digital inputs
Cyclical data traffic is supplemented by the PIV (parameter identifier value) interface for transmitting
acyclical data. The master can use this interface for reading and editing the process parameters. The
PIV interface comprises the following parts:
The master signals the type of order to the slave using the OI (order identifier). The slave responds
with the response identifier when it has carried out the order (see Table 3.2).
OI FUNCTION
MASTER SLAVE
0 No order No order
1 Request parameter Transmit parameter
2 Edit parameter Inadmissible OI
3 Illegal PNU.
4 Parameter cannot be altered
Table 3.2 Order response identifier
The master uses the toggle bit TO to indicate that there is a new order. In response, the slave
performs the order and then changes the toggle bit TO (TOs = TOm) to indicate that the order has
been carried out. The master cannot send a new order until this happens.
This method ensures that each order initiated by the master is processed correctly. Figure 3.1 shows
the sequence of events.
( TOm ) ( TOs )
Master Slave
Unable to process
Response_1
(1) request
The "No order" order should be processed first after the slave is initialised (restarted) in order to
initialise the toggle bit in the slave. This ensures that the first order is processed correctly.
The PNU is used for selecting the desired parameter value. Refer to the Annex for the table of
parameters with the PNU, value range and identifier. Please refer to the "Thyro-P" instructions for
more information about the individual values.
Parameter value
The parameter value of the master is ignored in the "Request parameter" order. Once the order has
been processed correctly, the current value is sent continuously with cyclical data traffic until a new
order is sent. This makes it possible to transmit a further value cyclically via the PIV interface.
The parameter value is transmitted to the power controller when the "Edit parameter" order is sent,
provided it is admissible for the parameter to be changed. Then, the content of the PNU is transmitted
continuously with cyclical data traffic (as for "Request parameter").
4. Calculating the Actual Values
The voltage, current and power values are normalised and transmitted in LSB. The following
conversions must be performed in order to obtain the values in volts, amps or watts:
Current
Ieff_1 = Ieff_LSB_L1 * I_TYP / I_TYP_LSB [A]
Ieff_2 = Ieff_LSB_L2 * I_TYP / I_TYP_LSB [A]
Ieff_3 = Ieff_LSB_L3 * I_TYP / I_TYP_LSB [A]
Voltage
Ueff_1 = Ueff_LSB_L1 * U_TYP / U_TYP_LSB [U]
Ueff_2 = Ueff_LSB_L2 * U_TYP / U_TYP_LSB [U]
Ueff_3 = Ueff_LSB_L3 * U_TYP / U_TYP_LSB [U]
Power
P1 = Peff_LSB_P1 * P_TYP / P_TYP_LSB [W]
P2 = Peff_LSB_P2 * P_TYP / P_TYP_LSB [W]
P3 = Peff_LSB_P3 * P_TYP / P_TYP_LSB [W]
Ptot = Peff_LSB_Ptot * P_TYP / P_TYP_LSB [W]
Conductance
Geff_1 = Geff_LSB_L1 * I_TYP * U_TYP_LSB / ( I_TYP_LSB * U_TYP * 1024 ) [S]
Geff_1 = Geff_LSB_L1 * I_TYP * U_TYP_LSB / ( I_TYP_LSB * U_TYP * 1024 ) [S]
Geff_1 = Geff_LSB_L1 * I_TYP * U_TYP_LSB / ( I_TYP_LSB * U_TYP * 1024 ) [S]
Temperature
Temp = Temp_LSB_L1 - 1000 / 3.82 [°C]
The values for calculating the power are 32-bit values; this means they have to be calculated from the
16-bit values as follows:
Period 1 == 1 µs
Total setpoint 16383 == 100 %
Actual on-time value 50 == 1s
On-angle alpha 1 == 0.01° el
The slave sends device-related diagnostic information to the master in the event of a fault.
The structure is explained in Table 5.1.
4 bytes are transmitted with the diagnostic message. Each bit corresponds to a signal which displays
the current status of the Thyro-P. Please refer to the Thyro-P instructions for more details about the
individual values.
"Static diagnosis" is triggered if there is a communication malfunction between the Profibus card and
Thyro-P; the "SSC fault" message is transmitted. In this case, no data exchange between the master
and the slave is possible. This fault indicates that the Profibus card is not inserted in its slot correctly,
for example.
6. Digital Inputs
The Profibus card provides four digital inputs via the 9-pin sub D plug (X21). These are automatically
reproduced on the Profibus (see Table 2.2, Octet 5).
X21
Connection with electrical Switch connection without
isolation electrical isolation
M24
5
+24
S2 S1
9
Out 2 IN1
Device with
4
IN3
independent
8
Out 1 IN0
supply
3
IN2
7
M1
2
M2
6
1
This section describes project planning with the "COM PROFIBUS" project planning tool from
Siemens.
First copy the following files into the corresponding folders (see the instructions supplied with the
project planning tool):
• PSS104C0.GSD Device master file
• PSS_R.DIB Normal display
• PSS_D.DIB Diagnostic display
• PSS_S.DIB Display in special operating status
Then start the tool. The following window appears once the project planning for the master has been
completed successfully (Figure 7.1):
It is now possible to assign a new slave to the master. Do this by selecting the product group (on the
right-hand side). The Thyro-P is in the Others group. Enter the slave address after you have placed a
slave under the master (Figure 7.2).
This address must correspond to the address in the Thyro-P thyristor power controller, because the
"modify slave address" function is not supported. Note that the Thyro-P has to be switched off after the
power controller address has been changed before the new address is activated.
This leads you to the "Slave characteristic" window (Figure 7.3) in which you can select the desired
slave, in this case Thyro-P. Then enter a name so as to be able to identify the slave unambiguously
later on.
Now the slave can be configured. Do this by clicking the "Configuration..." button which calls up the
"Configuration" window (Figure 7.4).
The first five modules (0 – 4) are already occupied. Never change these. Table 7.1 provides a more
detailed explanation of their function.
NO. IDENTIFIER SIZE DIRECTION SIGNIFICANCE
0 2AA 2 words Output PIV interface master/slave
1 1AA 1 word Output Setpoint master
2 1AA 1 word Output Setpoint master error
3 2AE 2 words Input PIV interface slave/master
4 8DE 1 byte Input 4 digital inputs (bits 0 – 4)
Table 7.1 Significance of the default settings
The actual values which are to be transmitted cyclically can now be entered from module 5 onwards.
Do this by marking row 5 and clicking the "order number ..." button, which causes the "Auswahl über
Bestellnummer für Slot x" window to appear (Figure 7.5). Please do not be confused by the term
"order number". You do not need additional components for a new module.
After you have selected the desired value (in this case, "Power L1") and clicked the "take over" button,
the value appears in row 5. You can then enter another actual value in row 6. Figure 7.6 shows a
sample configuration.
The cyclical transfer of input data resulting from this setting is shown in Table 7.2.
It is now possible enter the comments, input and output addresses (see the instructions supplied with
the project planning tool).
The link between the master and slave is displayed when the configuration of the Thyro-P has been
completed (Figure 7.7). The symbol shows the status of the Thyro-P, in this case "run-mode".
Figure 7.7 Display of the link between the master and slave
8. Annex
PNU Symbol Name Value range Combo-Opt Unit R/W Default
5 BETR Operating mode 0...4 CYC, VAR, SSSD, r/w CYC
SOFT, Rectifier
6 MOSI Op. of molybdenum silicide rods 0..2 OFF, RAMP, POS r/w OFF
290 -- Real-time clock: Date: Year and Low byte month, r/w 0
month high byte year
291 -- Real-time clock: Date: Day and Low byte hour, r/w 0
hour high byte day
292 -- Real-time clock: Date: Minute and Low byte second, r/w 0
second high byte minute
293 UHR_WRITE_ Setting to 1 enables time to be r/w 0
ENABLE changed
Setting to 0 adopts the time
297 DA_EN_2 Data logger enable register Error bits r/w 65535
298 DA_EN_1 Data logger enable register Error bits r/w 65535