6
6-27
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
6.3.6 FC TG253_5
With the FC TG253_5 you transfer the Increment 255 and the values for the
switch-off and switchover difference for the incremental operating mode to
the FM 351. The FC carries out the following actions:
Transfer of the values for the Increment 255 to the FM 351.
Transfer of the differences to the FM 351.
Calling in LAD Representation Calling in STL Representation
FC TG253_5
RET_VAL
EN ENO
DATA_ERR
JP_253_5
SL_253_5
DB_NO
IN_253_5
CALL TG253_5(
DB_NO :=,
SL_253_5 :=,
RET_VAL :=,
DATA_ERR :=,
JP_253_5 :=,
IN_253_5 :=);
Take note of the following requirements which must be satisfied for calling
the FC TG253_5:
All the requirements of Chapter 6.3 must be satisfied.
You place the selection for the Increment 255 and the associated differ-
ence values in the relevant DB in the data area TARGET_255.
The following table describes the parameters of the function block
FC TG253_5.
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.
SL_253_5 BOOL O Must always be TRUE.
TRUE - Increment 255
IN_TG253_5 BOOL I/O Start: Load Increment 255.
TRUE - Data transfer is enabled.
FALSE - When job is finished.
JP_TG253_5 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