Interrupt Example

  • Looking in the manual for KSS8.7 now you can optionally declare interrupt with BRAKE command already instead of in the interrupt program. But now i see it was also available from KSS8.5 also :grinning_face_with_smiling_eyes: .


    Code
    <GLOBAL> INTERRUPT <WITH BRAKE <F|FF>> DECL Prio WHEN
    Event DO Subprogram


    From the KSS8.7 manual:


    Using BRAKE in the interrupt declaration has the advantage that the braking

    reaction is initiated without a delay as soon as the interrupt is detected.

    The system does not wait until the interrupt program has been started

    and the line with the BRAKE statement has been processed before initiating

    the braking reaction. This means that the braking reaction is not dependent

    on the interpreter.


    And explanation for different BRAKE options:


Advertising from our partners