Skip to main content

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<
FieldValuesDescription
NN0099Event index
HN,S,U,XEvent 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
VV,A,B,CReport message type: V = standard EV report, A = extended-EV report A, B = extended-EV report B, C = extended-EV report C
D09Destination address (DA0–DA9)
EQUATIONSignal expressionPostfix boolean expression (see below)
SENSE+ or -+=rising edge (0→1), -=falling edge (1→0)
ACTCommand prefixOptional 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<
  • Signal List for all available signal names
  • Destination addresses configured with DA
  • Events can trigger counters via action commands