Extended programming

Alternative to the command #MEAS MODE the following command offers additional adjustments besides the definition of measuring types. The programmed parameter settings keep valid until program end. But after program start the default settings based on the configuration lists are effective. The changing of measurement parameters of an axis implies, that it is marked as measurement axis ( this means the axis parameter P-AXIS-00118 is set on 1).

#MEAS [DEFAULT] [ [ [TYPE<expr>] [SIMU_OFFSET<expr>] ] | [ {AX<axis_name> |AXNR<expr>}
[SIGNAL<expr>] [EDGE<expr>] [INPUT<expr>] [G107 | G108] ] ] (modal)

TYPE<expr> New measuring type according to chapter. This measuring type is valid until the next new setting or program end.

SIMU_OFFSET<expr> This keyword is only effective in the particular case during measuring simulation in connection with the axis parameter [2]-19 (P-AXIS-00112 - meas_simu_mode=4).The value shifts the simulated default measuring point with reference to the path movement based on the programmed target points.

With SIMU_OFFSET for measuring type 2 the default measuring point can be shifted in positive or negative direction. In this case the possibly additional offset of the axis parameter [2]-20 (P-AXIS-00114 - mess_offset) is not taken into consideration.

Extended programming 1:

TYPE and SIMU_OFFSET may not be programmed in combination with the other keywords.

AX<axis_name> Name of the measurement axis

AXNR<expr> Logical axis number of the measurement axis, positive integer

SIGNAL<expr> Name of the source of the measurement signal, which shall be used for the measurement.

Valid values

Significance

PLC

Measurement signal by PLC, see P-AXIS-00257

DRIVE

Measurement signal by drive position latch, see P-AXIS-00116 or P-AXIS-00269

FIXED_STOP

Measurement signal by moving on fixed stop, see P-AXIS-00330

EDGE<expr> Relevant measurement edges, see also P-AXIS-00113.

Valid values

Significance

POS

Rising measurement edge

NEG

Falling measurement edge

INPUT<expr> Name of the drive measurement input, which shall be used for the measurement (see P-AXIS-00295).

Valid values

Significance

1

1st. measurement input

2

2nd. measurement input

G107 Deselection of edge banding function for this axis. During edge banding no measurement value is latched for this axis.

G108 Selection of edge banding function for this axis. As a pre-condition in the axis parameters list for this axis the functionality - edge banding - is activated (see P-AXIS-00098).

DEFAULT Resetting of the axis specific (AX, AXNR) parameter settings changed by the #MEAS command (SIGNAL, EDGE, INPUT, G107/G108). The measurement settings of the axis parameters list are effective again.

Extended programming 2:

Measurement edge (EDGE) and measurement input (INPUT) can not be changed for SERCOS drives with integrated position latch (SIGNAL=DRIVE), because for this purpose parameter changes in the drive are necessary as well.

Programmierbeispiele

Selection of another measurement type:

N100 #MEAS [TYPE=2]

Setting of measurement positions for the measurement simulation for meas type 2:

Extended programming 3:

For all other measuring types only a shifting in negative direction (against the path movement) is possible.

Extended programming 4:

Activation of measurement by moving on fixed stop for X and Y axes:

N100 #MEAS [AX=X AX=Y SIGNAL=FIXED_STOP]

Activation of measurement signal by PLC on negative edge:

N100 #MEAS [AXNR=1 SIGNAL=PLC EDGE=NEG]

Deactivation of edge banding function for Y and Z axes:

N100 #MEAS [AX=Y AX=Z G107]

Restoring of the measurement settings for all path axes based on the axis’s parameters:

N100 #MEAS DEFAULT

Restoring of the measurement settings for X axis based on the axis’s parameters:

N100 #MEAS DEFAULT [AX=X]