Step chain
Couldn't load pickup availability
Description
The FB_StepControl function block represents a clear 10-step control with the Start, Continue, and Reset functions. A separate status flag is set for each individual step, and an associated text is provided for visualization.
Note: All modules are designed exclusively as a learning and optimization basis and are not approved for live operation. System modules, in particular, must be finally tested and commissioned by qualified personnel before productive use.
How it works
Reset
Signal Reset
sets SchrittAktiv
to 0 and activates step 0.
start
As soon as Start
enters and SchrittAktiv
= 0, the process begins at step 1.
Further
Each rising signal on Weiter
increases SchrittAktiv
by 1, up to a maximum of 9. Optionally, after step 9, it can automatically jump back to 0.
Step flags & status text
Before each step change, all flags Schritt0…Schritt9
are reset. A CASE
block then sets the current flag and updates StatusText
(e.g., "Step 3 active"). Invalid values result in an error status and a reset to 0.
Technical details
-
Inputs:
Reset
,Start
,Weiter
,LetzterWeiter
(BOOL) -
Step counting:
SchrittAktiv
(INT) -
Outputs:
Schritt0
…Schritt9
(BOOL),StatusText
(STRING) - Edge detection for
Weiter
via comparison withLetzterWeiter
- Logic via IF queries and CASE block, no timers necessary
Possible applications
- Control of processes in filling or assembly lines
- Gradual automation in manufacturing processes
- User guidance in training and testing systems
compatibility
- Siemens S7‑1200 & S7‑1500 controllers
- Developed for TIA Portal from version V13
- Recommended: TIA Portal V16+ for PLCSIM & HMI
Scope of delivery
The package includes a complete .scl
file with declarations of all inputs/outputs, internal variables, and step flags. A download link will be available after purchase.
Support
Upon request, I can customize the number of steps or the start/continue logic. I'm also happy to support the integration of additional events or HMI elements.
Simply contact us via shop message or email.