FB_SEND_134_SNVT_time_zone
This function-block SEND the following LON-output-variables (nvo):
SNVT name: SNVT_time_zone.
SNVT number: 134.
SNVT description: Time zone descriptor (offset, type, startDST, endDST).
VAR_INPUT
wNVIndex : WORD;
stValue : ST_LON_SNVT_time_zone;
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_time_zone).
If stValue.eType_of_description = eLON_CAL_GREG (0) the variables stValue.stStart_DST.uiG_day_of_start_DST and stValue.stEnd_DST.uiG_day_of_end_DST are sent.
If stValue.eType_of_description = eLON_CAL_JUL (1) the variables stValue.stStart_DST.uiJ_day_of_start_DST and stValue.stEnd_DST.uiJ_day_of_end_DST are sent.
If stValue.eType_of_description = eLON_CAL_MEU(2) the variables stValue.stStart_DST.stM_start_DST and stValue.stEnd_DST.stM_end_DST are 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).