The list of parameters described in the table can be read or modified by using the HSCGetParam or HSCSetParam function blocks.
NOTE: Parameters set via the program override the parameters values configured in the HSC configuration. Initial configuration parameters are restored on cold or warm start.
This table provides the list of parameters from the HSC_PARAMETER_TYPE which can be read or modified while the program is running:
Parameter |
Description |
---|---|
HSC_PRESET |
To get or set the Preset value of an HSC. |
HSC_THRESHOLD0 |
To get or set the Threshold 0 value of an HSC. |
HSC_THRESHOLD1 |
To get or set the Threshold 1 value of an HSC. |
NOTE: For the One-shot mode, configured values must follow the rule:
0 < Threshold 0 Value < Threshold 1 Value < (Preset - 1)
For example:
If the current configured values are:
oThreshold 0 Value = 100
oThreshold 1 Value = 200
oPreset = 300
And if the desired configuration values are:
oThreshold 0 Value = 50
oThreshold 1 Value = 120
oPreset = 150
Set the value of Threshold 1 before Preset.
If the Preset is set to 150 first, HSCSetParam returns a parameter error because the desired Preset (150) is less than the current Threshold 1 Value (200).