Parameterization of M-functions
The M-functions are parameterized in TwinCAT XAE. A dedicated M-function table is used for each interpolation channel.
Activation of the TwinCAT configuration is required to enable a configuration of M-functions.
No
Number of M-function to be parameterized. The value must be between 0 and 159
HShake
If a value other than 'None' is entered, the M-function is of type 'Handshake'
- None: No handshake
- BM (Before Move): If a movement is programmed in the same block, the handshake is completed before the movement
- AM (After Move): If a movement is programmed in the same block, the handshake is completed after the movement
Fast
If a value other than 'None' is entered, a 'fast signal bit' type M-function is executed
- None: No fast M-function is executed
- BM (Before Move): If a movement is programmed in the same block, the output is completed before the movement.
- AM (After Move): If a movement is programmed in the same block, the output is completed after the movement.
- BMAutoReset (Before Move & Automatic Reset): If a movement is programmed in the same block, the output is completed before the movement. In addition, the M-function is automatically canceled at the end of the block, i.e. the M-function is active on a per-block basis. In order to ensure that the PLC recognizes the M-function, the duration of the associated motion block must be long enough (at least 2 PLC cycles), or an additional M-function with handshake should be programmed.
- AMAutoReset (After Move & Automatic Reset): This parameterization is only meaningful if either an M-function of type handshake is programmed at the same time (or parameterized), or if the M-function is only used for resetting other M-functions. Without an additional handshake the PLC will usually not be able to detect this M-function.
- All other combinations can be selected for compatibility reasons.
Reset
Up to 10 M-functions can be entered for cancellation when a reset is called.
Import/Export
The M-functions are parameterized individually for each channel. The parameterization can be transferred to other channels via the import/export function.