3 . I ns t r uc ti on Se t3- 1 2 9Program Example 3:Executes interrupt subroutine by applying software comparator.M1000DCNT C235 K100DHSCS C235K100 I010EIFENDI010M1000OUT Y10IRETEND When value in C235 varies from 99 to100, interrupt subroutine triggered by I010 executesimmediately to set Y0 ON.Points to note: If operand D is specified as S, M or Y0~Y3 for the above high speed comparison, thecompare result will immediately output to the external points Y0~Y3 (Y0~Y5 for SS2/SX2).However, if D is specified as Y4~Y337, external outputs will be updated till the end ofprogram (delay for one scan cycle).9. Count value storage function of high speed interrupt: When X1, X3, X4 and X5 is applied for reset function and associated external interrupts aredisabled, users can define the reset function as Rising/Falling-edge triggered by special Mrelays specified in the table: Applicable Software High Speed Counters. However, ifexternal interrupts are applied, the interrupt instructions have the priority in using the inputpoints. In addition, PLC will move the current data in the counters to the associated dataregisters below then reset the counters When X0 (counter input) and X1 (external Interrupt I100/I101) work with C243, the countvalue will be moved to D1240 and D1241 when interrupt occurs and then the counter will bereset. When X2 (counter input) and X3 (external Interrupt I300/I301) work with C244, the countvalue will be moved to D1242 and D1243 when interrupt occurs and then the counter will bereset. When X0 (counter input) and X4 (external Interrupt I400/I401) work with C246, C248, C252,the count value will be moved to D1240 and D1241 when interrupt occurs and then thecounter will be reset. When X2 (counter input) and X5 (external Interrupt I500/I501) work with C244, C250, C254,