- entities/zkteco-cmp200-barrier: terminal map from the CMP200 manuals, board photo findings (v1.2 layout, RS485 socket empty), relay-contact drive from the Dingtian, interlocked close relay, limit outputs as status inputs - concepts/passage-confirmation: barrier model open question answered for the unit on hand - decisions/appliance-provisioning: Komodo gotchas 14-16 from the park-lab reinstall (2026-11-13) - index and log entries Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5ofaSqgLGHMGSL3xYN
6.0 KiB
type, tags, sources, updated
| type | tags | sources | updated | |||||
|---|---|---|---|---|---|---|---|---|
| entity |
|
2026-11-14 |
ZKTeco CMP200 Barrier Gate
The boom barrier on hand. Its mainboard (silkscreen on our unit: TT-DZ-200504E-A1) drives an
AC capacitor-start motor through on-board relays; limits are Hall switches. Mains 110/220 V AC,
100 W rated. Not to be confused with the zkteco-controller (access panel, rejected).
Web research 2026-11-14. Sources: ZKTeco CMP200 user manual v1.0 (2019) and v1.2 (March 2022),
wiring diagrams read from the PDFs:
https://bsai.com.mx/cdn/shop/files/ZKTECO-CMP200-Barrera--Vehicular-Manual-de-Operacion-Ingles.pdf,
https://manuals.plus/zkteco/cmp200-automatic-barrier-gate-manual.pdf.
No public document names the TT-DZ-200504E-A1 board, but a photo of our unit (user, 2026-11-14)
matches the v1.2 layout: MOTOR UP/COM/DOWN, COM/RED/GREEN, L/N/E, O.LM OUT, C.LM OUT,
STOP/DOWN/UP/STUDY keys, status LEDs, and a 2x8 socket marked RS485. MCU is an STC 15W408AS
(8051 family); on-board transformer 220 V to 12 V / 600 mA; PCB date code 230602. The labels of
the low-voltage terminals sit under the plug-in connectors and were not visible — pull the plugs
to confirm them against the table.
Terminal map (manual)
| Terminal | Function | Signal |
|---|---|---|
G / STOP / DOWN / UP |
"Line-controlled interface": wired open/close/stop | dry contact, short to G |
G / DET |
vehicle (loop) detector | dry contact to G |
G / PHO |
infrared / "crash proof" sensor | dry contact to G |
CAR (v1.2 only) |
"count input" | dry contact to G; behaviour undocumented |
RS485 B / A / G (v1.2 only) |
"communication module" | see below |
+12V / G, +5V / G |
auxiliary supply | 12 V total under 100 mA |
O.LM OUT, C.LM OUT |
open-limit and close-limit relay outputs | volt-free NO/COM/NC each |
G / C.LM / O.LM |
external limit junction | — |
MOTOR UP/COM/DOWN, LAMP COM/RED/GREEN, L/N/E |
motor, AC traffic lamp, mains | mains voltage |
The v1.0 board has no RS485 and no CAR. The 4-pin REMOTE header takes the 433 MHz receiver.
Behaviour the manual states
UPduring a fall reverses to rising at once.DOWNduring a rise is ignored.STOPhalts.PHOshorted during a fall: reverse to open, then stay open.DETshorted during a fall: reverse to open, then close automatically when released.DETshorted while open or rising: the boom falls by itself once the detector clears. SoDETis both anti-smash and auto-close-after-passage, done in the barrier's own firmware.- Timeout protection stops the motor if a travel exceeds the rise/fall time.
- No menu, no parameters, no auto-close timer are documented. Power-loss behaviour is not stated beyond "manual release motor" — the boom does not lift by itself.
Driving it from the dingtian-relay
Relay contact, not RS485. ZKTeco's own integration drawings (LPR camera, inBio260) wire a relay
COM → G and NO → UP. That is exactly our pulseOpen: one Dingtian relay, COM to G, NO to
UP, jogged. It expresses intent only and never times a close (barrier-not-a-door).
- Closing normally comes from the loop/radar on
DET, in barrier firmware. Without a vehicle trippingDETthe boom stays up — the abandoned-entry free pass of passage-confirmation. - Host close (only under passage-confirmation's conditions): a second relay on
DOWN, interlocked in series so it is dead while the open relay is active — relay 1COM → G,NO → UP,NC →relay 2COM; relay 2NO → DOWN. Never one relay withNC → DOWN(a permanent close command; closes on controller power loss). Per the manual aDETorPHOcontact reverses a falling boom, so the close is not blind if a detector is fitted — to be proven on the unit (test plan steps 2–3 there) before any use. - Status back to the host:
O.LM OUTandC.LM OUTare volt-free contacts, so they can go straight onto two Dingtian inputs (contact to GND, like the button). That gives the host a real "boom reached open / closed" signal for device-status-monitoring and for the anomaly "boom opened with no signed host command" (threat-model). - Sharing a detector: a radar/loop with one dry contact cannot feed both
DETand a Dingtian input directly (two different supplies on one contact). Use a detector with two relay outputs or an interposing relay. - Keep the low-voltage terminals apart from the mains block on the same board edge.
RS485 — not a usable path today.
- The barrier's RS485 protocol is undocumented. The manual labels the terminals and a plug-in
"RS485 communication module" header and says nothing else: no baud, no address, no frames. On
our board the socket is empty — no module fitted, so the
B/A/Gterminals have no transceiver behind them and are dead as shipped. Manuals for similar ChineseDZ-family boards show a 4-byte, 9600 bps, XOR-checksum frame, but nothing ties that to this board — unverified. - The Dingtian's RS485 port is an inbound control channel (Modbus-RTU / Dingtian string: a
master commands the Dingtian). Stock firmware is not documented as an RS485 master or an
Ethernet-to-RS485 bridge, and our
harden()disables that channel.(unsourced beyond the programming manual's protocol list — check the vendor manual before relying on either way) - A serial "open" command would also be an unauthenticated open path on a wire in the lane cabinet — worse than the password-carrying relay frame we already have.
Open
- Pull the low-voltage plugs and read the silkscreen under them (
G DET CAR +12V G +5V G C.LM O.LMandG STOP DOWN UP / B A G / G PHOexpected). - What
CARdoes (probably queues several opens for a convoy) — test on the bench. - Fail-state: on power loss the boom holds position, so "exit fails open" (fail-state-safety) needs the manual release or a UPS, not this board.