Drive functions
7.3 Function modules
Example 3: Interconnecting the PROFIBUS receive word (WORD)
The PZD receive word 2 (CO: r2050[1], function diagram 2460) is to be interconnected with
the free function block ADD 0 (function diagram 7220).
PZD -Receive word
PZD -Receive word
PZD -Receive word
Figure 7-70
The PROFIBUS process data of data type WORD (16 bits) has the reference variable 4000
hex. At the inputs of the free function blocks, this reference variable is equivalent to 1.0.
Assumption:
● p20096 = 0
● p20000[0] = 1002
● PROFIBUS receive word 2: r2050[1] = 6000 hex
Result:
● r20095 = (6000 hex/4000 hex) x 1.0 = 1.5
296
1
r2050 [ 0 ]
2
r2050 [ 1 ]
3
4000 hex
Example 3: Interconnecting the PROFIBUS receive word (WORD)
Assign function block ADD 0 to runtime group 0.
Call runtime group 0 with the sampling time 2 x r20003. The runtime group number zero
was chosen at random.
ADD 0 Input X
0
p20094 [0 ]
1024
x 1
ADD 0 Input X
1
x1
p20094 [1 ]
x 2
x2
(0)
ADD 0 Input X
2
p20094 [2 ]
(0)
ADD 0 Input X
3
p20094 [3 ]
(0)
ADD 0 Runtime group
p20096 = 0
X 0
X 1
ADD 0 Output Y
Y
+
r20095
X 2
X 3
Function Manual, 01/2011, 6SL3097-4AB10-0BP3
Function Manual