xcon.CreateCOM
Description
This function can be used to create a serial connection in LUA.
Signature
xcon.CreateCOM (string, string, number, number, number, number, number, number)Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | Handle that identifies the connection within the LUA script. | |
string | M | The name of the COM port in the system (e.g. COM1). | |
number | M | The baud rate of the serial port. | |
number | M | The amount of data bits of the serial port. | |
number | M | The used parity of the serial port. | |
number | M | The amount of stop bits of the serial port. | |
number | M | The used handshake protocol of the serial port. | |
number | M | The used event char of the serial port. |