Function Blocks PSx-3__-PN
11
To the input “Drive” (type IN_OUT) the variable of the type “DRIVE_DATA” has to be
connected which is provided for this axis.
The input EN and the output ENO of each function block may stay unconnected.
The inputs and outputs “Drive”, “EN” and “ENO” are not listed any more separately in the
following descriptions of the particular function blocks.
5.6
Lockings between the function blocks
The function blocks partly are locked against each other. Thereby it’s ensured e.g. that not two
accesses out of different function blocks can be executed simultaneously on the parameter
channel of an axis.
The following rules apply:
In case the input “Release” of MC_Move is set, the function blocks
MC_Parametrization and MC_ PosParametrization cannot be activated (setting of
“Execute” results in error 16#x100).
In contrast it is possible to call MC_ReadParameter or MC_WriteParameter during a
movement (e.g. in order to read out the actual value of the torque or to change the
target speed during a run).
In case the input “Execute” of MC_Parametrization or MC_ PosParametrization is set ,
the function block MC_Move cannot be activated (setting of “Release” results in error
16#1100).
Always only one of the function blocks MC_ReadParameter, MC_WriteParameter,
MC_Parametrization or MC_ PosParametrization can be active. If the input
“Execute”
of one of these function blocks is already
set and the input “Execute” of a further
function block is set, this one will report error 16#x100.
The function block MC_Error can always be activated, independently of the other
function blocks.
5.7
Example
The following example shall explane the procedure of involving the function blocks:
In the project three drives are located. Each drive shall be controlled by a function block
MC_Move, additionally it shall be possible to determine the state of each drive with MC_Error
and it shall be possible for each drive to execute any read and write access.
According chapter 5.2 for this purpose we copy the following blocks out of the library into the
project of the user:
When using the library version for Step 7 Classic V5.5:
Copy into
“S7 Program
Blocks
”:
FB116 (“LIB IN/OUT”)
DB116 (“DB_LIB_IN/OUT”)
UDT110 (“DRIVE_DATA”)
SFB4 (“TON”)