CHAPTER 6 – Functions and Methods
OMRON
Page 124
Revision 2.0
Syntax
return = DBWrite(level, reset)
Remarks
Argument
Type
Description
return
Bool
1 if the function is successful otherwise 0
level
Text
A text point or constant specifying the connection level. This
must be a Recordset level.
reset
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.
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
Type
Description
ReturnState
Bool
True if successful else false.
PortNumber
Integer
The number of the port previously configured using the function
SetupCOMPort and opened with OpenCOMPort.
message
Text
Text point to hold ASCII text message received through the
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...