EasyManua.ls Logo

Toshiba PROSEC T1 - Page 115

Toshiba PROSEC T1
313 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6F3B0250
Basic Hardware and Function
113
6. Programming Information
6.6.2 Sub-program #1
If the sub-program #1 is programmed, it is executed once at the beginning of the first
scan (before main program execution).
Therefore, the sub-program #1 can be used to set the initial value into the registers.
The sub-program #1 is called the initial program.
The figure below shows the first scan operation.
The end of the sub-program #1 is recognized by the END instruction.
6.6.3 Timer interrupt program
The timer interrupt is the highest priority task. It is executed cyclically with a user
specified interval, with suspending other operation.
The interrupt interval is set in the system information. (5 to 1000 ms, 5 ms units)
The end of the timer interrupt is recognized by the IRET instruction.
I/O
Main program
Main programSub#1Timer I/OMode Timer
RUN mode
transition
1st scan 2nd scan
Time
1 scan1 scan1 scan
Scan
Timer interrupt
1 scan
Timer interrupt
interval
Timer interrupt
interval
Time
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Table of Contents

Related product manuals