Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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
Feb 18, 2003
23
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.
 
Replies continue below

Recommended for you

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