Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

using com port in xcel vba 2

Status
Not open for further replies.

don01

Electrical
Joined
Dec 29, 2000
Messages
216
Location
AU
hi all
I am searching for a clue. I have a protocol to interigate a plc via a serial link.
I can prepare the strings and open the com port in turbo basic and get the reply string etc etc.
So the next step was to do this direct from the xcel sheet. And here it all falls over. I can Open com1: 9600,8,1, etc etc and this is ok but now I would normally print #1 message$ , then delay then read #1 but xcell really hates me trying to write, print, put, to any thing related to the com port.
I am using the same port as turbo basic and com set up values but I get syntax errors (not time out type problems).
has any one had any luck doing this if so, how?
Any clues greatly appreciated
thanks Don
 
hi ivymike
heaps o thanks there. It's really late tonight but I'll hit those sites tommorrow straight after work.
again your response appreciated
& will advise results
Don
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top