236
ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
More functions in the ecomatmobile controller
Processing
interrupts
10.5.2
Function SET_INTERRUPT_I
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
CabinetController: CR0301, CR0302, CR0303
•
ClassicController: CR0020, CR0505
•
ExtendedController:
CR0200
•
PCB controller: CS0015
•
SmartController: CR2500, CR2501, CR2502
•
PDM360 smart: CR1071
Function symbol:
SET_INTERRUPT_I
ENABLE
CHANNEL
MODE
READ_INPUTS
WRITE_OUTPUTS
ANALOG_INPUTS
(only for devices with analogue channels)
SET_INTERRUPT_I
ENABLE
CHANNEL
MODE
READ_INPUTS
WRITE_OUTPUTS
(for devices without analogue channels)
Description
SET_INTERRUPT_I handles the execution of a program part by an interrupt request via an input
channel.
In the conventional PLC the cycle time is decisive for real-time monitoring. So the PLC is at a
disadvantage as compared to customer-specific controllers. Even a "real-time operating system" does
not change this fact when the whole application program runs in one single block which cannot be
changed.
A possible solution would be to keep the cycle time as short as possible. This often leads to splitting
the application up to several control cycles. This, however, makes programming complex and difficult.
Another possibility is to call a certain program part only upon request by an input pulse independently
of the control cycle.
The time-critical part of the application is integrated by the user in a block of the type PROGRAM
(PRG). This block is declared as the interrupt routine by calling the function SET_INTERRUPT_I once
(during initialisation). As a consequence, this program block will always be executed if an edge is
detected on the input CHANNEL. If inputs and outputs are used in this program part, these are also
Содержание Ecomat 100 ecomatmobile SmartController CR2500
Страница 1: ...System Manual SmartController CR2500 CR2502 CoDeSys V2 3 Target V05 7390667 00 03 2009 ...
Страница 6: ......
Страница 282: ......