Read (FB) ¶ FUNCTION_BLOCK Read EXTENDS CBM.ETrigToA Function block to read data from the serial port InOut: Scope Name Type Comment Input hCom CAA.HANDLE Handle to the open COM port. Ist returned by the COM. Open function block. pBuffer CAA.PVOID Pointer to a buffer to get the received data from the COM port szBuffer CAA.SIZE Maximum size of the pBuffer parameter in bytes Output eError ERROR Local library error ID (0: no error; 5001: time out) szSize CAA.SIZE Returns the number of received data bytes in pBuffer
Write (FB) ¶ FUNCTION_BLOCK Write EXTENDS CBM.ETrigToA Function block to write data to the serial port InOut: Scope Name Type Comment Input hCom CAA.HANDLE Handle to the open COM port. Ist returned by the COM. Open function block. pBuffer CAA.PVOID Pointer to a buffer with the data to write to the COM port szSize CAA.SIZE Number of bytes in pBuffer to write to the COM port Output eError ERROR Local library error ID (0: no error; 5001: time out)
Global Variables ¶ CAA_Parameter_Constants (GVL)
CAA_Parameter_Constants (GVL) ¶ Parameter IDs for the PARAMETER struct. InOut: Scope Name Type Initial Comment Constant udiPort UDINT 16#1 DataType=INT | Port number parameter udiStopBits UDINT 16#2 DataType=BYTE | Stop bits parameter. See STOPBIT for possible parameter values. udiParity UDINT 16#3 DataType=BYTE | Parity parameter. See PARITY for possible parameter values. udiBaudrate UDINT 16#4 DataType=DWORD | Baudrate parameter udiTimeout UDINT 16#5 DataType=UDINT | Timeout parameter udiBufferSize UDINT 16#6 DataType=UDINT | Buffer size parameter, sets the serial buffer size udiByteSize UDINT 16#7 DataType=BYTE | Byte size parameter, it sets the number of data bits 4-8 udiBinary UDINT 16#8 DataType=BOOL | Binary parameter, enables the binary mode udiOutxCtsFlow UDINT 16#9 DataType=BOOL | CTS handshaking on output parameter udiOutxDsrFlow UDINT 16#A DataType=BOOL | DSR handshaking on output parameter udiDtrControl UDINT 16#B DataType=BYTE | DTR Flow control parameter. See DTR_CONTROL for possible parameter values. udiDsrSensitivity UDINT 16#C DataType=BOOL | DSR Sensitivity parameter udiRtsControl UDINT 16#D DataType=BYTE | Rts Flow control parameter. See RTS_CONTROL for possible parameter values. udiTXContinueOnXoff UDINT 16#E DataType=BOOL | XOFF continues Tx parameter udiOutX UDINT 16#F DataType=BOOL | XON/XOFF out flow control parameter udiInX UDINT 16#10 DataType=BOOL | XON/XOFF in flow control parameter udiXonChar UDINT 16#11 DataType=BYTE | Tx AND Rx XON character parameter udiXoffChar UDINT 16#12 DataType=BYTE | Tx AND Rx XOFF character parameter udiXonLim UDINT 16#13 DataType=WORD | Transmit XON threshold parameter udiXoffLim UDINT 16#14 DataType=WORD | Transmit XOFF threshold parameter
Structs ¶ PARAMETER (Struct)
PARAMETER (STRUCT) ¶ TYPE PARAMETER : STRUCT The COM. Open FB gets a list of parameters. A parameter has got a unique ID and a value. InOut: Name Type Comment udiParameterId UDINT Unique parameter Id for the operation. See the CAA_Parameter_Constants list udiValue UDINT Value of the unique paramter
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
IRowPlanchetAsync (ITF) ¶ INTERFACE IRowPlanchetAsync EXTENDS __System.IQueryInterface Methods: RowInsertAsync Structure: Row RowInsertAsync (Method)
IStorageAsync (ITF) ¶ INTERFACE IStorageAsync EXTENDS __System.IQueryInterface Methods: StorageClearAsync StorageCloseAsync StorageReorgAsync TableOpenAsync TransactionBeginAsync Structure: Storage StorageClearAsync (Method) StorageCloseAsync (Method) StorageReorgAsync (Method) Table TableOpenAsync (Method) Transaction TransactionBeginAsync (Method)