Add control
add_controlCreates a CTRL logic element in a fire-simulation project, defining logic, delay, PID, deadband, ramp, or math control from device, control, or constant inputs.
Instructions
Add a CTRL control logic element. FUNCTION_TYPE: logic ANY/ALL/NOT/XOR/X_OF_N(N), TIME_DELAY(delay), KILL/RESTART, DEADBAND(setpoint+setpoint2+on_bound), CUSTOM(ramp_id), PID(target_value+gains), math ABS/EXP/LOG/SIN/COS/ASIN/ACOS/ATAN/SUM/SUBTRACT/MULTIPLY/DIVIDE/POWER/MIN/MAX (with setpoint+trip_direction they act as boolean gates). INPUT_ID accepts device IDs, other CTRL IDs, or CONSTANT. [bulc-mcp rules] DEVC-004, DEVC-006 — bulc_knowledge_search ""
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | X_OF_N / XOR threshold count | |
| id | Yes | Control ID | |
| delay | No | Activation delay (s) | |
| latch | No | Allow only one state change (FDS default true; CUSTOM/PID/DEADBAND default false) | |
| ramp_id | No | CUSTOM transfer-function RAMP id | |
| constant | No | Value used when an input is 'CONSTANT' | |
| input_id | Yes | Input device/control IDs (or CONSTANT) | |
| on_bound | No | DEADBAND hysteresis direction: 'LOWER' (default) or 'UPPER' | |
| setpoint | No | Gate threshold (DEADBAND: lower bound) | |
| setpoint2 | No | DEADBAND upper bound | |
| target_value | No | PID target | |
| function_type | Yes | One of the 25 FUNCTION_TYPEs above | |
| initial_state | No | Start in true state | |
| integral_gain | No | PID Ki (default 0) | |
| trip_direction | No | +1 ascending (default) / -1 descending | |
| differential_gain | No | PID Kd (default 0) | |
| proportional_gain | No | PID Kp (default 1) |