ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Serial/Parallel Ports functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Runs different functions that directly affect the bits of serial port, parallel port or infrared port, independently of the communication protocol. These functions are used to manage:
  • the DTR signal,
  • the RTS signal,
  • the XOFF and XON characters.
Remarks:
  • The port must be opened beforehand (sOpen).
Example
// Efface le signale DTR
sEscape(NumPort, "CLRDTR")
Syntax
<Result> = sEscape(<Port number> , <Function>)
<Result>: Boolean
  • True if the function was run,
  • False otherwise. If the port was not opened beforehand (by sOpen), sEscape has no effect.
<Port number>: Integer
Identifier of the port used:
  • Port number:
    • Serial port number: 1, 2, 3, ... 32 for COM1, COM2, COM3, ... COM32.
    • Parallel port number: -1, -2, -3 or -4 for LPT1, LPT2, LPT3 or LPT4.
    • Infrared port number: 1, 2, 3, ... 32 for IR1, IR2, IR3, ... IR32.
  • Port identifier returned by sOpen (if this function was called with a port name).
<Function>: Character string
Function to run:
CLRBREAKClears the "Break line" signal.
CLRDTRClears the DTR signal.
CLRRTSClears the RTS signal.
RESETDEVReinitializes the device if possible.
SETBREAKEnables the "Break Line" signal.
SETDTRSends the DTR signal.
SETRTSSends the RTS signal.
SETXOFFThe transmission behaves like if the XOFF character was received.
SETXONThe transmission behaves like if the XON character was received.
Remarks
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help