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].

Notice

notice

The synchronisation type of the V.E. variable for transferring the sensor signal can be defined both synchronously and asynchronously. Distance control always accesses the memory of the variables synchronously in the context of the GEO tasks and updates the values.

It is recommended to define the variable as synchronous if possible. Then the time context matches the distance control when access is made to the variable from the NC program, e.g. reading out the current sensor value, .

Example

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).