SET_VALUE_BY_INDEX via RADIO, Command 3E
This command is currently only used for I/O board.
OUT
0C
11
3E
GRP
ID
ID TO
CRC
S Index
T1
T2
T3
CRC
IN
0C
10
4E
GRP
ID
ID TO
CRC
S Index
T1
T2
T3
CRC
This command will set the value for the specific value pointed to by Index via RADIO.
I/O-board specific format, Analog-input mV (Type $30)
T1
FILTER
Filter-value, # of samples that I/O-board shall take for each measurement
T2
INTERVAL
Interval between samples in ms, (0=disabled, as fast as possible)
T3
STORE
Store config in EEPROM (0=NO, 1=YES)
I/O-board specific format, Analog-input mA (Type $31)
T1
FILTER
Filter-value, # of samples that I/O-board shall take for each measurement
T2
INTERVAL
Interval between samples in ms, (0=disabled, as fast as possible)
T3
STORE
Store config in EEPROM (0=NO, 1=YES)
I/O-board specific format, Analog-output mV (Type $32)
T1
VALUE_MSB
High byte of 16-bit value
T2
VALUE_LSB
Low part of 16-bit value
T3
STORE
Store config in EEPROM (0=NO, 1=YES)
Note: VALUE is value in mV that should be outputted to the DAC. If storing in EEPROM is selected (STORE = 1), then the value should both be stored and sent to the DAC.
I/O-board specific format, Analog-output mA (Type $33)
T1
VALUE_MSB
High byte of 16-bit value
T2
VALUE_LSB
Low part of 16-bit value
T3
STORE
Store config in EEPROM (0=NO, 1=YES)
Note: VALUE is value in mA that should be outputted to the DAC. If storing in EEPROM is selected (STORE = 1), then the value should both be stored and sent to the DAC.
I/O-board specific format, Digital-input (Type $34)
T1
WEAK_PU_MSB
High byte of 16-bit input (1=weak pull-up enabled, 0=disabled)
T2
WEAK_PU_LSB
Low part of 16-bit input (1=weak pull-up enabled, 0=disabled)
T3
FILTER_MASK_MSB
High part of 16-bit field (enable/disable) filter function
T4
FILTER_MASK_LSB
High part of 16-bit field (enable/disable) filter function
T5
FILTER
Filter value, same filter-length for all (0=disabled)
T6
INTERVAL
Interval between samples in ms, (0=disabled, as fast as possible)
T6
STORE
Store config in EEPROM (0=NO, 1=YES)
Note: The filter works as follows. The controller has individual filter-accumulators for each input and these filter-accumulators are twice the size of the set filter-value. Each time the I/O-board reads the specific input it adds or subtracts 1 from the accumulator. The controller then checks if the accumulator is larger or smaller than the set filter-value, and if larger the input is considered 1, else 0.
Example: FILTER is set to 4 (accumulator (size=8) is empty, 0)
Input-pin = 0 -> accumulator=0 -> input-status = 0
Input-pin = 0 -> accumulator=0 -> input-status = 0
Input-pin = 0 -> accumulator=0 -> input-status = 0
Input-pin = 1 -> accumulator=1 -> input-status = 0
Input-pin = 1 -> accumulator=2 -> input-status = 0
Input-pin = 1 -> accumulator=3 -> input-status = 0
Input-pin = 0 -> accumulator=2 -> input-status = 0
Input-pin = 1 -> accumulator=3 -> input-status = 0
Input-pin = 1 -> accumulator=4 -> input-status = 0
Input-pin = 1 -> accumulator=5 -> input-status = 1
Input-pin = 1 -> accumulator=6 -> input-status = 1
Input-pin = 1 -> accumulator=7 -> input-status = 1
Input-pin = 1 -> accumulator=8 -> input-status = 1
Input-pin = 1 -> accumulator=8 -> input-status = 1
Input-pin = 1 -> accumulator=8 -> input-status = 1
Input-pin = 1 -> accumulator=8 -> input-status = 1
Input-pin = 0 -> accumulator=7 -> input-status = 1
Input-pin = 0 -> accumulator=6 -> input-status = 1
Input-pin = 0 -> accumulator=5 -> input-status = 1
Input-pin = 0 -> accumulator=4 -> input-status = 0
Input-pin = 0 -> accumulator=3 -> input-status = 0
Input-pin = 0 -> accumulator=2 -> input-status = 0
Input-pin = 0 -> accumulator=1 -> input-status = 0
Input-pin = 0 -> accumulator=0 -> input-status = 0
Input-pin = 0 -> accumulator=0 -> input-status = 0
I/O-board specific format, Digital-output (Type $35)
T1
VALUE_MSB
High byte of 16-bit value
T2
VALUE_LSB
Low part of 16-bit value
T3
STORE
Store config in EEPROM (0=NO, 1=YES)
Last updated
