6
6-21
FM 351 Positioning Function Module
EWA 4NEB 720 6001-02
6.3.1 FC REFPT
With the FC REFPT you call Set reference point. The FC executes the fol-
lowing actions:
Transfer of the value for the setting of the reference point from the chan-
nel DB to the FM 351.
The FM 351 sets the new reference point if no error occurs.
Calling in LAD Representation Calling in STL Representation
FC REFPT
RET_VAL
EN ENO
DATA_ERR
JP_REFPT
IN_REFPT
DB_NO
CALL REFPT(
DB_NO :=,
RET_VAL :=,
DATA_ERR :=,
JP_REFPT :=,
IN_REFPT :=);
Take note of the following requirements which must be satisfied for calling
the FC REFPT:
The value for the new reference point must be set in the channel DB in
the parameter SETTING_REFERENCE_POINT.
All the requirements of Chapter 6.3 must be satisfied.
The following table describes the parameters for the function block
FC REFPT.
Name Data Type P Type Meaning
DB_NO BLOCK_DB I Channel DB number.
RET_VAL INT O Return code of SFC WR_REC.
DATA_ERR BOOL O Data error.
IN_REFPT BOOL I/O Start: Set reference point;
TRUE - Data transfer is enabled.
FALSE - When job has been carried out.
JP_REFPT 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
Overview
Programming the FM 351