How It Works
Hardware Layout
Contactor is a predefined device type in the controller that handles the closing and opening of contactors based on manual control commands. A contactor device controls up to two contactors on a DC bus connection. The main contactor is required, the reference contactor is optional.- Main contactor: switches the positive line of the DC connection.
- Reference contactor (optional): switches the negative line of the DC connection.
Control
The contactor device is always in one of the following states:- Open: all contactors are open. The device waits for a
control.enablecommand to close the contactors. - Closed reference*: the reference contactor is closed first. The device waits for
holdReferenceInSecondsbefore continuing (*only if a reference contactor register is defined in the address map. If not, this state is skipped and the device immediately transitions to the Closed state). - Closed: the main contactor is closed. The DC bus is now fully connected through the main and reference contactors. The device returns to the
Openstate when acontrol.disablecommand is received, or if contactor feedback is enabled and a contactor is no longer in the expected state.
control.enable: closes the contactors.control.disable: opens the contactors.
Open state.
Required Parameters
To add a contactor device, the following parameters are required.A unique identifier for the device.Example:
contactor1Indicates the type of device. For this type of device, it is always
contactor.Example: contactorThe name of the device’s address map on the controller.Example:
contactor1_address_mapIndicates whether the device is enabled or disabled. A value of true means the device is disabled, while false means the device is enabled.
Optional Parameters
The following parameters are optional and provide additional functionality to the device.The duration in seconds the device remains in the
Closed reference state, with the reference contactor closed, before closing the main contactor. Defaults to 3 seconds if not specified.Example: 5Enables feedback for both contactors (main and reference) at once. When set to
true, this is equivalent to setting mainContactorFeedback and referenceContactorFeedback both to true.Indicates whether feedback is enabled for the main contactor. When enabled, the address map must contain a
measure.contactor.main register.Indicates whether feedback is enabled for the reference contactor. When enabled, the address map must contain both a
control.contactor.reference and a measure.contactor.reference register.