Skip to main content

Does anyone have a sample COBOL program that can open COM1: serial port


#COBOL

Does anyone have a sample COBOL program that can open COM1: serial port


#COBOL

Hi Alex,

I have the impression you got your answer for this in the following Community topic:

https://community.rocketsoftware.com/discussion/looking-to-see-if-anyone-has-programmed-to-send-text-to-a-customer-display-pole-using-a-usb-port-and-probably-as-either-as-com-port#bm8fcc57e4-2062-4f05-806d-7836029ac581

Please let us know if that's not the case.


Yes I did and was able to connect to COM1:. The display pole I am using has 2 rows of 20 characters each, I am having an issue where I want to clear out the characters on both lines and am sending spaces to them,but they are not removed, any ideas?


Yes I did and was able to connect to COM1:. The display pole I am using has 2 rows of 20 characters each, I am having an issue where I want to clear out the characters on both lines and am sending spaces to them,but they are not removed, any ideas?

Sound very strange. What if you send a valid string of non-space characters? What about 40 nulls. What about 40 "-" and if that works what about prefixing your 40 spaces with a single non-space character? This type of display seldom has command characters but have you checked the manual? There may be some commands (maybe non-ascii characters prefixed with an Esc or similar)