This comprehensive functional module controls a five-story elevator – including call system, door logic, safety checks, and condition-controlled driving logic.
Developed in Structured Control Language (SCL), the code can be used directly in the Siemens TIA Portal and provides a reliable basis for passenger or freight elevators in industrial, commercial or model environments.
How it works
Initially, the system checks for door faults and safety conditions such as emergency stops or brake circuit interruptions. If a fault is present, the elevator remains in the idle state. Requests from the car or the floors are stored in latches and processed sequentially.
Depending on the destination, the integrated state machine controls the sequence of moving up , moving down , opening the door , waiting and closing the door on a floor-by-floor basis.
Floor sensors detect the arrival of the destination. After the specified door-open time, the door closes automatically, and the corresponding request is deleted.
Technical details
The safety logic combines the door contact, emergency stop, and brake circuit into a common error flag. Each floor has its own latch input for calls and car selection. The FSM is based on an integer status value and specifically controls the relays for motor up, motor down, and door drive. An IEC timer regulates the door open time.
Outputs for floor and direction LEDs provide feedback on the current position and direction of movement.
Possible applications
Ideal for simulating elevator systems in production halls, office buildings or parking garages.
The module also offers a practical example of FSM-controlled systems, door security and sensor integration in model making, laboratories or training courses.
The separation of security control, call management and movement logic facilitates adaptation to different door systems or number of floors.
compatibility
Runs on Siemens S7-1200 and S7-1500 controllers.
Compatible with TIA Portal from version V13 – recommended from version V16 for full function and visualization support.
Also fully testable with PLCSIM – without additional adjustments.
Scope of delivery
You will receive the .scl
file with all declarations for inputs and outputs, latches, state transitions and timers.
The download link will be provided immediately after purchase.
Support
I would be happy to support you with the integration into your existing system structure or with the expansion with additional driving profiles.
I am also available via email or shop support for HMI connections, extended safety logic, or special sensor requirements.