Using the XN-PLC
02/05 AWB2724-1566GB
20
XSoft status indication
• The signal states of the physical, Boolean inputs are displayed
in both the CPU’s RUN state and in STOP.
• The signal states of the physical, Boolean outputs are displayed
only in RUN state.
• Low signals are displayed as “FALSE” with a black background.
• High signals are displayed as “TRUE” with a blue background.
• All other variables are shown with their current value only in the
RUN state.
System events
You can respond to PLC system events with a user application
routine that runs once when a particular event occurs. Its
execution is time-monitored. The time base is the configured
longest permissible cycle time.
Possible events include:
• STOP: User program stop (does not apply to cycle time timeout
or hardware watchdogs)
• START: User program start (cold and warm start)
• COLDSTART: User program cold start
• WARMSTART: User program warmstart
• TIMER-INTERRUPT: A timer interrupt channel is available.
Timer interrupt
The timer interrupt is triggered after an adjustable delay of 500 to
2500000 microseconds. It interrupts the user program and
executes a user-defined application routine.
To program the delay time, include the TimerInterruptEnable
function from library XN_PLC_UTIL.lib in your user program.
At input dwTimerTickUS enter the delay time.
The value is accepted with the start of the timer and can not be
modified for the run time. If the time falls below 500 or exceeds
2500000, the function returns FALSE and is not executed.
If, for example, a delay of 2 seconds is to be started by external
input I0.0, add the following line to the user program:
TimerInterruptEnable(%IX0.0,2000000)
Creating application routine time_Int:
X
In the object organizer, select the
Resources
tab and double-
click the
Task configuration
resource.
The
System events
tab appears.
Figure 17:System events
h
Single step mode can not be used for system event
program blocks.
Figure 18:The TimerInterruptEnable function
Figure 19:Programming a function
TIMERINTERRUPTENABLE
BOOL
xEnable
TimerInterruptEnable
BOOL
DWORD
dwTimerTickUS
Содержание XION-PLC-CANopen
Страница 4: ...2 ...
Страница 8: ...02 05 AWB2724 1566D 4 ...
Страница 10: ...02 05 AWB2724 1566GB 6 ...
Страница 16: ...02 05 AWB2724 1566GB 12 ...
Страница 18: ...02 05 AWB2724 1566GB 14 ...
Страница 34: ...02 05 AWB2724 1566GB 30 ...
Страница 38: ...02 05 AWB2724 1566GB 34 ...
Страница 42: ...02 05 AWB2724 1566GB 38 ...
Страница 48: ...02 05 AWB2724 1566GB 44 ...
Страница 49: ...02 05 AWB2724 1566GB 45 Appendix Dimensions 113 25 114 75 50 6 74 4 ...