FBs-PLC Interrupt Function Êîíòðîëëåðû ôèðìû FATEK FBs-series Programmable Controller Manual 2 (Advanced Application) ñòð.3 Interrupt source, label and priority for FBs-PLC

Êîíòðîëëåðû ôèðìû FATEK FBs-series Programmable Controller Manual 2 (Advanced Application)

FBs-PLC Interrupt Function

Interrupt source, label and priority for FBs-PLC

FBs-PLC Interrupt Function 9. Interrupt source, label and priority for FBs-PLC
As described in the last section, every “Interrupt Service Routine” should have a unique “Interrupt Label”. There are
corresponding “Interrupt Labels” for interrupts, namely “Interrupt Reserve Words”, cab be used in the sub program
area of FBs-PLC. These labels are dedicated to the interrupt routines hence cannot use for normal subroutine or jump
target.
The “Interrupt Label” (Interrupt Reserve Word) are all suffix with an “I” letter. For examples, the interrupt label for
high-speed counter HSC0 should be “HSC0I” and the interrupt label for X0+ should be “X0+I”. The “Interrupt Labels” and
their priorities for the FBs-PLC interrupt sources of FBs-PLC are shown as below.
The following table is the interrupt sources and their label names. To compatible with previous versions of
programming tool, besides HSC/HST, the label names in old versions are also enlisted (label name with parenthesis).
The new label names are prefer than old while in usage (HSTAI, 1MSI~ MSI, X0+I~X15-I are prior in using).
(The priority of interrupt is inversely proportional to the value of priority)
Interrupt
Priority Interrupt Label Condition for Interrupt Note
Source
High Speed No interrupt when act as a
HSTAI (ATMRI) Timing from HSTA toCV=PV
Timer cyclic timer
MSI (1MS) One interrupt every 1mS
MSI (2MS) One interrupt every 2mS
MSI (3MS) One interrupt every 3mS One kind of time base
interrupt is allowed at a
Internal MSI (4MS) One interrupt every 4mS time (please refer to
Time Base One interrupt every 5mS Section 9.5.2).
MSI (5MS)
Therefore, the actual
MSI (10MS) One interrupt every mS number of interrupts is.
MSI (50MS) One interrupt every mS
MSI ( MS) One interrupt every mS
HSC0I/HST0I Counting/Timing from HSC0/HST0 to (CV=PV) HSC0~HSC3 are labeled
as HSC0I~HSC3I when
HSC HSC1I/HST1I Counting/Timing from HSC1/HST1 to (CV=PV) configured as high speed
Counting/Timing from HSC2/HST2 to (CV=PV) counter; and are labeled
HST HSC2I/HST2I
as HST0I~HST3I for
HSC3I/HST3I Counting/Timing from HSC3/HST3 to (CV=PV) high speed timer.
PSO0I Pulse output of PSO0 completed
PSO1I Pulse output of PSO1 completed
PSO2I Pulse output of PSO2 completed
PSO3I Pulse output of PSO3 completed