6
6-24
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
6.3.3 FC SNG_FCT
With the FC SNG_FCT you can call the individual settings Creep speed and
Do not evaluate enable input on the FM 351. The FC carries out the follow-
ing actions:
Transfer of the data area SINGLE_FUNCTIONS from the channel DB to
the FM 351.
By calling the FC you set or remove all individual settings according to the
selection from the channel DB.
Calling in LAD Representation Calling in STL Representation
FC SNG_FCT
RET_VAL
EN ENO
DATA_ERR
JP_SNG_F
IN_SNG_F
DB_NO
CALL SNG_FCT(
DB_NO := ,
RET_VAL := ,
DATA_ERR := ,
JP_SNG_F := ,
IN_SNG_F := );
Take note of the following requirements which must be satisfied for calling
the FC SNG_FCT:
The data for the individual settings must be set in the channel DB in the
data area SINGLE_FUNCTIONS. Ensure that all the parameters in the
data area contain correct data.
All the requirements of Chapter 6.3 must be satisfied.
The following table describes the parameters of the function block FC
SNG_FCT.
Name Data Type P Type Meaning
DB_NO BLOCK_DB I Channel DB number.
RET_VAL INT O Return code of the SFC WR_REC.
DATA_ERR BOOL O Data error.
IN_SNG_F BOOL I/O Start: Call individual settings;
TRUE - Data transfer is enabled.
FALSE - When job is finished.
JP_SNG_F BOOL O TRUE - Data transfer is active.
FALSE - Data transfer is terminated.
Parameter types: I = Input Parameter; O = Output Parameter; I/O = In/Out Parameter (start parameter).
Task
Calling Methods
Requirements
Parameter
Description
Programming the FM 351