Lab Case P-001: Continuous Dosing Machine
Connect requirements, addresses, Run logic, numeric data and refill control in one training project.
From Load Cell to Feeder: The Control Map
One video combines Korean narration with Korean and English on-screen subtitles. The article keeps the assumptions and calculations explicit.
Control goals
- Hopper weight: 0.0–500.0 kg
- Load-cell transmitter: 4–20mA
- Target feed rate: 0.0–1000.0 kg/h
- VFD speed reference: 0–10V
- Start refill at 60.0 kg and stop at 400.0 kg
- Planned behavior: hold the last valid speed command during refill
Current key addresses
| Device | Meaning |
|---|---|
| X3 | Local Start |
| X4 | Local Stop NC |
| X5 | Auto/Manual |
| X10/X11 | Safety relay healthy |
| X13/X14 | VFD Ready / Fault |
| Y0 | VFD Run Command |
| Y1 | VFD Fault Reset |
| Y4 | Refill Valve |
| M30 | Refill Request Latch |
| D300 | Load-cell Raw |
| D310/D311 | Scaled Weight |
Run / Auto logic
M10 = X4 AND X10 AND X11 AND X12 AND X13 AND /X14
SET M0 = M10 AND X5 AND (X3 OR M20)
RST M0 = /M10 OR /X5 OR M21
Y0 = M10 AND ((X5 AND M0) OR (/X5 AND X6))Speed command selection
Y0 AND X5 -> MOV D100 D120
Y0 AND /X5 -> MOV D110 D120
/Y0 -> MOV K0 D120Refill hysteresis
D310 <= K600 -> SET M30
D310 >= K4000 -> RST M30
M30 -> Y4Between 60.0 kg and 400.0 kg, M30 retains its previous state. That creates hysteresis and prevents the valve from rapidly toggling around a single threshold.
Important: Y4 is not a field-ready refill interlock
Training simplification: The M30 → Y4 line above teaches weight hysteresis only. If the latched M30=1 while the existing run permissive changes to M10=0, this example still commands Y4=1. It does not implement stop, alarm, invalid load-cell input, independent high-high protection, manual/automatic mode, valve feedback, or restart authorization.
RefillPermit in the following table is a hypothetical process permission for teaching, not an approved PLC signal. Existing M10 is a feeder run permissive and has NOT been validated as a refill permissive. Some processes refill while the feeder is stopped; the actual permission and inhibit conditions must therefore be designed for the equipment and its required safe valve state.
Synthetic truth table — not a machine commissioning result
| M30 | M10 | Alarm | RefillPermit | Current Y4 | Hypothetical Y4 |
|---|---|---|---|---|---|
| 0 | 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 |
How to read this: Alarm=1 means a fault is active; RefillPermit=1 assumes a separately engineered, validated process permission. The second output is an illustration of missing requirements, not deployable ladder logic or a certified interlock. Additional cases require separate evaluation: all input combinations, power loss, sensor failure, communications faults, stuck valve/feedback mismatch, and restart after power recovery.
Do not copy to a machine: E-stop safety functions must be based on a risk assessment, validated safety circuitry or safety-rated controls, the valve's fail-safe behavior, and a documented commissioning procedure. An ordinary PLC M10 bit or example gate is NOT a substitute for E-stop safety functions. For the related teaching-only sequence, see the refill states and interlocks guide.
Next design steps
- Refill permissive and Manual/Alarm interlocks
- Hold last valid speed during refill
- Calculate actual kg/h from weight change
- Automatic correction from target error
- Scale 0–1000 command to AO raw
- Load-cell and VFD diagnostics
- HMI recipes and commissioning test cases