PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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).
  • WEBDEV - Server code This function returns information regarding the server.
Versions 25 and later
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
New in version 25
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
Example
// Clears the DTR signal
sEscape(PortNum, "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
  • Number of the relevant serial port: 1, 2, 3, ... 32 for COM1, COM2, COM3, ... COM32.
  • Number of the relevant parallel port: -1, -2, -3 or -4 for LPT1, LPT2, LPT3 or LPT4.
  • Number of the relevant infrared port: 1, 2, 3, ... 32 for IR1, IR2, IR3, ... IR32.
    Versions 16 and later
    Linux Infrared ports are not managed.
    New in version 16
    Linux Infrared ports are not managed.
    Linux Infrared ports are not managed.
  • Port identifier returned by sOpen (if this function was called with a port name).
    Versions 25 and later
    Linux Only this type of parameter is available.
    New in version 25
    Linux Only this type of parameter is available.
    Linux Only this type of parameter is available.
<Function>: Character string (with quotes)
Function to run:
CLRBREAKClears the "Break line" signal.
CLRDTRClears the DTR signal.
CLRRTSClears the RTS signal.
RESETDEVRe-initializes 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 : wd250com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment