com_discom
(Statement)
[Version 1.5 or later]
Releases the RS-232C port from binary transmission. (Releases the COM port.)
If the Ethernet client port has been used, this command disables the Ethernet client port to disconnect the Ethernet connection.
com_discom [#<portnumber>]
When the port number has not been specified, controller RS-232C is selected.
This command disables com_encom command to release the RS-232C dedicated to binary transmission for other uses.
-
Executing this command clears the RS-232C port once to prevent data confusion.
-
If this command is executed during Ethernet communication, the connection will be disconnected without waiting for completion of transmission. The receiver may keep waiting to receive non-transmitted data.
If com_encom executes following com_discom within a short period, a "client open failure" error may occur during execution of com_encom. To prevent such an error, insert a code for checking that no connection has been established, before a com_encom as shown in the example of com_encom on the previous page.
Do not use com_discom or com_encom in a program execution loop.
'!TITLE "<Title>"
|
|
PROGRAM sample
|
|
·
|
|
·
|
|
·
|
|
com_discom #1
|
'Release port from binary transmission
|
·
|
|
·
|
|
·
|
|
END
|
|