Serial/Direct and Serial/Modem → REXX ZocDeviceControl
ZocDeviceControl is a ZOC-REXX Command, which allows to perform functions that are specific to a communication method.
Available sub-commands for the ZocDeviceControl script command in relation to serial connections are:
| GETRS232SIGNALS | |
Return a string that indicates the raised incoming signals (CTS, DSR, CD, RI)
on the serial port, e.g. ##[CTS][DSR][CD]## | |
| SETRTS ON|OFF | |
Changes the RTS signal on the RS232 port. This applies when the RTS/CTS list
is RTS signal on or RTS signal off. It does not apply while
the list is RTS/CTS handshake,
e.g. Call ZocDeviceControl("SETRTS ON")
| |
| SETDTR ON|OFF | |
Changes the DTR signal on the RS232 port. This applies when the DTR/DSR list
is DTR signal on or DTR signal off. It does not apply while
the list is DTR/DSR handshake,
e.g. Call ZocDeviceControl("SETDTR OFF")
| |
| TESTACCESS <name> | |
This command tests if the serial port <name> (e.g. SAY ZocDeviceControl("TESTACCESS COM3")
or SAY ZocDeviceControl("TESTACCESS /dev/cu.pl2303")) is valid and accessible.
The result is ##YES## or ##NO##.
| |
| FINDUSBPORT <text> | |
On Windows, this command returns the last enumerated COM port whose description contains <text> (e.g. port= ZocDeviceControl("FINDUSBPORT FTDI")). If none matches, the result is ##NONE##. | |
← Back to Serial/Direct and Serial/Modem