Interlock loop (HVIL)
This page explains the interlock loop: what it is, why the device needs it, how to wire it for operation, and how to close it with a test jumper when you run a drive on the bench.
What it is
HVIL stands for high-voltage interlock loop, a method from electric vehicles. A PWM signal runs in a loop through every drive in the device. Each drive watches for that PWM signal. If the signal is lost anywhere, every drive on the loop goes to its safe state.
Note The drive runs from 48 V, which is below the high-voltage range. The name HVIL is kept because the method is the same.
Why the device needs it
A drive that is damaged, or whose cable is cut, may stop sending CAN messages. The other drives cannot tell that from silence on the bus quickly enough, and the host may not react in time. The loop tells every drive in hardware, without CAN, without the host, and without relying on firmware in the failed drive.
| Event | Loop | What every drive on the loop does |
|---|---|---|
| All connectors and cables in place | Closed | Runs normally |
| A connector unplugged | Open | Goes to its safe state |
| A cable cut or crushed | Open | Goes to its safe state |
| A drive damaged so that its loop path opens | Open | Goes to its safe state |
| Loop wire shorted to ground or supply | No PWM signal (the line is stuck at one level) | Goes to its safe state |
The safe state is the drive's fault reaction. See Safety for what a free joint means in your device.
Wiring for operation
Wire the loop as one chain through all drives. Each drive has one 2-pin HVIL connector: one pin is loop IN, the other is loop OUT.
loop source ──► [drive 1] IN → OUT ──► [drive 2] IN → OUT ──► ... ──► [drive n] IN → OUT ──► loop return
- Connect the loop source to loop IN of the first drive. Where the source sits (host board or first drive) is TBD.
- Connect loop OUT of each drive to loop IN of the next drive.
- Connect loop OUT of the last drive to the loop return. The return connection is TBD.
- Power on and read the loop state of every drive over CAN. Every drive should report the loop as closed.
The connector part and pin numbering are TBD; see Electrical and CAN wiring.
Bench testing with a test jumper
To run one drive on its own, close its loop with a test jumper instead of the loop harness.
You need:
- one HVIL test jumper (part TBD): a plug for the 2-pin HVIL connector that connects loop IN to loop OUT;
- a PWM loop source for the bench, if the drive does not generate the loop signal itself (depends on the loop start, TBD);
- the bench set-up from Getting started.
Steps:
- Switch the supply off.
- Unplug the loop harness from the drive.
- Plug the test jumper into the drive's 2-pin HVIL connector. The jumper connects loop IN to loop OUT.
- Switch the supply on and read the loop state over CAN. The drive should report the loop as closed.
- Check that the loop works: remove the jumper. The drive should switch torque off and report the loop as open.
- Refit the jumper to continue testing.
Warning A test jumper keeps the loop closed even if a cable is cut, so the drive no longer reacts to a damaged node. Use jumpers only on the bench. Remove every jumper and reconnect the loop harness before a person wears the device or before it runs without supervision. Mark jumpers so they are easy to see.
Check the loop after assembly
Do this once the device is assembled and every time you change its wiring.
- With all connectors in place, read the loop state on every drive. All should report closed.
- Unplug the loop connector at the last drive. Every drive should report open and switch torque off.
- Reconnect it. Whether the drives re-arm by themselves when the loop closes again, or need a command from the host, is TBD.
- Repeat step 2 at one connector in the middle of the chain.
Reference
| Item | Value |
|---|---|
| Loop signal | PWM; frequency, duty cycle and level TBD |
| Connector | One 2-pin HVIL connector per drive: loop IN and loop OUT. Connector part and pin numbering TBD |
| Loop start (source of the PWM) | TBD |
| Reaction time from loop open to torque off | TBD |
| Safe state | The drive's fault reaction; see Safety |
| Loop state on CAN | UDS DID TBD; CANopen object TBD |
| Re-arm after the loop closes | TBD |
| Test jumper part | TBD |