Example configuration of sensor variables
The sensor signal for 3D distance control should be specified by the PLC using an external variable (V.E.). (see [EXTV].
Example
Configuration and use of sensor variables.
Configuration of a sensor variable in the configuration list of external variables
number_used_variables 1
#
var[0].name SENSOR
var[0].type REAL64
var[0].scope CHANNEL
var[0].synchronisation TRUE
var[0].access_rights READ_ONLY
Activating the sensor input for 3D distance control in the NC program:
#DIST CTRL [SENSOR_SOURCE=VARIABLE SENSOR_VAR=V.E.SENSOR]
When axis-specific distance control is used, the NC command is:
<axis_name> [DIST_CTRL SENSOR_SOURCE=VARIABLE SENSOR_VAR=V.E.SENSOR]
The V.E.SENSOR variable can be linked analogously to the example in (FCT-C22// Example of distance control).