aci.OpenComPort

SUMMARY

Opens the required port.

SYNTAX

aci.OpenComPort(<portnr>, <baudrate>, <bitsperchar>, <parity>, <stopbits>)

ARGUMENTS

portnr (type:integer)
The number of comport. The number of the first port is one.
baudrate (type:integer)
The baudrate.
bitsperchar (type:integer)
The datenbits.
parity (type:integer)
The parity.
'N' is for no parity.
'O' is for odd parity.
'E' is for even parity.
stopbits (type:integer)
The number of stopbits. The number can be one or two.

EXAMPLES

      aci.OpenComPort( 3, 9600, 8, string.byte("N"), 1 )
		


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times