6F3B0250

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.1Main program

The main program is the core of the user program. It is executed once in each scan.

1 scan time

Mode

I/O

Timer

Main program

 

 

 

 

 

 

 

Time

Mode I/O Timer

Main program

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.

112 T1/T1S User’s Manual

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 114
Image 114
Toshiba PROSEC T1 T1S, 6F3B0250 user manual Main program