SmartAXIS Touch User's Manual 3-85
4 Special Functions
3
Project
● Procedure
To use timer interrupt, you must configure it in the Function Area Settings in WindLDR and download the ladder
program to the Touch.
1 On the WindO/I-NV3 View tab, in the Workspace group, click (Control Function).
WindLDR starts.
2 On the WindLDR Configuration tab, in the Function Area Settings group, click Input & Output Configuration.
The Function Area Settings dialog box is displayed.
3 Select the Use Timer Interrupt check box.
4 Specify an interval to execute the timer interrupt.
5 Click OK.
This concludes configuring the settings.
●
Example: Timer Interrupt
The following example demonstrates a program of using the timer interrupt function. The Function Area Settings
must also be completed to use the timer interrupt function as described on the preceding page.
M8120 is the initialize pulse special internal relay.
D8036 stores 0 to designate jump destination label 0 for timer
interrupt.
The interrupt program is separated from the main program by the
END instruction.
While the SmartAXIS is running, program execution jumps to label
0 repeatedly at intervals selected in the Function Area Settings.
Each time the interrupt program is completed, program execution
returns to the main program at the address where timer interrupt
occurred.
Insert LRET at the end of the subroutine to return to the main
program.
LABEL
0
M8120
END
Main Program
REPS1 –
0
D1 –
D8036
MOV(W)
LRET
Interrupt Program