Data type MC_BufferMode
The data type MC_BufferMode is used with various function blocks from the motion control library. BufferMode is used to specify how successive travel commands are to be processed.
TYPE MC_BufferMode :
(
MC_Aborting,
MC_Buffered,
MC_BlendingLow,
MC_BlendingPrevious,
MC_BlendingNext,
MC_BlendingHigh
);
END_TYPE
see also: BufferMode in the section on general rules for MC function blocks
A second function block is required to use the buffer mode. It is not possible to trigger a move block with new parameters while it is active. |
Examples:
In the following example, a move command is used to move an axis from position P0 to P1 and then to P2. The second command is issued during the movement to P1, but before the braking ramp with different buffer modes. The reference point for the different velocity profiles is always P1. The mode specifies the velocity v1 or v2 at this point.
Since the speed of the first command is lower than the second, the modes BlendingLow/BlendingPrevious and BlendingHigh/BlendingNext have the same result.
The difference in the next example is that the speed of the second command is lower than the first. Now, the modes BlendingLow/BlendingNext and BlendingHigh/BlendingPrevious are equivalent.
The velocity profiles described here assume that the following command is issued in time, i.e. before the braking ramp of the first command. Otherwise, blending is implemented as best as possible.