ST_MBUS_Communication
Interne Struktur.
This structure is used to link the block FB_MBUSKL6781() with the meter blocks. ST_MBUS_Communication).
TYPE ST_MBUS_Communication :
STRUCT
bStart : BOOL;
bBusy : BOOL;
bSND_NKE : BOOL;
bSend : BOOL;
bStartManuell : BOOL;
bBlockadeSecAdr : BOOL;
usiAddress : USINT;
byCField : BYTE;
stSecAdr : ST_MBUS_SecAdr;
eError : E_MBUS_ERROR;
eBaudrate : E_MBUS_Baudrate := eMBUS_Baud2400;
arrMBusLongFrame : ARRAY[1..260] OF BYTE;
bySendByte : BYTE;
uiMaxCount : UINT;
uiCount : UINT;
stKomRxBuffer : ST_KL6781ComBuffer;
stKomTxBuffer : ST_KL6781ComBuffer;
END_STRUCT
END_TYPE
bStart: Start.
bBusy: This bit is set for as long as the block is active.
bSND_NKE: SND_NKE is sent.
bSend: Data is being sent.
bStartManuell: Manual start.
bBlockadeSecAdr: Secondary addressing results in blocking.
usiAddress: Primary address.
byCField: C field.
stSecAdr: Secondary address (see ST_MBUS_SecAdr).
eError: Error number (see E_MBUS_ERROR).
eBaudrate: Baud rate (see E_MBUS_Baudrate).
arrMBusLongFrame: Sent or received bytes.
bySendByte: Number of sent bytes.
uiMaxCount: Maximum number of read commands.
uiCount: Current read command.
stKomRxBuffer: Receive buffer.
stKomTxBuffer: Send buffer.
Requirements
Development environment | required TC3 PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_MBus from 3.3.4.0 |