diff --git a/README.md b/README.md index 8318327..e4e50ad 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,10 @@ The detail lives in dedicated documents: NixOS software, specials, prices and a two-station cost estimate, and a FreeCAD concept model of the station (aluminium profile frame, rim-belt conveyor, chuck, sensors) with a sourced bill of materials +- [QC station control plan](docs/equipment/inline-qc-control-plan.md): + EtherCAT with two 100 W servo kits, Beckhoff I/O and an N100 mini PC + running an open-source master on NixOS; bus layout, I/O list, + geizhals.de prices, safety circuit, bench test and build order - [Quality automation](docs/quality-automation.md): stamper metrology (Keyence-class confocal, profiler, XRF), layered pressed-record QC (100% optical inspection, per-cycle press telemetry, sampled automated audio @@ -347,6 +351,7 @@ docs/ │ ├── duplex-cell-layout-sketch.png Duplex cell arrangement (sketch, not to scale) │ ├── galvanics.md Electroforming and stamper prep equipment plan │ ├── inline-optical-qc.md Devices for the record inspection station +│ ├── inline-qc-control-plan.md EtherCAT control plan for the station │ ├── inline-qc-station/ Concept model of the station (FreeCAD script, │ │ .FCStd, renders, labelled investor view, │ │ bill of materials) diff --git a/docs/equipment/inline-optical-qc.md b/docs/equipment/inline-optical-qc.md index 104186e..2365e9a 100644 --- a/docs/equipment/inline-optical-qc.md +++ b/docs/equipment/inline-optical-qc.md @@ -19,7 +19,7 @@ parts: - a servo turntable with a centring chuck; - an edge PC running open-source vision software on NixOS. -The hardware costs about USD 16k to 33k per station (bill of materials, +The hardware costs about USD 17k to 33k per station (bill of materials, partly estimates). At launch one station serves both presses, the Duplex system and the Classic, and it checks the records after they have cooled (decided October 2026; see [where it sits](#where-it-sits)). A concept model of the station, an aluminium @@ -249,14 +249,14 @@ October 2026). The conveyor uses the same kit, so one spare covers both. divided encoder output: its CN1 port carries five inputs, two of them touch probes, and three outputs ([A6-EC manual](https://www.omc-stepperonline.com/download/A6-EC_series_servo_drive_manual.pdf)). - So an incremental encoder (RS-422 line driver, 2,500 to 5,000 pulses a + So an incremental encoder (RS-422 line driver, 2,000 to 2,500 pulses a turn) sits on the spindle shaft. Its A/B signals clock both line-scans directly (Basler racer 2 encoder control, [Basler](https://docs.baslerweb.com/encoder-control)), so line timing never passes through software, and it measures the spindle itself - rather than the motor behind the belt. Its index pulse goes to the - drive's touch-probe input, which latches the servo position at the same - mark every turn. The scan, the laser traces and the servo then share + rather than the motor behind the belt. The same line also runs to an + EtherCAT encoder terminal (EL5101), which counts A/B and latches the + index once a turn. The scan, the laser traces and the servo then share one angle reference. - **STO version, looked at in October 2026.** StepperOnline sells the A6-EC drive with Safe Torque Off only from 400 W: A6-EC400H2B1-M17-STO @@ -283,7 +283,7 @@ station controller needs to run the station. Lights, drives and cylinders are in | 8 MP colour area camera, GigE, 16 mm lens, ring light | 2: top and bottom | Basler ace 2 a2A2840-14gcPRO | label gate, 520 mm from the infeed | right label on the right side, print, label centring; the top camera also reads the stamper number in the run-out | 1,119 (Basler web shop); lens and ring light 300 to 800 (estimate) | | Laser distance sensor | 2 | Micro-Epsilon optoNCDT 1420 | under the record, at 90 and 130 mm radius; analog output to the EtherCAT analog input | warp: height traced round two circles during the turn | from EUR 470 list; ILD1420-25 about 1,600 at a reseller | | Servo encoder, 17-bit | 2: spindle and conveyor | StepperOnline A6-EC100L2A1-M17 kit | in each motor; position over EtherCAT | spindle angle for the sequence and the warp traces; conveyor travel | in the kit, 123.29 | -| Incremental encoder, RS-422 line driver, 2,500 to 5,000 pulses a turn | 1 | Omron E6B2-CWZ1X class | on the spindle shaft | A/B clock both line-scans; the index latches the servo position through the drive's touch probe | 60 to 300 (estimate) | +| Incremental encoder, RS-422 line driver, 2,000 to 2,500 pulses a turn | 1 | Omron E6B2-CWZ1X class | on the spindle shaft | A/B clock both line-scans; A/B and the index go to the EL5101 encoder terminal, which counts the spindle angle | 53 to 282 (geizhals.de, October 2026) | | Diffuse photoelectric sensor | 3 | any industrial make | looking up through the open centre: infeed, label trigger, outfeed | a record at the infeed starts the cycle; the trigger fires the label cameras; a full outfeed holds the next record | 50 to 150 (estimate) | | Through-beam photoelectric sensor | 1 pair | any industrial make | across the conveyor at the inspection position | the record's leading edge; stops the belts over the chuck | 50 to 150 (estimate) | | Cylinder position switch | 6 | SMC D-M9 class | lift (up, down), reject pusher (home, out), mandrel (open, clamped) | confirms each move before the next step | 25 to 60 (estimate) | @@ -314,12 +314,14 @@ every 28 s; together that is 5 to 6 records a minute, against the 10 to carried to the pusher. **Control: EtherCAT** (decided October 2026; it replaces the small PLC -of the first draft). +of the first draft). The full plan, with the I/O list, geizhals.de +prices, safety circuit, bench test and build order, is in +[inline-qc-control-plan.md](inline-qc-control-plan.md). -- **Station controller:** a fanless mini PC, Intel N100 class with two - Intel i226 ports, from USD 162 on Alibaba to USD 279 to 469 at retail - ([listing](https://cards.keenable.ai/w/01a15225-b50f-7e20-b3c2-e5fdaafae28c), - [plugpcs](https://plugpcs.com/mini)). It runs NixOS with the PREEMPT_RT +- **Station controller:** a fanless mini PC, Intel N100 with Intel + i226-V ports, EUR 394 to 456 on + [geizhals.de](https://geizhals.de/mini-pc-barebone-netzwerk-pc-intel-n100-a2926989.html) + (October 2026). It runs NixOS with the PREEMPT_RT kernel, declared in the plant's clan like the edge PC. It is the EtherCAT master and runs the station sequence, which we write ourselves; there is no PLC. @@ -334,18 +336,20 @@ of the first draft). Its native igc driver for the i226 is listed for the 6.12 kernel, so with IgH, pin the 6.12 LTS kernel ([IgH device drivers](https://docs.etherlab.org/ethercat/1.6/doxygen/devicedrivers.html)). -- **On the bus, in one line:** the spindle drive, the conveyor drive, and - an EK1100 coupler with EL1809 (16 inputs: photoelectric sensors, - cylinder switches, door and e-stop status), EL2809 (16 outputs: valves, - stack light) and EL3102 (two analog inputs for the warp lasers; - [Beckhoff](https://www.beckhoff.com/en-us/products/i-o/ethercat-terminals/el-ed3xxx-analog-input/el3102.html)). - The cycle is 1 ms with distributed clocks. The spindle runs in cyclic - synchronous position mode, the conveyor in cyclic synchronous velocity. +- **On the bus, in one line:** an EK1100 coupler with EL1809 (16 + inputs: photoelectric sensors, cylinder switches, door and e-stop + status), EL2809 (16 outputs: valves, stack light), EL3152 (two 4 to + 20 mA inputs for the warp lasers) and EL5101 (spindle encoder), then + the spindle drive and the conveyor drive at the end of the line. The + small A6-200EC takes its control power from the main supply, so it + leaves the bus when the safety contactors open; at the end it cuts + nothing else off. The cycle is 1 ms with distributed clocks. The + spindle runs in cyclic synchronous position mode, the conveyor in + cyclic synchronous velocity. - **Warp traces:** the lasers are sampled in the same cycle as the - spindle position, so each trace comes with its angles: about 1,000 - points a turn at 1 ms (our arithmetic). The EL3102 takes ±10 V; if the - lasers are ordered with a current output, an EL3152 (4 to 20 mA) takes - its place. + spindle encoder count, so each trace comes with its angles: about + 1,000 points a turn at 1 ms (our arithmetic). The optoNCDT 1420 has a + 4 to 20 mA output, hence the EL3152 rather than a voltage terminal. - **Safety stays hardwired:** the e-stop and the door switch sit on a safety relay that drops a contactor in the drive supply. The 100 W kit has no STO input; in the A6-EC list, STO versions start at 400 W. @@ -379,8 +383,8 @@ By group, per station: | Handling | 1.9k to 4.5k | guided lift cylinder, 100 W EtherCAT spindle servo, spindle head with mandrel, rodless cylinder, pneumatics | | Vision | 7.7k to 12.5k | 2 line-scans, 2 colour cameras, lenses, 2 coaxial, 4 dark-field and 2 backlights, 2 ring lights, controllers | | Sensors | 1.5k to 4.6k | 2 laser distance sensors, presence and stop sensors, cylinder switches, spindle encoder | -| Control | 3.6k to 8.0k | EtherCAT controller and I/O, edge PC with GPU, HMI, safety, cabinet and wiring | -| **Total** | **16k to 33k (0.53M to 1.09M THB)** | thermal camera (USD 2.1k to 3.0k) not included | +| Control | 4.4k to 8.1k | EtherCAT controller and I/O, edge PC with GPU, HMI, safety, cabinet and wiring | +| **Total** | **17k to 33k (0.56M to 1.09M THB)** | thermal camera (USD 2.1k to 3.0k) not included | **Open points for the machine builder.** @@ -423,7 +427,7 @@ October 2026). - **What it gains.** - Warp and centring are measured on settled records, so the reading is the release value; no separate sampling of cooled records is needed. - - One station instead of two: USD 16k to 33k instead of 50k to 105k + - One station instead of two: USD 17k to 33k instead of 50k to 105k (estimates). - The Classic needs no change to its unloader. - The questions about warm records drop out: sag on the rim belts and @@ -508,9 +512,9 @@ simulated. | Item | Estimate | |---|---| -| Hardware per station, from the [bill of materials](inline-qc-station/inline-qc-station-bom.csv) | USD 16k to 33k (0.53M to 1.09M THB) | +| Hardware per station, from the [bill of materials](inline-qc-station/inline-qc-station-bom.csv) | USD 17k to 33k (0.56M to 1.09M THB) | | First station: frame build and machined parts, lighting trials, software, training data | 2 to 4 person-months, USD 15k to 40k (our own team with a local machine builder) | -| Launch plant: one station for both presses, after cooling | the hardware above, USD 16k to 33k, plus the first-station work (about USD 31k to 73k in all, 1.0M to 2.4M THB) | +| Launch plant: one station for both presses, after cooling | the hardware above, USD 17k to 33k, plus the first-station work (about USD 32k to 73k in all, 1.1M to 2.4M THB) | All three figures are estimates; the bill of materials names a source for each priced line. They fit inside the existing metrology launch-tier line, USD 170k to 460k for XRF, inline vision and the audio @@ -542,13 +546,12 @@ vision share is not yet confirmed. cycle, side; see [digital factory](../digital-factory.md)). 4. **Warp sensors.** Choose between two point lasers and a line profiler once the trials show whether a thickness map is worth the extra cost. -5. **EtherCAT bench.** Before the frame is built, run one A6-EC kit, an - EK1100 with the three terminals and the spindle encoder from the mini - PC with EtherCrab: distributed clocks at 1 ms, cyclic synchronous - position on the drive, the touch probe latching the encoder index, and - the cycle jitter measured under load. The drive's EtherCAT description - file is on the StepperOnline product page. If EtherCrab falls short on - the drive, repeat the test with the IgH master. +5. **EtherCAT bench.** Before the frame is built, run one A6-EC kit, the + EK1100 with its terminals and the spindle encoder from the mini PC + with EtherCrab: eight tests and pass marks are in the + [control plan](inline-qc-control-plan.md#7-bench-test-before-the-frame-is-built) + (about THB 64,000 of parts, all reused in the station). If EtherCrab + falls short on the drive, repeat the test with the IgH master. 6. **Acceptance test.** Write it before ordering. It should cover the detection rate per defect class on the trial set, the false-reject rate on good records (black and specials apart), and every result diff --git a/docs/equipment/inline-qc-control-plan.md b/docs/equipment/inline-qc-control-plan.md new file mode 100644 index 0000000..c48bf73 --- /dev/null +++ b/docs/equipment/inline-qc-control-plan.md @@ -0,0 +1,281 @@ +# Optical QC station: EtherCAT control plan + +How the [inline optical QC station](inline-optical-qc.md) is controlled, +wired, priced, built and tested. Decided in October 2026: EtherCAT, no +PLC, and the 100 W StepperOnline servo kit on both axes. Prices for the +EtherCAT parts were checked on [geizhals.de](https://geizhals.de/) on +19 October 2026. The station hardware itself (frame, cameras, lights, +lasers) is in the station doc and its +[bill of materials](inline-qc-station/inline-qc-station-bom.csv). + +## 1. What is decided + +| Part | Choice | Why | +|---|---|---| +| Fieldbus | EtherCAT, 1 ms cycle, distributed clocks | one cable for drives and I/O; the laser samples and the spindle position come from the same cycle | +| Spindle drive | StepperOnline A6-EC100L2A1-M17 (100 W, A6-200EC drive), cyclic synchronous position, 1:6 timing belt | torque need about 0.02 N·m at the motor against 0.32 N·m rated; the belt brings the load inertia to about 28 times the rotor (station doc) | +| Conveyor drive | the same kit, cyclic synchronous velocity | one spare covers both axes | +| Controller | fanless Intel N100 mini PC with Intel i226-V ports, NixOS with a real-time kernel | open source stack, declared in the plant's clan like every other machine | +| Master software | EtherCrab (Rust, MIT or Apache-2.0); IgH EtherCAT Master as the fallback | EtherCrab fits the Rust factory application; IgH is older and proven | +| Camera clock | separate RS-422 encoder on the spindle shaft | the A6-EC drive has no divided encoder output | +| Safety | hardwired: safety relay, two contactors in the drive supply | the 100 W kit has no STO; the 400 W STO kit's manual names no safety rating (station doc) | + +## 2. Bus layout + +``` +Station controller (N100, NixOS, real-time kernel) + | + |-- port 1 (i226-V) == EtherCAT ==> EK1100 coupler + | |-- EL1809 16 digital inputs + | |-- EL2809 16 digital outputs + | |-- EL3152 2 analog inputs (warp lasers, 4 to 20 mA) + | |-- EL5101 spindle encoder (A, B, index) + | |-- EL9011 end cap + | | + | X2 out ==> A6-200EC spindle (CSP) + | ==> A6-200EC conveyor (CSV) + | + |-- port 2 (i226-V) -- plain Ethernet --> edge PC, plant OT network + +Spindle encoder (RS-422, 5 V from the EL5101) + A, B ---> racer 2 line-scan 1 ---> racer 2 line-scan 2 ---> EL5101 (A, B, index) +``` + +- **The drives sit at the end of the line.** On the small A6-200EC the + control electronics share the main supply; there are no separate + control-power terminals ([A6-EC manual](https://www.omc-stepperonline.com/download/A6-EC_series_servo_drive_manual.pdf), + specification table). So when the safety contactors open, both drives + leave the bus. At the end of the line that cuts nothing else off: the + coupler, the I/O and the encoder count stay up, and the master can read + the e-stop and door status and bring the drives back after the reset. + The distributed-clock reference also sits on the I/O side for the same + reason. +- **One RS-422 line, three receivers.** The encoder's line driver feeds + both cameras and the EL5101 in a chain (RS-422 allows up to ten + receivers). The racer 2 inputs take RS-422 with a switchable 120 Ω + terminator ([Basler](https://docs.baslerweb.com/io-control-racer-2-l-xl)). + Only the last receiver on the line is terminated; check on the bench + whether the EL5101 input already is. +- **Port 2 is ordinary Ethernet** to the edge PC and the plant's OT + network (VLAN as in [digital factory](../digital-factory.md)). The + EtherCAT port is a point-to-point cable to the EK1100, never a switch. + +## 3. Signals + +**EL1809, 16 inputs (24 V):** + +| Ch | Signal | Device | +|---|---|---| +| 1 | record at the infeed | diffuse photoelectric sensor | +| 2 | label trigger (also wired straight to the two colour cameras' trigger inputs) | diffuse photoelectric sensor | +| 3 | record at the inspection position (also to the conveyor drive's touch probe 1, CN1 DI5) | through-beam pair | +| 4 | outfeed full | diffuse photoelectric sensor | +| 5, 6 | lift up, lift down | cylinder switches | +| 7, 8 | mandrel open, mandrel clamped | cylinder switches | +| 9, 10 | pusher home, pusher out | cylinder switches | +| 11 | safety relay status | PNOZ s3 semiconductor output | +| 12 | door closed (status contact) | safety door switch | +| 13 | contactors closed | contactor auxiliary contact | +| 14 | reset pressed | second contact on the reset button | +| 15 | air pressure ok | pressure switch on the FRL | +| 16 | spare | | + +**EL2809, 16 outputs (24 V, 0.5 A):** lift up, lift down, mandrel clamp, +pusher out, pusher back, stack light green, amber and red, buzzer, light +controllers on (lights only during the turn), reset-button lamp; five +spare (an ionising bar at the infeed is one candidate). + +**EL3152, 2 analog inputs:** the two optoNCDT 1420 lasers at 90 and 130 mm +radius. Their analog output is 4 to 20 mA; voltage only comes through a +load resistor in the cable +([Micro-Epsilon manual](https://micro-epsilon.com/download/manuals/man--optoNCDT-1420--en.pdf)), +so the current-input EL3152 replaces the ±10 V EL3102 of the first draft. + +**EL5101:** spindle encoder A, B and index. It counts the spindle angle +directly (not the motor behind the belt) and latches the count at the +index once a turn. + +**Drive inputs:** only the conveyor drive's touch probe 1 is used: the +through-beam latches the conveyor position at the record's leading edge, +so the stop over the chuck does not depend on the 1 ms cycle or the +input filter. + +**Process data per drive.** The A6-EC has one freely mapped RPDO and +TPDO plus fixed sets; the fixed 1702h set carries control word, target +position, target velocity and mode together (manual, PDO section), so +both drives can share one mapping and differ only in the mode (8 for +CSP, 9 for CSV). The drive runs only in DC sync mode; its SYNC0 period +range depends on the mode, so the 1 ms cycle is the first bench check. + +## 4. Prices from geizhals.de + +Lowest listed price on 19 October 2026, in EUR including 19% German VAT; +THB at 38.115 per EUR. + +| Part | Qty | Example | EUR | THB | Source | +|---|---|---|---|---|---| +| Station controller | 1 | ANDAQI RS55 (6 × i226-V) / MNBOXCONET P2-N100 (2 × i226-V, fanless) | 393.99 to 455.99 | 15,017 to 17,380 | [geizhals](https://geizhals.de/mini-pc-barebone-netzwerk-pc-intel-n100-a2926989.html) | +| EtherCAT coupler | 1 | Beckhoff EK1100 | 150.75 | 5,746 | [geizhals](https://geizhals.de/144468496) | +| 16 digital inputs | 1 | Beckhoff EL1809 | 93.97 | 3,582 | [geizhals](https://geizhals.de/1371087148) | +| 16 digital outputs | 1 | Beckhoff EL2809 | 102.97 | 3,925 | [geizhals](https://geizhals.de/1371087504) | +| 2 analog inputs, 4 to 20 mA | 1 | Beckhoff EL3152 | 208.90 | 7,962 | [geizhals](https://geizhals.de/185886294) | +| Encoder interface, RS-422 | 1 | Beckhoff EL5101 | 291.04 | 11,093 | [geizhals](https://geizhals.de/2974477757) | +| End cap | 1 | Beckhoff EL9011 | 4.33 | 165 | [geizhals](https://geizhals.de/455904583) | +| Spindle encoder | 1 | E6B2-CWZ1X 2000 P/R (marketplace) / GHH60 2500 P/R line driver | 45.52 to 187.83 | 1,735 to 7,159 | [geizhals](https://geizhals.de/6925000400) | +| Safety relay | 1 | Pilz PNOZ s3 750103 | 148.38 | 5,656 | [geizhals](https://geizhals.de/pilz-pnoz-s3-24vdc-2-n-o-750103-a3204143.html) | +| Contactor, 24 V DC coil | 2 | Siemens 3RT2015 | 27.95 each | 2,131 | [geizhals](https://geizhals.de/siemens-leistungsschuetz-3rt2015-1bb41-a3269085.html) | +| E-stop button | 1 | Schneider Harmony, 40 mm head | 45.08 | 1,718 | [geizhals](https://geizhals.de/208045150) | +| HMI touch monitor 10.1 inch | 1 | iiyama ProLite TF1015MC-B3 | 311.90 | 11,888 | [geizhals](https://geizhals.de/iiyama-prolite-tf1015mc-b3-a3228748.html) | +| 24 V supply, 120 W | 1 | Mean Well SDR-120-24 | 38.87 to 47.35 | 1,482 to 1,805 | [geizhals](https://geizhals.de/980542712) | +| Servo kit 100 W, EtherCAT | 2 | StepperOnline A6-EC100L2A1-M17 | USD 123.29 each | 8,137 | not on geizhals; [StepperOnline](https://www.omc-stepperonline.com/a6-series-100w-ethercat-ac-servo-motor-kit-3000rpm-0-32nm-17-bit-absolute-encoder-ip67-a6-ec100l2a1-m17), China warehouse | +| **Total** | | | **1,891.60 to 2,104.39 + USD 246.58** | **80,235 to 88,346** | | + +Notes on the prices: + +- **German VAT comes off, Thai duty and VAT go on.** For an order + shipped to Thailand the 19% German VAT is not charged; Thai import VAT + (7%) and duty are added. The listed gross price is therefore used as + the landed low end; the bill of materials adds 30% for shipping and a + Thai distributor as the high end (estimate). +- **EK1100:** geizhals has no current offer; EUR 150.75 is the last + price, with EUR 255.43 at the top of the range. +- **Mini PCs** on geizhals are marketplace brands (ANDAQI, MNBOXCONET, + AIOPCWA). Before ordering, check that the ports are i226-V (not the + older i225) and that the BIOS lets C-states be switched off. +- **Encoder:** the EUR 45.52 E6B2-CWZ1X listings come from marketplace + sellers and may be copies; the bench test decides whether one is good + enough. A genuine Omron or a 2,500-pulse line-driver encoder (GHH60, + EUR 187.83) is the fallback. +- **Contactors:** the price is for 3RT2015-1BB41 (one NO auxiliary + contact). The feedback loop needs the NC version, 3RT2015-1BB42 + (price not checked; same class). +- **Not on geizhals:** the servo kits (StepperOnline direct), the optoNCDT + lasers and the Basler cameras (both in the station bill of materials). + +Bill of materials effect: the control group comes to USD 4.4k to 8.1k +(edge PC with GPU and the cabinet lot included) and the station to +**USD 16.9k to 33.1k (THB 0.56M to 1.09M)**, up from 16.1k to 32.9k, +mostly the EL5101 and the retail price of the mini PC. + +## 5. Software on the station controller + +**Operating system (NixOS module in the plant's clan):** + +- Kernel 6.12 LTS with PREEMPT_RT, which is in the mainline kernel since + 6.12. The same kernel suits the IgH fallback, whose native i226 (igc) + driver is listed for 6.12 + ([IgH device drivers](https://docs.etherlab.org/ethercat/1.6/doxygen/devicedrivers.html)). +- One core isolated for the bus loop (`isolcpus`, `nohz_full`, + `rcu_nocbs`), the EtherCAT port's interrupts pinned to it, deep + C-states and Energy Efficient Ethernet off on that port. +- The station service runs under systemd with real-time priority and + restarts on failure; logs go to the plant's log store. + +**Station service (Rust, one program, written by us):** + +1. **Bus loop:** EtherCrab every 1 ms with distributed clocks; brings + all slaves to OP, maps the drive PDOs, runs the CiA402 state machine + of both drives, and re-adds a drive that left the bus after an + e-stop. +2. **Sequence:** one state machine per record: wait at the infeed, + convey, stop on the latched leading edge, lift, clamp, one turn, + unclamp, lower, convey out, push if rejected. Every step has a + timeout and a fault text (for example "lift up not reached in 0.8 s"). +3. **Measurement:** during the turn, each cycle stores the EL5101 count + and both laser values, about 1,000 points a turn at one turn a + second. The laser output lags 750 µs at 4 kHz (Micro-Epsilon), a fixed + offset of about 0.3° at that speed, corrected in software. Edge + run-out and dish are computed at the end of the turn. +4. **Edge PC link** over port 2: record in place, turn started, turn + done with the warp values; the edge PC answers with the verdict and + the reason. No answer in time means reject and an alarm. +5. **HMI:** a web page served by the same program and shown on the touch + monitor in a kiosk browser: state, last results, alarms, counters, and + a setup mode (jog, single steps) that works only with the door shut. + +The cameras keep their clock in hardware: the encoder pulses go straight +into the racer 2 encoder input, and the camera's frequency converter +scales them to the line count the optics need +([Basler](https://docs.baslerweb.com/frequency-converter)). No software +sits between the spindle and the line timing. + +## 6. Safety + +- **Circuit:** e-stop (two channels) and the tunnel door switch (two + channels) on a Pilz PNOZ s3 with a monitored manual reset. Its two + safety contacts switch two contactors in series in the 230 V supply of + both drives; the contactors' NC mirror contacts sit in the relay's + feedback loop. A dump valve on the FRL, wired with the contactor + coils, vents the cylinders at the same time. +- **Stop category 0:** power off at once. Both axes carry a few + kg·cm², so they coast to a stop in well under a second (estimate). If + the risk assessment asks for a controlled stop first (category 1), a + relay with delayed outputs (Pilz PNOZ s5 class) lets the master brake + the axes before the power goes. +- **Target:** PL d (estimate). A risk assessment to ISO 12100 and + ISO 13849-1 by the machine builder decides; it is part of the + acceptance test. +- **After a stop:** reset, the drives power up and rejoin the bus, the + master takes them back to OP, and the spindle angle comes from the + EL5101 count, which never lost power. + +## 7. Bench test, before the frame is built + +**Parts:** one servo kit, the mini PC, the EK1100 with the four I/O +terminals and the end cap, the spindle encoder, the PNOZ s3, two +contactors, the e-stop and the 24 V supply: EUR 1,579.70 on geizhals +plus USD 123.29, about **THB 64,000 (USD 1,950)**. Every part goes into +the station afterwards. One laser and one line-scan camera, ordered +early from the station list, make the test complete. A reject record on +a test mandrel is the load. + +| # | Test | Pass (our targets) | +|---|---|---| +| 1 | EtherCrab brings coupler, terminals and drive to OP with distributed clocks at 1 ms | all slaves in OP, no lost frames over 24 h | +| 2 | Cycle timing under load: images streaming on port 2, HMI open, CPU stress on the other cores | worst-case jitter under 50 µs over 24 h | +| 3 | Spindle in CSP: one turn a second, 0.15 s run-up | stop repeatable within ±0.1° at the spindle | +| 4 | EL5101 count against the servo position | exactly 6 motor turns per spindle turn over 1,000 turns, index latched every turn | +| 5 | Laser through the EL3152 on the reject record | the warp trace repeats turn to turn within 0.05 mm, a tenth of the smallest edge run-out limit (0.5 mm, Mobineko) | +| 6 | Camera clock: racer 2 on the encoder chain | the set number of lines every turn, none missed over 100 turns | +| 7 | Conveyor (same drive in CSV): through-beam on touch probe 1 | position latched on every pass | +| 8 | E-stop and door | contactors open, drive leaves the bus, I/O stays in OP; drive back in OP within 10 s of the reset | + +If EtherCrab fails tests 1, 2, 3 or 8 and a week of work does not fix +it, repeat them with the IgH master on the same kernel. The station +service keeps the bus loop behind one interface, so only that part +changes. + +## 8. Build order and timing (estimates) + +| Weeks | Step | Who | +|---|---|---| +| 1 to 3 | order the bench parts; servo kits from StepperOnline's China warehouse, Beckhoff and the rest from Germany or a Thai distributor | us | +| 3 to 6 | bench test (section 7) | us | +| 5 to 9 | cabinet schematic (QElectroTech, open source) and cabinet build; station service and HMI | us, with a panel builder in Chiang Mai if needed | +| 7 to 11 | frame, conveyor, spindle head and pneumatics | machine builder | +| 10 to 12 | cabinet on the frame, wiring, drive tuning on the real spindle, first records | us and the machine builder | +| 12 to 14 | risk assessment, acceptance test, then into production behind the cooling racks | us and the machine builder | + +So the control work should start about four months before the first +records need checking (estimate). + +## 9. Spares + +One servo kit (covers both axes), one spindle encoder and one contactor: +about USD 210 at the prices above. The Beckhoff terminals are not +stocked at launch; a failed one is a few days by courier from Europe +(estimate). + +## 10. Open points + +1. **EtherCrab with the A6-EC drive** is untested; its CiA402 support is + basic. The bench answers it, with IgH as the fallback. +2. **SYNC0 range of the A6-EC** at 1 ms in CSP and CSV: not in the + material read so far; the bench checks it. +3. **EL5101 termination** and the RS-422 chain with three receivers. +4. **Local prices:** ask a Thai Beckhoff source for a quote before + ordering from Germany. +5. **Risk assessment** by the machine builder: confirms PL d and stop + category 0, or asks for the delayed relay. +6. Still open from the station doc: 7"/10" quick change, anti-static at + the infeed, belt tension against the motor's 78 N radial load. diff --git a/docs/equipment/inline-qc-station/annotate_render.py b/docs/equipment/inline-qc-station/annotate_render.py index b1f9c02..49c651d 100644 --- a/docs/equipment/inline-qc-station/annotate_render.py +++ b/docs/equipment/inline-qc-station/annotate_render.py @@ -14,7 +14,7 @@ TITLE = "Inline optical QC station" SUBTITLE = ("Every record checked on both faces in one turn: surface, label, warp and centring. " "Failed records leave the line automatically.") FOOTER = ("CNX Vinyl, concept model (FreeCAD); bought parts drawn as outlines. 1.9 × 0.65 × 1.5 m, " - "front panels and lid removed for the view. Hardware about USD 16k to 33k per station (estimate).") + "front panels and lid removed for the view. Hardware about USD 17k to 33k per station (estimate).") NAVY, GREY, LINE = (18, 53, 91), (85, 95, 105), (60, 74, 90) diff --git a/docs/equipment/inline-qc-station/inline-qc-station-annotated.png b/docs/equipment/inline-qc-station/inline-qc-station-annotated.png index 1a55fae..d4213d1 100644 Binary files a/docs/equipment/inline-qc-station/inline-qc-station-annotated.png and b/docs/equipment/inline-qc-station/inline-qc-station-annotated.png differ diff --git a/docs/equipment/inline-qc-station/inline-qc-station-bom.csv b/docs/equipment/inline-qc-station/inline-qc-station-bom.csv index 34a04f7..a6d5c3a 100644 --- a/docs/equipment/inline-qc-station/inline-qc-station-bom.csv +++ b/docs/equipment/inline-qc-station/inline-qc-station-bom.csv @@ -13,7 +13,7 @@ Handling,"Guided lift cylinder, 20 mm bore, 75 mm stroke",1,SMC MGPM20-75,330,45 Handling,"Spindle servo kit 100 W, EtherCAT (A6-200EC drive), cyclic synchronous position; 1:6 timing belt to the spindle",1,StepperOnline A6-EC100L2A1-M17,123,300,123,300,"USD 123.29 kit, China warehouse (StepperOnline, Oct 2026); high end allows for shipping and duty (estimate)" Handling,"Spindle head: bearing housing, timing belt, label pad, pneumatic expanding mandrel",1,machined parts,600,1800,600,1800,estimate Handling,"Rodless cylinder 25 mm, 350 mm stroke, with paddle",1,SMC MY1B / CY3B class,400,900,400,900,estimate -Handling,"Valve terminal, FRL, tubing, fittings",1 lot,,400,1000,400,1000,estimate +Handling,"Valve terminal, FRL with a dump valve switched by the safety relay, pressure switch, tubing, fittings",1 lot,,400,1000,400,1000,estimate Vision,"4k monochrome line-scan camera, GigE",2,Basler racer 2 r2L4096 / Hikrobot MV-CL042-91GM,857,1088,1714,2176,Basler web shop via price listing Vision,"Line-scan lens, 50 mm",2,,300,800,600,1600,estimate Vision,Coaxial line light,2,,295,446,590,892,made-in-china listing USD 295 to 349; Vision Datum USD 420; light186 from USD 446 @@ -24,14 +24,19 @@ Vision,Lens 16 mm,2,,150,400,300,800,estimate Vision,Ring light,2,,150,400,300,800,estimate Vision,Strobe and light controllers,2,,300,800,600,1600,estimate Sensors,"Laser distance sensor, 50 mm range",2,Micro-Epsilon optoNCDT 1420,520,1600,1040,3200,"list from EUR 470 (Micro-Epsilon); ILD1420-25 about USD 1,600 (Radwell)" -Sensors,Photoelectric presence sensors and one through-beam,5,,50,150,250,750,each; estimate +Sensors,Photoelectric presence sensors and one through-beam (the through-beam also to the conveyor drive's touch probe),5,,50,150,250,750,each; estimate Sensors,"Cylinder position switches (lift up/down, pusher home/out, mandrel open/clamped)",6,SMC D-M9 class,25,60,150,360,each; estimate -Sensors,"Spindle incremental encoder, RS-422 line driver, 2,500 to 5,000 pulses a turn: A/B clock both line-scans, index to the servo touch probe",1,Omron E6B2-CWZ1X class,60,300,60,300,estimate +Sensors,"Spindle incremental encoder, RS-422 line driver, 5 V, 2,000 to 2,500 pulses a turn: A/B clock both line-scans, A/B/Z to the EL5101",1,Omron E6B2-CWZ1X 2000 P/R class,53,282,53,282,"E6B2-CWZ1X 2000 P/R listing EUR 45.52 to GHH60 2500 P/R line driver EUR 187.83 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT; marketplace sellers, test on the bench); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" Sensors,"Thermal camera (option, not in the total)",0 (1 optional),Optris Xi 400,2100,3000,0,0,"from EUR 1,950 (Optris); USD 2,995 (moviTHERM)" -Control,"EtherCAT station controller: fanless mini PC, Intel N100 class, 2x Intel i226, NixOS with PREEMPT_RT, open-source EtherCAT master (EtherCrab or IgH)",1,Topton / CWWK N100 2x i226 class,162,470,162,470,"from USD 162 (Alibaba listing) to 279 to 469 at retail (plugpcs.com, Newegg), Oct 2026" -Control,"EtherCAT I/O: EK1100 coupler, EL1809 16 DI, EL2809 16 DO, EL3102 2 AI (warp lasers), end terminal",1 set,Beckhoff,430,780,430,780,EK1100 USD 131 (industrialsupplygroups); EL1809 EUR 78 net (industry-electronics); EL2809 USD 99 net (TME); EL3102 EUR 111 (automation-base) to USD 290 (plcpartssolution); Oct 2026 +Control,"EtherCAT station controller: fanless mini PC, Intel N100, 2 or more Intel i226-V ports, NixOS with PREEMPT_RT, open-source EtherCAT master (EtherCrab, IgH fallback)",1,ANDAQI RS55 / MNBOXCONET P2-N100 / AIOPCWA AI201-TF,455,685,455,685,"EUR 393.99 to 455.99 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/mini-pc-barebone-netzwerk-pc-intel-n100-a2926989.html); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,EtherCAT coupler,1,Beckhoff EK1100,174,295,174,295,"EUR 150.75 to 255.43, no current offer (geizhals.de/144468496, 19 Oct 2026)" +Control,"16 digital inputs, 24 V: photoelectric sensors, cylinder switches, safety status",1,Beckhoff EL1809,109,141,109,141,"EUR 93.97 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/1371087148); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,"16 digital outputs, 24 V, 0.5 A: valves, stack light, light enable",1,Beckhoff EL2809,119,155,119,155,"EUR 102.97 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/1371087504); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,"2 analog inputs, 4 to 20 mA: the two warp lasers",1,Beckhoff EL3152,241,314,241,314,"EUR 208.90 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/185886294); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,"Incremental encoder interface, RS-422, 5 V encoder supply: spindle encoder count and index latch",1,Beckhoff EL5101,336,437,336,437,"EUR 291.04 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/2974477757); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,End cap,1,Beckhoff EL9011,5,7,5,7,"EUR 4.33 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/455904583); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" Control,"Edge PC with GPU, 4 GigE PoE ports, NixOS",1,,1500,3200,1500,3200,"qscompute buying guides 2026: USD 1,490 to 3,200" -Control,"HMI touch panel, 10 inch, showing the station's browser page",1,,400,900,400,900,estimate -Control,"Safety relay, e-stop, door interlock wiring, contactor in the drive supply (the 100 W kit has no STO)",1 lot,,300,600,300,600,estimate -Control,"Cabinet, power supply, breakers, terminals, wiring, stack light",1 lot,,800,2000,800,2000,estimate -Total,"Hardware per station, thermal camera excluded",,,,,16112,32938,sum of the lines above +Control,"HMI: 10.1 inch PCAP touch monitor, 7H glass, showing the station's browser page",1,iiyama ProLite TF1015MC-B3,360,468,360,468,"EUR 311.90 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT: geizhals.de/iiyama-prolite-tf1015mc-b3-a3228748.html); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,"Safety: relay for e-stop and door switch, 2 contactors in series in the drive supply (the 100 W kit has no STO), e-stop button, reset button",1 lot,"Pilz PNOZ s3 750103, Siemens 3RT2015 24 V DC coil, Schneider Harmony e-stop",300,389,300,389,"PNOZ s3 EUR 148.38, 3RT2015-1BB41 EUR 27.95 each, e-stop EUR 45.08 (geizhals.de, 19 Oct 2026, lowest listed price incl. 19% German VAT); reset button EUR 10 (estimate); high end +30% for shipping, Thai duty and VAT or a Thai distributor (estimate)" +Control,"Cabinet, 24 V 120 W supply, breakers, terminals, wiring, shielded EtherCAT patch cables, stack light",1 lot,Mean Well SDR-120-24 supply,800,2000,800,2000,"estimate; Mean Well SDR-120-24 from EUR 38.87 and shielded Cat5e patch cables from EUR 0.62 (geizhals.de, 19 Oct 2026)" +Total,"Hardware per station, thermal camera excluded",,,,,16912,33061,sum of the lines above diff --git a/docs/fleet-calculator.html b/docs/fleet-calculator.html index 8946ac6..b3dfb62 100644 --- a/docs/fleet-calculator.html +++ b/docs/fleet-calculator.html @@ -1609,7 +1609,7 @@ html[data-theme=light] .iso-svg .iso-glint { display: inline; } sc.inf("colourstore", "Colour store, ~180 m2", "About 100 pallet positions on four levels for tens of colours (estimate); weighing, mixing and vacuum conveying"); sc.inf("plantroom", "Central hydraulic and air plant room, ~62 m2", "Pump sets on one manifold with the accumulators, one compressed-air plant; ring mains with a valved tee at every press position (pressing-line.md)"); sc.inf("aisle", "Crane and forklift aisle, 4.5 m", "Along the back wall from the machine door to the finishing block: heavy moves need a floor-level path"); - sc.inf("trim", "Optical inspection after cooling", "One station checks every record of both presses after the cooling racks: surface (a line-scan camera per side), label, warp and centring in one turn. The finishing operator feeds it from the cooled stacks; good records go on to sleeving, rejects into the bin with the reason on the screen. Early lane: the first records of each run and after each stamper change go through warm. 1.9 x 0.65 x 1.5 m, about 10 to 12 records a minute against 5 to 6 from the launch plant; hardware about USD 16k to 33k (estimate) (inline-optical-qc.md). No separate trimmer: every Duplex cell and the Classic trim inline (pressing-line.md)"); + sc.inf("trim", "Optical inspection after cooling", "One station checks every record of both presses after the cooling racks: surface (a line-scan camera per side), label, warp and centring in one turn. The finishing operator feeds it from the cooled stacks; good records go on to sleeving, rejects into the bin with the reason on the screen. Early lane: the first records of each run and after each stamper change go through warm. 1.9 x 0.65 x 1.5 m, about 10 to 12 records a minute against 5 to 6 from the launch plant; hardware about USD 17k to 33k (estimate) (inline-optical-qc.md). No separate trimmer: every Duplex cell and the Classic trim inline (pressing-line.md)"); sc.inf("cooling", "Cooling racks", "Spindle stacks from both presses, labelled at the press (press, stamper set, first and last cycle), first in, first out. 24 h of cooling before sleeving is accepted practice, 8 h at the shortest (Stamper Discs, in inline-optical-qc.md): about one day of output, 2,800 to 3,100 records at the launch plant"); sc.inf("qc", "QC and listening", "Sampled audio comparison (about 1 in 50) and the listening point on the tour (quality-automation.md)"); sc.inf("packaging", "Finishing and packaging", "Packing tables, shrink wrap and pallet wrapper, ~170 m2 on the ground floor of the finishing and print block (14 x 25 m on two levels, print room reserved upstairs)");