Appendix
② Function: Read the absolute coordinate value of each axis. Once the origin coordinate is set,
the value will be calculated according to the relationship between output pulse and direction:
positive rotation output one pulse: +1, and reverse rotation output a pulse: -1. What you end
up with is an absolute coordinate with the set point as the origin.
③ Parameter
Absolute coordinate
of current axis (1
pulse 1 units
coordinate)
This instruction
no error and set
the axis number
correctly.
Set target position instruction
① Function name: MC_SET_POS_PV
② Function: This instruction is used to write the absolute location of the machine to the module.
For example, machine can save current position when the power cut off. And this position
instead of origin will be written back to the module next time the machine power on, so that the
absolute position counting starting point of the module is consistent with the actual starting point
of the machine. If this position happens to be the origin, this instruction has the same effect as
MC_SET_POS_ZERO.
③ Parameter
SET rising edge, instruction enable,
reset and then set 1 for each call.
Set the target position, points plus or
minus. The positive output pulse
indicates the positive direction along