In UserDefined Mode, you can create your own sampling program by defining a series of functions. Each function is written in the following format:
F#,T#,O#,…
Where:
- F# = Function number
- T# = Time or target line (depending on function)
- O# = Output or state (if required)
- … = Additional parameters (optional, e.g., trigger conditions)
You can configure outputs, and sensor settings. The UserDefined program will then use those settings during execution (e.g., when performing a sensor read).
Function Reference Table
| Function | Name | Param 1 | Param 2 | Param 3 | Notes |
|---|---|---|---|---|---|
| F1 | End Program | — | — | P = program | Terminates the user program |
| F2 | Loop to Line | T = Line | — | P = program | Loops to the specified line |
| F3 | Delay | T = Time | — | P = program | Waits for a given time (ms/s) |
| F4 | Wait for Next Alarm | — | — | P = program | Halts until next wakeup alarm |
| F5 | Switch Module | T = Time | S = State | P = program | On/off control over modules |
| F6 | Switch Sensor | T = Time | S = State | P = program | Activates/deactivates sensors |
| F7 | Switch Output | T = Time | S = State | O = Output | I = Inverted, P = program |
| F8 | Read Sensors | T = Time | — | P = program | Reads sensors using GUI settings |
| F9 | Send Data | T = Time | — | P = program | Sends logged sensor data |
| F10 | Send Basic Telemetry | T = Time | — | P = program | Sends basic telemetry message |
| F11 | Send Clean Command | T = Time | — | P = program | Sends clean/reset command |
| F12 | Set Sub Program | — | — | P = program | Set the sub program |
| F13 | End Sub Program | T = Time | — | P = program | Ends the sub program |
| F14 | Formula | P = program | apply formula | ||
| F15 | Counter | T = Mode | S = Counter | P = program | |
| F16 | FlowControl | T = Time | S = target volume | O = Outout | P = program |
| F17 | Compare Value | T = Mode | S = Compare value | O = Set sub program if true | P = program |
