Technical data

Drive functions
7.3 Function modules
Function Manual
Function Manual, 06/2012, 6SL3097-4AB10-0BP4
297
Example 4: Interconnecting the PROFIBUS send word (DWORD)
The output of the free function block LIM 1 (CO: r20234, function diagram 7260) is to be
interconnected with a PZD send word (function diagram 2470) of data type DWORD.
The input of the free function block LIM 1 is supplied with a fixed speed setpoint (p1002,
function diagram 3010).
LIM 1 Output Y
LIM 1 Runtime group
p20242 = 0
LIM 1 Input X
LIM 1 Upper limit value LU
p20237 = 2 .0
Fixed speed setpoint 2
p1002 [D] = 5400 .0 [1/min ]
LIM 1 Run sequence
p20243 (650 )
LIM 1 Lower limit value LL
p20238 = -2 .0
PZD -Send word 1
PZD -Send word 2
PZD -Send word 3
PZD -Send word 4
x1 * x 2
4000 0000 hex
x1
x2
r20239
r2063[1]
XY
LU
LL QL
QU
(0)
p20236
DWORD
20239
p2061[1]
p1002[D]
Figure 7-71 Example 4: Interconnecting the PROFIBUS send word (DWORD)
The PROFIBUS process data of data type DWORD (32 bits) has the reference variable
4000 0000 hex. At the outputs of the free function blocks, this reference variable is
equivalent to 1.0. Parameter r2063 is only updated when cyclic data exchange actually takes
place on PROFIBUS.
Assumption:
p20000[0] = 1002
Call runtime group 0 with the sampling time 2 x r20003. The runtime group number zero
was chosen at random.
p1002 = 5400 rpm
p2000 = 3000 rpm
Result:
Output value of LIM 1: r20239 = 5400 rpm/3000 rpm = 1.8
r2063[1] = X1 x X2 = 1.8 x 4000 0000 hex = 7333 3333 hex