Previous Top Next

CPS Plus DDE Commands
List of CPS Plus DDE Commands:

1. [UnloadCPS]     Exits CPS Plus.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[UnloadCPS]"    
DDETerminate chan

2. [BEL]    play system Asterisk sound.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[BEL]"    '
DDETerminate chan

3. [WriteToCOMx(string out)]    Sends text and control codes out the serial port specifed by x .
Control codes must be supplied as ASCII values inside curly braces.
Text and ASCII codes may be combined in any combination.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[WriteToCOM2(SELFTEST1310)]"    ' send SELFTEST <cr> <lf> to serial port 2
DDETerminate chan

4. [ExecCommandx Executes created manual command.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[ExecCommand2]"    ' Executes aved manual command 2
DDETerminate chan

5. [ResetPortx Clear input and output buffer of port x .
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[ResetPort1]"    ' Clear input and output buffer of COM1
DDETerminate chan

6. [RTSxHI]  Sets RTS line to high value (ON). Com port is specifed by x.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[RTS2HI]"    ' Sets RTS line, of COM2, to high value
DDETerminate chan

7. [RTSxLOW]  Sets RTS line to low value (OFF). Com port is specifed by x.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[RTS2LOW]"    ' Sets RTS line, of COM2, to low value
DDETerminate chan

8. [DTRxHI]  Sets DTR line to high value (ON). Com port is specifed by x.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[DTR1HI]"    ' Sets DTR line, of COM1, to high value
DDETerminate chan

9. [DTRxLOW]  Sets DTR line to low value (OFF). Com port is specifed by x.
Example:
chan = DDEInitiate("CPSPLUS", "DRIVER")
DDEExecute chan, "[DTR1LOW]"    ' Sets DTR line, of COM1, to low value
DDETerminate chan