4.8 Internal Absolute Counter
4.8.1 Functions of Internal Absolute Counter
● The pulse output unit is equipped with a function that counts the number of pulses output.
● The counted value of each axis is stored in the axis as the elapsed data indicating the
absolute position from the home position. The value can be read using the PG_ReadStatus
function block.
4.8.2 How the Internal Absolute Counter Operates
● When the power supply is turned OFF, the counter value is set to zero (0).
● When the table returns to the home position by a home return, the counter value
automatically becomes zero (0).
● If the elapsed value exceeds the maximum (or minimum) value, it returns to the minimum
(maximum) value. The pulse output does not stop if this occurs, and no error occurs.
4.8.3 Reading Elapsed Value
● The elapsed value can be read using the AbsoluteCounter output parameter of the
PG_ReadStatus function block.
■
Program example (ST)
Declaration section
PROGRAM sample
VAR
PG_ReadStatus_0: PG_ReadStatus;
END_VAR
Implementation section
PG_ReadStatus_0(
UnitID:=1,
WUME-GM1PG-01
4.8 Internal Absolute Counter
4-13