8021823/126P/2018-12-17 • © SICK AG • Subject to change without notice 81
PROFINET IO-interface
10.3.5 Module 5: "Distance/i2w, Preset Dyn./o2w"
Type Input and output module, 2 words, consistent
Description This module reads the current distance value according to the settings of
osetandresolution.ThepresetPreset-valueischangedwhenthemodule
is written. When the highest value bit (Bit 31) has been set, the preset
functioncanbecalledtocalculateanewoset.SettingBit30resetsthe
presentandosetvalues.
Notes Apresetorosetvaluechangedbythismoduleisalwayspermanently
assumedandwillnotbelostwhenthedeviceisswitchedo.Sinceall
changedandunchangedparametersarewrittenintotheashmemory,the
measurement value output is not available for a short time.
Settingbit30resetsthepresetandosetvaluesto"0".WhenBit30isset,
the setting of Bit 31 is ignored.
Ifadeviceerror,missingreectororcontaminationledtonovalid
measurement value being present, the value "0" is output for distance and
the corresponding bits are set in the status bytes.
Input values
Rel. Adr. Description
0 Current distance in the current resolution under consideration
ofoset.Dependingonresolutionselected,onedigit
corresponds to 0.1 to 100 mm.
Type
• Prex-applied32bitdigitinacomplementoftwo
Output values
Rel. Adr. Description
0.0 … 0.29 New preset distance in selected resolution. Depending on the
resolution selected, one digit corresponds to 0.1 to 100 mm.
Type
• Prex-applied32bitdigitinacomplementoftwo
0.30 • Bit 30 is not set (0):
Theosetandpresetvaluesareleftattheoriginalsettings.
• Bit 31 is set (1):
Theosetandpresetvaluesareresetto"0".
Type
• Bit: 0 or 1