X90 mobile modules
330
X90 mobile system User's manual V 1.20 - Translation of the original manual
5.7.1.7.5.2 Input state of the digital inputs
Name:
DigitalInput01 to DigitalInput08
The input state of digital inputs 1 to 8 is mapped in this register.
Data type
Values
USINT
See the bit structure.
Bit structure:
Bit
Description
Value
Information
0
DigitalInputxx
1)
0 or 1
Input state of digital input x
...
...
...
...
7
DigitalI 7
0 or 1
Input state of digital input x + 7
1)
For xx, see the name of the register.
5.7.1.7.5.3 Configurable switching threshold
Name:
cfgTresholdMode
cfgThreshold01 to cfgThreshold08
cfgHysteresis01 to cfgHysteresis08
If the pin is configured as a digital input, this register can be used to set the switching threshold in mV or percent.
When taking into account the configured hysteresis, a voltage level under the threshold value results in "0" on the
corresponding bit; a voltage level above the threshold value results in "1".
Register cfgTresholdMode:
This register specifies whether the values of cfgThreshold or cfgHysteresis are to be specified in mV or percent.
Data type
Values
USINT
See the bit structure.
Bit structure:
Bit
Description
Value
Information
0
Threshold and hysteresis are specified in mV.
0
cfgThresholdMode
1
Threshold and hysteresis are specified ratiometrically.
1 to 17
Reserved
Registers cfgThreshold01 to cfgThreshold08:
Data type
Values
Information
0 to 32767
mV, corresponds to 0 to 32.767 V
UINT
0 to 1000
Ratiometric, corresponds to 0.0 to 100.0%
Example:
Desired level: 16 V, corresponds to configuration value 16000
Registers cfgHysteresis01 to cfgHysteresis08:
If the pin is configured as a digital input, this register can be used to set the hysteresis in mV or percent in order
to avoid frequent state changes in the measurement range near the threshold value. When taking into account
the configured threshold value, a voltage level under threshold value "Threshold – Hysteresis" results in "0" on the
corresponding bit; a voltage level above threshold value "Thr Hysteresis" results in "1".
Data type
Values
Information
0 to 15000
mV, corresponds to 0 to 15.00 V
UINT
0 to 1000
Ratiometric, corresponds to 0.0 to 100.0%
Example:
Desired hysteresis range: ±5 V, corresponds to configuration value 5000