FB_SEND_185_SNVT_clothes_w_m

FB_SEND_185_SNVT_clothes_w_m 1:

This function-block SEND the following LON-output-variables (nvo):

SNVT name: SNVT_clothes_w_m.

SNVT number: 185.

SNVT description: Clothes Washer-Management Status. Provides status of door/lid and drain.

VAR_INPUT

wNVIndex      : WORD;
stValue       : ST_LON_SNVT_clothes_w_m;
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_clothes_w_m).

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).