Engine control
Couldn't load pickup availability
Description
The FB_MotorControl function block ensures safe and clear control of a motor with start and stop functions, clear direction selection, and mutual locking of the directions of rotation. It is particularly suitable for manual controls in machines and systems or as a supplement to existing automation systems.
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
Edge detection
The block processes button edges for start and stop via internal FBs with positive edge detection.
Stop has priority
A detected stop pulse switches off the motor immediately.
Start clearance
Only when Freigabe
is active and a valid start pulse is detected, the motor is switched on ( MotorEin
= TRUE).
Direction selection
- Clockwise rotation:
Rechtswahl
= TRUE &Linkswahl
= FALSE →MotorRechts
= TRUE - Left rotation:
Linkswahl
= TRUE &Rechtswahl
= FALSE →MotorLinks
= TRUE - If no or double selection is made, outputs remain inactive and
StatusText
provides information such as “Release missing” or “Incorrect direction selection”
Technical details
-
Inputs:
Start
,Stopp
,Rechtswahl
,Linkswahl
,Freigabe
(BOOL) -
Outputs:
MotorEin
,MotorRechts
,MotorLinks
(BOOL),StatusText
(STRING) - Edge detection via internal FB, logic via IF/ELSIF for secure locking
Possible applications
- Control of simple drives in machines and systems
- Manual direction selection for transport or conveyor belts
- Retrofitting existing systems with clear start-stop logic
compatibility
- Siemens S7‑1200 & S7‑1500 controllers
- Developed for TIA Portal from version V13
- Recommended: TIA Portal V16+ for Simulation & HMI
Scope of delivery
Included is a complete .scl
file with declarations of all inputs and outputs and edge instances. Instructions for customization are documented in the header. The download link is available immediately after purchase.
Support
If desired, I can provide support in adapting the release conditions, expanding to include additional directions, or integrating them into existing HMI interfaces.
You can contact us at any time via shop message or email.