ED — Event Definition
Defines events that trigger actions when signal conditions are met. The Antares 4G supports up to 100 events (E00–E99).
Format
- Query:
>QED{NN}< - Set:
>SED{NN}{H}{V}{D};{EQUATION}{SENSE}[;{ACT}CT={CMD};...]< - Response:
>RED{NN}{H}{V}{D};{EQUATION}{SENSE}<or>RED{NN}U<
| Field | Values | Description |
|---|---|---|
NN | 00–99 | Event index |
H | N,S,U,X | Event handling and routing: N = normal report to the selected DA, S = signal only (no report message), U = undefine/delete event, X = send to serial port only |
V | V,A,B,C | Report message type: V = standard EV report, A = extended-EV report A, B = extended-EV report B, C = extended-EV report C |
D | 0–9 | Destination address (DA0–DA9) |
EQUATION | Signal expression | Postfix boolean expression (see below) |
SENSE | + or - | +=rising edge (0→1), -=falling edge (1→0) |
ACT | Command prefix | Optional action command |
-
Optional action format:
;ACT={COMMAND};appended after sense character. -
Equation operators: | Operator | Symbol | Description | |----------|--------|-------------| | NOT |
!| Invert signal | | AND |&| Both signals true | | OR |\|| Either signal true |
Parameters
Minimum event command length: 15 characters (>SED00NVO;F00+<)
Examples
Periodic report every 3 minutes:
>STD70180000000000000<
>SED05NV0;TD7+<
Periodic signal-only event using the same trigger:
>SED05SV0;TD7+<
Panic button on input 1:
>SED31NV0;IP1+<
Event with several actions when ignition turns ON:
>SED35SV0;F00+;ACT=SGC05TC00010;ACT=SSSU041;ACT=SGC07U<
Delete (undefine) event E00:
>SED00U<
Related Signals
- Signal List for all available signal names
- Destination addresses configured with DA
- Events can trigger counters via action commands