Parameterization of M-functions
The M-functions are parameterized via the TwinCAT system manager. A dedicated M-function table is used for each interpolation channel.
A restart of the TwinCAT configuration is required to activate 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 is executed
- BM (Before Move): If a movement is programmed in the same block, the handshake occurs before the movement
- AM (After Move): If a movement is programmed in the same block, the handshake occurs 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 occurs before the movement.
- AM (After Move): If a movement is programmed in the same block, the output occurs after the movement.
- BMAutoReset (Before Move & automatic reset): If a movement is programmed in the same block, the output occurs 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.
In the event that no reset-signal-bit is in fact set, the bits to be cleared are reset immediately before setting the new signal bits. |
Import/Export
The M-functions are parameterized individually for each channel. The parameterization can be transferred to other channels via the import/export function.