FB_SEND_129_SNVT_smo_obscur
This function block sends the following LON output variable (nvo):
SNVT Name: SNVT_smo_obscur.
SNVT number: 129.
Description: Darkening due to smoke (darkening %).
Inputs
VAR_INPUT
wNVIndex : WORD;
rValue : REAL;
bStart : BOOL;
bSendInit : BOOL := bSendInitDefault;
bAuto : BOOL := bAutoDefault;
rValueLimit : REAL := 1;
tMinSendTime : TIME := tMinSendTimeDefault;
tMaxSendTime : TIME := tMaxSendTimeDefault;
bDisabled : BOOL := FALSE;
END_VAR
Name | Type | Description |
---|---|---|
wNVIndex | WORD | Unique index. This index is required for binding the LON nodes. A maximum of 62 SNVTs are permitted per LON terminal. Values between 0 and 61 are possible. |
rValue | REAL | Min: 0 / Max: 5. |
bStart | BOOL | A positive edge starts the send process (irrespective of bAuto). |
bSendInit | BOOL | Automatically sends the value once when the PLC restarts. |
bAuto | BOOL | Automatic sending is selected when a value changes or the time tMaxSendTime has elapsed (polling). |
rValueLimit | REAL | Parameter for automatic sending. The value is only sent if the change since the last transfer is greater than this parameter. If this value is 0, sending takes place after each change in value. This value is not available for enums and structures. It is sent there after every value change. |
tMinSendTime | TIME | Parameter for automatic sending. A new value will be sent at the earliest after this time has elapsed. This prevents continuous sending. |
tMaxSendTime | TIME | Parameter for automatic sending. The value is sent at the latest when this time has elapsed, even if the minimum value change (rValueLimit) has not been reached (polling). The value 0 disables this function. |
bDisabled | BOOL | TRUE = deselection of the function block. |
Inputs/outputs
VAR_IN_OUT
stLON_Com : ST_LON_Communication;
END_VAR
Name | Type | Description |
---|---|---|
stLON_Com | This structure is used to link FB_LON_KL6401() with the transmit/receive blocks. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
eError : E_LON_ERROR;
dwErrorKL : DWORD;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | The bBusy output is TRUE as long as values are sent. |
bError | BOOL | This output goes TRUE as soon as an error occurs. This error is described via the eError variable. |
eError | This output outputs an error code in the event of an error. bError goes TRUE at the same time. | |
dwErrorKL | DWORD | Error ID of the function block FB_LON_KL6401() (see dwErrorKL). In this case the variable eError has the value eKL6401_Error. bError goes TRUE at the same time. |
Requirements
Development Environment | TwinCAT 3 PLC library to be integrated |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_LON from 3.3.4.0 |