Hi,
-2: the second parameter of your FORWARD() call has not yet a value assigned, e.g. the VARSTATE would be DEFINED but not yet INITIALIZED. So if your forward call reads
FORWARD($AXIS_ACT, ERR_STATUS)
assign a value to ERR_STATUS before calling FORWARD. This value could be 1 if you want a software limit switch check or 0 otherwise.
Fubini