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
stringMHandle that identifies the connection within the LUA script.
stringMThe name of the COM port in the system (e.g. COM1).
numberMThe baud rate of the serial port.
numberMThe amount of data bits of the serial port.
numberMThe used parity of the serial port.
numberMThe amount of stop bits of the serial port.
numberMThe used handshake protocol of the serial port.
numberMThe used event char of the serial port.

Return

None.