03.01.2013 Views

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.6.2 Sub-program #1<br />

6F3B0253<br />

6. Programming Information<br />

If the sub-program #1 is programmed, it is executed once at the beginning of the first<br />

scan (before main program execution).<br />

Therefore, the sub-program #1 can be used to set the initial value into the registers.<br />

The sub-program #1 is called the initial program.<br />

The figure below shows the first scan operation.<br />

RUN mode<br />

transition 1st scan 2nd scan<br />

The end of the sub-program #1 is recognized by the END instruction.<br />

6.6.3 Timer interrupt program<br />

Scan<br />

I/O Timer Sub#1 Main program Mode I/O Timer Main program<br />

The timer interrupt is the highest priority task. It is executed cyclically with a user<br />

specified interval, with suspending other operation.<br />

The interrupt interval is set in the system information. (5 to 1000 ms, 5 ms units)<br />

Timer interrupt<br />

1 scan<br />

1 scan<br />

Timer interrupt<br />

interval<br />

Time<br />

Time<br />

1 scan<br />

Timer interrupt<br />

interval<br />

1 scan<br />

The end of the timer interrupt is recognized by the IRET instruction.<br />

Basic Hardware and Function 95<br />

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!