Description
The following table gives an overview of the organization blocks available in STEP 7 Basic V10.5 with specification of the priority groups and classes. Unlike STEP 7 V5.x, in STEP 7 Basic the organization blocks are not selected by OB number, but by event class.
To incorporate an organization block in your program, you open the "Add new block" dialog and click on the "Organization block (OB)" button. Here you can select OBs for startup, time error, cyclic or time delay interrupt program processing via the event class. The OB numbers are assigned automatically by default, but you can also assign them manually.
Overview of the organization blocks |
Organization blocks cyclic program processing
Higher-level code blocks that are processed cyclically in the program and in which you can program instructions or call other blocks. OB1 is the default block for cyclic execution of the user program.
- Event class: Program cycle
- Possible number in program: Multiple OBs permissible
- OB no.: OB1 (default), OB200 or greater
- Priority group: 1
- Priority class: 1
|
Organization blocks for startup
Startup OBs are processed once when the operating mode of the CPU changes from STOP to RUN.
- Event class: Startup
- Possible number in program: Multiple OBs permissible
- OB no.: OB100 (default), OB200 or greater
- Priority group: 1
- Priority class: 1
|
Organization blocks for time delay interrupt
After expiry of a defined time, the time delay interrupt OBs interrupt the cyclic program processing.
- Event class: Time delay interrupt
- Maximum number in program: 4* (one OB for each event)
- OB no.: OB200 or greater
- Priority group: 2
- Priority class: 3
*A maximum of four time delay interrupt OBs or four cyclic interrupt OBs can be used. If you are already using two cyclic interrupt OBs, then you can only add two time delay interrupt OBs.
|
Organization blocks for cyclic interrupts
The cyclic interrupt OBs interrupt the cyclic program processing at defined intervals.
- Event class: Cyclic interrupt
- Maximum number in program: 4* (one OB for each event)
- OB no.: OB200 or greater
- Priority group: 2
- Priority class: 4
*A maximum of four time delay interrupt OBs or four cyclic interrupt OBs can be used. If you are already using two time delay interrupt OBs, then you can only add two cyclic interrupt OBs.
|
Organization blocks for HSC hardware interrupts
The hardware interrupt OBs interrupt the cyclic program processing at the occurrence of a hardware event.
- Event class: Hardware interrupt
- Maximum number in program: 50 (one OB for each event)
- OB no.: OB200 or greater
- Priority group: 2
- Priority class: 6
The hardware interrupts are not only for "Hardware interrupt HSCs", but also for hardware interrupts of digital channels.
|
Organization block for diagnostic error interrupt
If the diagnostics-compatible module, for which you have enabled the diagnostic error interrupt, detects an error, the diagnostic error interrupt OB interrupts the cyclic program processing.
- Event class: Diagnostic error interrupt
- Number in program: Only OB82
- Priority group: 2
- Priority class: 9
|
Organization block for the time error interrupt
If the maximum cycle time is exceeded, the time error interrupt OB interrupts the cyclic program processing.
- Event class: Time error interrupt
- Number in program: Only OB80
- Priority group: 3
- Priority class: 26/27
|
To obtain more detailed information, mark the OB (event class) concerned in the "Add new block" dialog and click on the "more..." link. This opens the Online Help for the organization block marked.
Fig. 01
More information on organization blocks is available in the Online Help under:
- Create Organization Blocks
- Organization Blocks