FB_SEND_174_SNVT_dev_fault
This function-block SEND the following LON-output-variables (nvo):
SNVT name: SNVT_dev_fault.
SNVT number: 174.
SNVT description: Device fault states. Fault information for the device.
VAR_INPUT
wNVIndex : WORD;
stValue : ST_LON_SNVT_dev_fault;
bStart : BOOL;
bSendInit : BOOL := bSendInitDefault;
bAuto : BOOL := bAutoDefault;
tMinSendTime : TIME := tMinSendTimeDefault;
tMaxSendTime : TIME := tMaxSendTimeDefault;
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.
stValue: Structure of the data to be sent (see ST_LON_SNVT_dev_fault).
If stValue.eDevice_select = eLON_DV_PUMP_CTRL (0) the structure stValue.stDev_type.stPump_ctrl will be sent.
If stValue.eDevice_select = eLON_DV_VALVE_POS (1) the structure stValue.stDev_type.stValvePos will be sent.
bStart: A positive edge starts sending (regardless of bAuto).
bSendInit: After restarting the PLC, the values are sent once.
bAuto: Selecting the automatic sending when a value changes or when the time tMaxSendTime runs out (polling).
tMinSendTime: Parameter for automatic sending. A new value is sent no sooner than this time. Thus, a continuous transmission is prevented.
tMaxSendTime: Parameter for automatic sending. The value is sent no later than the end of that time (polling). A value of 0 disables this feature.
bDisabled: TRUE = disables the function block.
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
eError : E_LON_ERROR;
dwErrorKL : DWORD;
bBusy: If the sending of data is in process, this output will be TRUE.
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.
dwErrorKL: Error identifier of the function block FB_LON_KL6401(). In this case the variable eError is set to "eKL6401_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).