SysComOpenΒΆ

This function serves to open a serial port.

The function returns a handle for the port, which can be passed on when calling other functions of the library. If the port cannot be opened, 0xFFFFFFFF will be returned as handle.

Input Variable Data Type Description
Port PORTS specifies the port which should be opened (COM1,..); Port number see below: Enumeration PORTS

Enumeration PORTS:

TYPE PORTS : (COM1:=1, COM2, COM3, COM4, COM5, COM6, COM7, COM8);

END_TYPE