Responding to a sensor's calibration state
If a device switches to the calibration state, the current process values will not be updated. However, if a control function depends on this process value, for example, a state variable can remedy this problem.
Each JUMO Modbus device has the SensorName_FB.stData.stDataOut.xCalibrationModeActive variable which indicates if the device is in the calibration state.
Each JUMO Modbus device has an additional variable SensorName_FB.stData.stDataOut.xAnotherDeviceInCalibMode which indicates if another device is in the calibration state.
The external/your own sensor can also benefit from this information SensorName_FB.stData.stDataOut.xAnotherDeviceInCalibMode. However, the Dummy Function_Block must be called up in the program section for this.
Alternative error handling
The JUMO Modbus devices have their own error handling to detect interruptions to communication. If you would prefer to use the error handling from CODESYS, this can be carried out as follows.
deviceName_FB.pModbusDevice := ADR(deviceName);
History log
In the case of JUMO Modbus devices with a calibration function, there is the option of displaying the last ten calibration log inputs. There is a button for this in the relevant visualization object.
If the button is pressed, the window with the last ten log entries opens after a reading/waiting period (can be set).