SerialPortCommandRingBuffer
- Namespace
- ZEquipmentBeckhoff
- Extends
- Inherited Properties
- Inherited Methods
FUNCTION_BLOCK SerialPortCommandRingBuffer EXTENDS ZCore.RingBuffer
Constructor
FB_init
METHOD FB_init (
[input] bInitRetains : BOOL,
[input] bInCopyCode : BOOL,
[input] bufferSize : DINT,
[input] dataBuffer : POINTER TO SerialPortEL600xImplCommand) : BOOL
Inputs
bInitRetainsBOOLif TRUE, the retain variables are initialized (warm start / cold start)
bInCopyCodeBOOLif TRUE, the instance afterwards gets moved into the copy code (online change)
bufferSizeDINTbuffer size -> the actual size of the buffer is buffersize - 1
dataBufferPOINTER TO SerialPortEL600xImplCommand
Returns
- BOOL
Methods
AppendReceiveCommand
METHOD AppendReceiveCommand (
[input] receivedSuffix : BYTE) : DINT
Inputs
Returns
- DINT
AppendTransmitCommand
METHOD AppendTransmitCommand (
[input] dataRaw : ZCore.ZString) : DINT
Inputs
dataRawZString
Returns
- DINT
CommandErrorDetail
METHOD CommandErrorDetail (
[input] id : DINT) : ZCore.ZString
Inputs
Returns
Data
METHOD Data (
[input] id : DINT) : ZCore.ZString
Inputs
Returns
FirstItemDataPtr
METHOD FirstItemDataPtr () : POINTER TO SerialPortEL600xImplCommand
Returns
- POINTER TO SerialPortEL600xImplCommand
HasCommandError
METHOD HasCommandError (
[input] id : DINT) : BOOL
Inputs
Returns
- BOOL
IsCommandBusy
METHOD IsCommandBusy (
[input] id : DINT) : BOOL
Inputs
Returns
- BOOL