Serial Port

A serial port is a serial communication interface through which information transfers in or out sequentially one bit at a time.

The term serial port usually denotes hardware compliant with RS-232 or a related standard, such as RS-485 or RS-422.

Configuration Deskval Workbench Serial Port mappings

Deskval Workbench offer 3 serial port mappings.

Deskval Workbench offer 3 serial port mappings

Using Serial Port Communication

In an event, use Assignment Action and employ SERIALPORT_QUERY function. 


SERIALPORT_QUERY ( PortNr , sQuery )

Sends sQuery to the SerialPort, determined by the PortNr - Configured in Settings - and returns a Text received from the SerialPort in response to sQuery.

In case an error occurs, returns the following Error Message as text , accordingly.

ERR_TIMEOUT

SERIALPORT_QUERY ( 1 , HelloWorld ) will send HelloWorld to the SerialPort1 and then wait for the response. If SerialPort1 responds, then function will return the response.


Use of SERIALPORT_QUERY function in Assignment Action