Commissioning
Operating Manual XCA 1100 / XCA 1200
●
Version 12/17
63
POE "UBE32_Interrupt"
(* Example 1: POE Interrupt0/ Task I_E0 Event 0
Interrupt 0 (UBE32 0,1I Input 0)
Evaluation of first rising edge at the input (e.g. a tracer),
Here the interrupt 0_RTrig_Freigabe must be set manually by
forcing. It is then reset in the Interrupt0 program
----------------------------------------------------------------- *)
IF
Interrupt0_RTrig_Freigabe
THEN
xuio03_QW0 := S_BIT_IN_WORD(TRUE,xuio03_QW0,SINT#0);
ELSE
xuio03_QW0 := R_BIT_IN_WORD(TRUE,xuio03_QW0,SINT#0);
xuio03_MWQ0 := 0;
END_IF;
(* Example 2: POE Interrupt3/ Task I_E3 Event 3
Interrupt 3 (UBE32 0,1I Input 3)
Evaluation of all falling edges at the input (e.g. Counting with a
light barrier). Interrupt 3_RTrig_Freigabe must be manually set and reset.
----------------------------------------------------------------- *)
IF
Interrupt3_FTrig_Freigabe
THEN
xuio03_QW0 := S_BIT_IN_WORD(TRUE,xuio03_QW0,SINT#7);
ELSE
xuio03_QW0 := R_BIT_IN_WORD(TRUE,xuio03_QW0,SINT#7);
xuio03_MWQ14 := 0;
END_IF;
POE "Interrupt0" (tracer)
(* Example 1: POE Interrupt0/ Task I_E0 Event 0
Interrupt 0 (UBE32 0,1I Input 0)
Evaluation of first rising edge at the input as a tracer
----------------------------------------------------------------- *)
Interrupt0_Zaehler
:= Interrupt0_Z 1;
Interrupt0_RTrig_Freigabe := FALSE;
RETURN;
POE "Interrupt3" (counter)
(* Example 2: POE Interrupt3/ Task I_E3 Event 3
Interrupt 3 (UBE32 0,1I Input 3)
Evaluation of all falling edges at the input as a counter
----------------------------------------------------------------- *)
Interrupt3_Zaehler := Interrupt3_Z 1;
xuio03_MWQ14 := 0;
RETURN;