CHAPTER 6 – Functions and Methods
Remarks
Argument
ReturnState
PortNumber
Typical Example:
bState = CloseCOMPort(1)
OpenCOMPort
Description
Opens the designated serial communications port on the PC for transmitting or receiving data. The
port must have been configured before it can be opened.
Syntax
ReturnState = OpenCOMPort(PortNumber)
Remarks
Argument
ReturnState
portNumber
Typical Example:
bState
SetupCOMPort
Description
Configures the designated serial communications port on the PC for transmitting or receiving data.
Syntax
ReturnState = SetupCOMPort(PortNumber, ConfigurationString,
HandShaking, TerminationChar, ControlCharFlag, TermMode)
Remarks
Argument
Page 126
Type
Bool
True if successful else false.
Integer
The number of the port previously configured using the function
SetupCOMPort and opened using the script function
OpenCOMPort.
Type
Bool
True if successful else false.
Integer
The number of the port previously configured using the function
SetupCOMPort.
= OpenCOMPort(1)
Type
Description
Description
Description
Revision 2.0
OMRON
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?
Questions and answers