6
6-26
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
6.3.5 FC TG254
With the FC TG254 you transfer the Increment 254 for the incremental oper-
ating mode. The FC carries out the following actions:
Transfer of the value for the Increment 254 to the FM 351.
Calling in LAD Representation Calling in STL Representation
FC TG254
RET_VAL
EN ENO
DATA_ERR
JP_TG254
IN_TG254
DB_NO
CALL TG254(
DB_NO :=,
RET_VAL :=,
DATA_ERR :=,
JP_TG254 :=,
IN_TG254 :=);
Take note of the following requirements which must be satisfied for calling
the FC TG254:
All the requirements of Chapter 6.3 must be satisfied.
You store the selection for the Increment 254 in the relevant channel DB
in the parameter TARGET_254.
The following table describes the parameters of the function block FC
TG254.
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_TG254 BOOL I/O Start: Load Increment 254;
TRUE - Data transfer is enabled.
FALSE - When job is finished.
JP_TG254 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