ST_LON_Communication

Connection between FB_LON_KL6401 and the send/receive blocks.

TYPE ST_LON_Communication :
STRUCT
  arrWriteLONdata    : ARRAY[0..iLONBufferSize] OF ST_LON_WriteData;
  bWrite         : BOOL;
  bWriteBusy         : BOOL;
  bReadBusy          : BOOL;
  arrParameterReadValue  : ARRAY[1..32] OF BYTE;
  wNV_Index          : WORD;
  eParameterDataType     : E_LON_Parameter_Datatypes;
  bWriteLONdataToTable   : BOOL;
  bTerminalOk        : BOOL;
  byActBuffer        : BYTE;
  rActBuffer         : REAL;
  rMaxBuffer         : REAL;
END_STRUCT
END_TYPE

arrWriteLONdata: Transmit buffer.

bWrite: Data are sent.

bWriteBusy: Write-OnChange active.

bReadBusy: Read-OnChange active.

arrParameterReadValue: 32 data bytes.

wNV_Index: NV index.

eParameterDataType: Data type of the LON variable (SNVT), see E_LON_Parameter_Datatypes.

bWriteLONdataToTable: Writing the data into the table is active.

bTerminalOk: Initialization of the KL6401 was completed successfully.

byActBuffer: Number of jobs in the transmit buffer.

rActBuffer: Current utilization of the transmit buffer in percent.

rMaxBuffer: Maximum utilization of the transmit buffer in percent. The value can be reset with the input variable bResetMaxBuffer.