FB_READ_175_SNVT_dev_maint
This function-block receives the following LON-input-variables (nvi):
SNVT name: SNVT_dev_maint.
SNVT number: 175.
SNVT description: Device maintenance. Device-maintenance states.
VAR_INPUT
wNVIndex : WORD;
bDisabled : BOOL := FALSE;
wNVIndex: Unique Index. This is required for the binding of the LON nodes. Per LON terminal a maximum of 62 SNVTs are allowed. Values from 0 to 61 are permissible.
bDisabled: TRUE = disables the function block.
VAR_OUTPUT
stValue : ST_LON_SNVT_dev_maint;
bNewData : BOOL;
bError : BOOL;
eError : E_LON_ERROR;
stValue: Structure, to be received (see ST_LON_SNVT_dev_maint).
If stValue.eDevice_select = eLON_DV_PUMP_CTRL (0), then the structure stValue.stDev_type.stPump_ctrl is valid.
If stValue.eDevice_select = eLON_DV_VALVE_POS (1), then the structure stValue.stDev_type.stValvePos is valid.
bNewData: Is TRUE for one cycle once new data were received.
bError: The output becomes TRUE as soon as an error occurs. The error is described via the variable eError.
eError: The output issues an error code when an error occurs (see E_LON_ERROR). Simultaneously bError is TRUE.
VAR_IN_OUT
stLON_Com : ST_LON_Communication;
stLON_Com: This structure connects FB_LON_KL6401() with the send/receive function blocks (see ST_LON_Communication).