Tietokoneiden näyttöjä, joissa näkyy kuvaa automaatiolaboratorion laitteistosta. Monitoreiden takana näkyy sama laitteisto kuin kuvissa.

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.

  1. Add a Global DB block (PLC_1 > Program blocks > Add new block) and name it to JumpStepTable.
  2. The jump table is empty by default.
  3. 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!).
  4. 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.
  5. After compliting the jump table looks something like this:
  6. Updated 9.11.2018

    <<  Previous Page
    (4) Add Sequence FB Block
    Sivu 5/10Next Page >>
    (6) Add Tags
    © Timo Heikkinen | timo piste heikkinen at oamk piste fi