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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial data from PLC to file, is VB the tool ?

Status
Not open for further replies.

dazmac

Electrical
Joined
Feb 18, 2003
Messages
23
Location
GB
Hi, as a PLC programmer with no (yet) experience of VB, I could do with some guidance. I have an app to develop that will take an ASCII text string (from a PLC) from the serial COM port and save it as a file, the file name being sequentially numbered (0000-9999) with a .prd extension. Once at 9999, the filename reverts to 0000 and over-writes the old files.

One text string in on the COM port approx every 5 minutes.
 
VB has a serial port communication tool (MSCOMM control) which takes serial data into your program. Saving a file and incrementing your file name are also very straightforward

Good Luck
johnwm
________________________________________________________
To get the best from these forums read faq731-376 before posting

Steam Engine enthusiasts:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top