Define the signal path, motor-direction states, position feedback and request rules before writing elevator model control logic. Verify each layer separately, and keep the project limited to a guarded, passenger-free educational model rather than real lift control.
Define the inputs, motor commands and position feedback before writing elevator model control logic. A floor request identifies a destination. It does not prove where the carriage is, whether the motor can reverse or whether movement has stopped. Those are separate signals and behaviors that you must establish first.
Keep this work limited to a lightweight, passenger-free educational model with guarded movement. A working demonstration is not a controller for a passenger lift, goods lift or other load-carrying machine.
Define the signal path
Control logic connects an accepted request to a measured result. For an elevator model, that means tracing the path from the selection input through the controller and motor interface, then back through position feedback.
Write a signal list before assigning controller connections. Record each signal's source, destination, electrical interface, active state and meaning when disconnected. Use the controller and interface manufacturers' documentation to establish electrical limits and compatible connections.
| Signal or function | What it tells the controller | What it does not establish |
|---|---|---|
| Raw keypad reading | Which contacts the scanning interface detects | A valid destination |
| Accepted request | Which fitted floor has been selected | The carriage's current position |
| Direction command | Which movement the program requests | Actual motor direction or movement |
| Floor-position input | Whether a fitted position sensor is active | Independent protection against excess travel |
| Encoder feedback | Measured rotation or displacement increments | An absolute position without a suitable reference |
| Status display | What the program reports | Independent confirmation that movement happened |
Separate logic power, motor power and the interface between them on the drawing. A controller output is a command signal, not a motor supply. Relay coils and other loads need interfaces appropriate to their electrical characteristics; they must not be treated as interchangeable controller inputs or outputs.
Also confirm that the selected programming runtime supports the controller, keypad interface and required feedback capture. A device appearing on a schematic does not establish software support.
Prove what the motor commands mean
Two relays do not automatically provide forward and reverse operation. The result depends on the motor type, contact arrangement and power circuit. A circuit that interrupts one unchanged supply path provides run and stop, not necessarily reversal.
Define the intended motor-interface states before writing movement logic:
- Stopped: the documented interface state for stopping the mechanism.
- Up: a command that produces upward carriage travel.
- Down: a command that produces downward carriage travel.
- Conflicting commands: an invalid condition that must not reach the power stage.
Use the motor and interface documentation to determine the reversal method and any required transition behavior. Do not infer motor direction from an output indicator or relay sound.
Software should prevent opposing direction commands from being asserted together. That does not replace electrical interlocking or protective functions required by the motor interface. Nor does removing a movement command necessarily hold a suspended carriage. The mechanical design must account for gravity and stored energy.
For an initial direction check, secure the lightweight model, guard the travel area and use the documented commissioning procedure. Do not investigate unexpected direction by swapping wires while energized. Stop, isolate the relevant energy sources and correct the documented connection or command mapping.
Separate position from travel boundaries
A destination sensor and a travel-boundary device answer different questions. The first indicates a stopping location. The second limits movement beyond the intended operating range. Do not make both functions depend solely on the same software interpretation of one input.
Floor switches are often easier to understand in a basic model because their locations correspond directly to destinations. Record which input belongs to each location and whether an active signal means the carriage is within that sensor's detection region.
Encoder feedback introduces additional questions:
- What physical movement does each count represent?
- Is the encoder measuring the motor shaft or the carriage itself?
- Can the transmission slip between those points?
- How is a position reference established after startup or reset?
- Can the controller capture pulses at the intended operating speed?
A motor-shaft encoder measures shaft movement. It does not, by itself, prove equal carriage movement through a slipping coupling or transmission.
No floor input being active can be normal when the carriage is between floors. At startup, however, that same reading may leave the position unknown. Do not silently assign a starting floor. Keep automatic movement inhibited until position is established through a separately designed, guarded reference procedure.
Treat impossible sensor combinations according to the actual sensor geometry. If the arrangement cannot physically activate two floor sensors together, that combination warrants investigation. If detection regions overlap, the interpretation must explicitly account for that overlap.
Turn key presses into requests
A matrix keypad requires scanning and decoding. Its raw electrical state is not yet a floor command. Keep three values separate: the raw reading, the decoded key and the accepted destination.
With motor power isolated, check every intended key against the displayed or monitored decoded value. Reject selections that do not correspond to fitted floors. Define how the interface handles simultaneous keys rather than assuming every combination produces a valid selection.
A held key also needs a defined meaning. For a simple model, one accepted press can create one request, with another request allowed only after release and a new press. Repeated scanning of the same held key should not accidentally fill a request queue.
Store an accepted destination separately from the live keypad reading. Releasing the key must not erase a journey already accepted by the controller.
For the first version, accepting one destination while idle is easier to verify than handling a queue. Define whether additional requests during travel are ignored or explicitly rejected. Add queuing only after single-request operation is understood, and decide how duplicate requests, cancellations and faults affect stored destinations.
Describe the operating states
A small state model makes the intended behavior easier to review than a collection of unrelated movement conditions. Each state should have a clear entry condition, permitted outputs and exit condition.
| State | Intended behavior | Condition to resolve before leaving it |
|---|---|---|
| Position unknown | Automatic movement inhibited | A valid position reference is established |
| Idle at a known floor | No movement command; eligible requests may be accepted | A valid destination differs from the current floor |
| Moving up | Only the upward command may be active | Destination arrival or a condition requiring a stop |
| Moving down | Only the downward command may be active | Destination arrival or a condition requiring a stop |
| Arrival check | Movement command removed; arrival conditions evaluated | Position and stopping conditions are consistent |
| Fault | Further automatic movement inhibited | The cause is corrected and a deliberate restart is authorized |
This table describes application behavior, not a complete safety design.
Choose direction using a valid position reference and the physical ordering of floors. Do not assume that a numerical label represents height unless the mapping says so. Once travel begins, the last confirmed floor is historical information, not proof that the carriage remains there.
Define arrival using the selected position system and the mechanism's stopping behavior. A floor sensor can change state before the carriage comes to rest. If travel carries the carriage beyond the detection region, simply removing the command at that sensor may not produce repeatable positioning.
A travel timeout can identify missing arrival feedback. It cannot prove arrival and must not substitute for position measurement. Likewise, a status message saying that the target was reached must follow valid feedback, not merely an elapsed delay.
Verify one layer at a time
Begin with checks that do not require powered movement. Inspect the signal map, monitor keypad decoding and actuate accessible sensors using a controlled, de-energized mechanical setup. Check disconnected-input behavior without defeating protective devices.
Then separate the remaining questions:
- Interface behavior: Does each controller command produce the documented motor-interface state?
- Direction: Does each permitted direction command move the carriage the intended way?
- Position mapping: Does each sensor correspond to its recorded physical location?
- Request handling: Does one accepted selection produce one stored destination?
- Arrival: Do feedback and stopping behavior agree at the selected floor?
- Restart: Does a reset return to a defined state without unexpected movement?
Observe command and feedback values together. An output that changes without movement points toward a different problem from correct movement with missing position feedback.
Evaluate abnormal input combinations through simulation or another documented low-energy commissioning method where possible. Do not bridge a protective device to keep the mechanism moving. A fault response must suit the motor and mechanical arrangement, including any possibility of movement after power removal.
Record expected and observed results. A discrepancy is a reason to stop and correct the relevant layer, not to compensate with an unexplained delay elsewhere in the program.
Keep the model outside real lift control
The useful result is a model whose signals and state transitions you can explain: what requests movement, what proves position, what stops motion and what prevents an unintended restart. Writing ladder logic comes after those definitions, not before them.
Do not connect the model controller to an operating lift or use a successful demonstration as evidence of suitability for carrying loads. Real lift control requires purpose-designed equipment, protective systems and the applicable installation and inspection process.
If the actual requirement is an elevator information screen, keep that display installation separate from motion control. Showing information inside a lift is a different job from controlling its movement.
Questions
Do two relays mean an elevator model can reverse?
Not necessarily. The number of relays does not establish what electrical conditions reach the motor. Direction control depends on the motor type and the documented interface arrangement. Confirm distinct upward, downward and stopped states, together with the required interlocking, before allowing automatic movement.
What feedback does an elevator model need?
Use feedback that establishes the carriage's position relative to its destinations. Floor switches provide discrete indications. An encoder requires a reference, a relationship between counts and travel, and checks for transmission slip or missed pulses. A keypad request or elapsed travel time does not prove position.
What should happen if no floor sensor is active at startup?
That may mean the carriage is between floors, not that a sensor has failed. At startup, keep automatic movement inhibited until position is established through a separately designed reference procedure. Do not assign a floor merely because it is the usual starting location.
Can educational elevator model logic control a real lift?
No. A passenger-free educational model demonstrates selected control concepts, not suitability for operating a lift. Real installations require purpose-designed control and protective systems, along with the applicable installation and inspection process. Do not connect model hardware or software to an operating lift.
Planning information, not legal or engineering advice. Rules differ by place: check codes and permits with your local authority and your licensed trades.