CHAPTER 6 – Functions and Methods
OMRON
Page 126
Revision 2.0
Remarks
Argument
Type
Description
ReturnState
Bool
True if successful else false.
PortNumber
Integer
The number of the port previously configured using the function
SetupCOMPort and opened using the script function
OpenCOMPort.
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
Type
Description
ReturnState
Bool
True if successful else false.
portNumber
Integer
The number of the port previously configured using the function
SetupCOMPort.
Typical Example:
bState = OpenCOMPort(1)
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
Type
Description
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...