EasyManua.ls Logo

Renu Electronics FlexiLogics series - User Program; Main Program

Renu Electronics FlexiLogics series
130 pages
Print Icon
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...
Programming Information
110
Doc No: UMAN\FL\0110
Rev. No.: 1.02B
7.5 User program
The user program is stored by each program types as shown in the following diagram and is managed by units
called blocks in each program types.
In the user program, the main program is the core. The scan operation explained is for the main program. The
operation of other program types are explained in the following sections:
The following 6 program types are supported by the FlexiLogics unit.
(1) Main program
(2) Sub-program #1
(3) Timer interrupt program
(4) I/O interrupt program #1
(5) I/O interrupt program #2
(6) 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 con-
secutive. In each program type and block, there is no limit of program capacity. The only limit is the total capacity.
7.5.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, that portion will not be executed.
User program configuration Program type internal configuration
(Program types) (Blocks)
Subroutine
I/O interrupt #2
I/O interrupt #1
Timer interrupt
Sub-program #1
Block 1
Block N
(N=max.256)
Block 10
Block 2
Block 1
Main program
Mode Main programTimerI/O I/OMode
1 scan time
Time
Main program
Timer

Table of Contents

Other manuals for Renu Electronics FlexiLogics series