Toshiba 6F3B0250 Video Gaming Accessories User Manual


 
6F3B0250
112
T1/T1S User’s Manual
6. Programming Information
In the user program, the main program is the core. The scan operation explained in
section 5.3 is for the main program. The operation of other program types are explained
in the following sections.
The following 8 program types are supported by the T1/T1S.
(1) Main program
(2) Sub-program #1
(3) Timer interrupt program
(4) I/O interrupt program #1
(5) I/O interrupt program #2
(6) I/O interrupt program #3
(7) I/O interrupt program #4
(8) Subroutine
The blocks are just separators of the program, and have no effect on the program
execution. However, by dividing the user program into some blocks, the program
becomes easy to understand. The block numbers need not be consecutive.
In each program type and block, there is no limit of program capacity. The only limit is the
total capacity.
6.6.1 Main program
The main program is the core of the user program. It is executed once in each scan.
In the above figure,
Mode means the mode control operation
I/O means the I/O update processing
Timer means the timer up date processing
Main program means the main program execution
the self-diagnostic check and peripheral support are omitted in this figure.
The end of the main program is recognized by the END instruction.
Although instructions may be present after the END instruction, these portions will not be
executed.
Mode Main programTimerI/O I/OMode
1 scan time
Time
Main program
Timer
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net