The CLOSE0 command closes the RS232 input buffer for COM port n.
Syntax
The port_number must be from 0 to 12.
Return value
This command does not return a value.
Notes
This command actually closes the COM port. This allows you to run one template with RS232 entry and then close the COM port (CLOSE0), leave this first template open on the workstation, and then run a second RS232-entry template on the same workstation.
Note: Although this command has been updated to work better with Terminal Services, it is still not recommended as it may cause the system to become unstable.
Note: If a data entry operator presses CTRL+K during data entry to bypass the RS-232 device and enter data values using the keyboard, the data entry session will replace any RS232 input mode cells with Keyboard input mode cells. However, the data entry session will still attempt to execute all commands in the template—including the CLOSE0 command—and the operator may not be able to complete data entry without access to the RS-232 device.
If this will cause significant problems during data entry, you may need to create a second template for keyboard data entry that can be used when the RS-232 device is not available.
Examples
CLOSE0 0
This command closes the RS232 input buffer for COM port 0 .