
Manual – MOVITOOLS® - Connection to SIMATIC S7 via MPI
13
3
FC_MoviTools function
Configuration of SIMATIC S7
3.4 FC_MoviTools function
The
FC_MoviTools
proxy function is necessary for operation of MOVITOOLS
®
via MPI.
Depending on the type of CPU and firmware status, you may be able to copy this func-
tion from one of the STEP7 projects supplied by SEW-EURODRIVE. If your CPU sup-
ports DPV1, copy the function in the DPV1 project because all MOVITOOLS
®
applica-
tions are available with DPV1 only.
FC100 is the
FC_MoviTools
number in the sample project. You can use any other FC
number.
The function should be requested once in each program cycle (OB1). Its transfer param-
eter is the DB number of the CDB and (in the version for DPV1 only) the two program
invocation data blocks for the system functions SFB52 (RDREC) and SFB53 (WRREC).
Request struc-
ture
Request structure of the
FC_MoviTools
function for DP CPUs in OB1:
Request structure of the
FC_MoviTools
function for DPV1 CPUs in OB1:
CALL FC100
CommunicationDB := DB10
busy := M1.0
version_error := M1.1
CALL FC100
CommunicationDB := DB10
InstDB_SFB52 := DB52
InstDB_SFB53 := DB53
busy := M1.0
version_error := M1.1
Parameter name Type Interface Description
CommunicationDB BLOCK_DB IN CommunicationDB (CDB) for local function data
InstDB_SFB52 BLOCK_DB IN Instance data blocks for SFB52 (RDREC) in DPV1 communication. Copy this
data block from the SEW sample project or save it in your project as new
instance data block for SFB52.
InstDB_SFB53 BLOCK_DB IN Instance data blocks for SFB53 (WRREC) in DPV1 communication. Copy this
data block from the SEW sample project or save it in your project as new
instance data block for SFB52.
busy BOOL OUT TRUE:
Parameter exchange between MOVITOOLS
®
and SEW-EURODRIVE inverter
active. There may be no other parameter access taking place between the
S7 application program and an SEW-EURODRIVE inverter during this time
period!
FALSE:
No parameter exchange between MOVITOOLS
®
and SEW-EURODRIVE
inverter.
version_error BOOL OUT TRUE:
There is a version conflict between
FC_MoviTools
;, HDB and CDB, i. e. the com-
ponents do not have the same version number. Remedy: Load the blocks with
the same version number into the PLC.
FALSE:
There is no version conflict.
Comentarios a estos manuales