Serial Port Functions - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

CHAPTER 6 – Functions and Methods
Syntax
return = DBWrite(level, reset)
Remarks
Argument
return
level
reset
Typical Examples
DBWrite("Northwind.Customers")
Write all point values to the associated Customers fields.
DBWrite("Northwind.Customers.Address", FALSE)
Write the point values to the Address column, and leave the cursor at the next set of records.

Serial Port Functions

InputCOMPort
Description
Sets the serial communications port for receiving ASCII text messages. Any message received is
placed in the text point. The boolean flag is set true to indicate that a message has been received. It
is up to the user to reset this flag between receiving messages in order to indicate that a new message
is present. This function need only be called once to receive multiple messages every time the
termination character is recieved.
Syntax
ReturnState = InputCOMPort(PortNumber, Message, MessagePresent,
MaxLength)
Remarks
Argument
ReturnState
PortNumber
message
Page 124
Type
Bool
1 if the function is successful otherwise 0
Text
A text point or constant specifying the connection level. This
must be a Recordset level.
Bool
This argument is optional and may be omitted. If omitted or
TRUE, when the write is complete the record cursor is reset to
the position prior to writing.
Type
Bool
True if successful else false.
Integer
The number of the port previously configured using the function
SetupCOMPort and opened with OpenCOMPort.
Text
Text point to hold ASCII text message received through the
Description
Description
OMRON
Revision 2.0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents