timohei.net / My Courses
/ Production Automation Project
/ Siemens S7 How-to
/ Sequence Programming
/
Add Jump Table
A table is needed for the jumps within the sequence. The table will contain one member for each sequence step. For the steps with jumps, change the default value of zero into the step number where the execution of the sequence is to be diverted to. For steps with no jump leave value to zero.
The jump table is a DB block.
- Add a Global DB block (PLC_1 > Program blocks > Add new block) and name it to JumpStepTable.
- The jump table is empty by default.
- Add a row jumpSteps. The default type is Bool, and...
...has to be changed to an array of Int (Array):
In the type field type Array[1..32] of Int i.e. an array with 32 members of type Int - note that the range of index is 1-32 (not 0-31!).
- Type in the step numbers for jump steps. In this example the only jump is executed in step 6 where the sequence always jumps to step 1.
- After compliting the jump table looks something like this:
Updated 9.11.2018
© Timo Heikkinen | timo piste heikkinen at oamk piste fi