Positioning with M Code
This example shows how to use M code in positioning control. Assume following four position data of 31 to 34.
The above position data is configured as 4 steps continuous position. Assume that the M code ON timing is ‘After’ mode. It that case, the M code will be issued at the end of each positioning, and the next positioning will not be started until the M code is cleared. The M code OFF request control must be issued for clearing M code. Following chart shows that the entire positioning path with proper M code clear request.
The M code ON state can be read by X8 point of PSnnX module. The continuous positioning control needs only one positioning start signal for the first position data. The other position data are started automatically after M code clear. The following figure shows the start of positioning.
Positioning start
M code Clear
If M code is designated non-zero value, the M code signal is turned on at each positioning control according to the configuration of ‘M code ON timing’. The next position data can be started after the preceding M code signal is cleared. For clearing the M code signal ‘M code clear request’ control must be issued. Following figure shows the example of the clearing the M code signal.