All source code in Visual Basic Ask a Visual Basic Pro Discussion Forum Categories All jobs in Visual Basic
PLC,reason,wrote,allow,communicate,with,seria
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 5,128,645. lines
 Jobs: 275. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login





Latest postings for Visual Basic.
Click here to see a screenshot of this code!DMmessagbox
By Frank Donckers on 2/9

(Screen Shot)

The Laser - Entrance Exam Creator
By Le Chevalier on 2/8


Click here to see a screenshot of this code!WiiNi Metur
By Dimityr Ivanov on 2/8

(Screen Shot)

Simple traductor de archivos INI
By Miguel Angel Esquef on 1/28


Click here to see a screenshot of this code!Resistor Color Code
By Ferdinand Viray on 2/7

(Screen Shot)

Click here to see a screenshot of this code!Database - Student Reccord
By Ferdinand Viray on 2/7

(Screen Shot)

Click here to see a screenshot of this code!Online Text Based Winsock Crime Game | Mafia Game
By William Hughes on 2/7

(Screen Shot)

Click here to put this ticker on your site!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

CommPortSendRecv

Print
Email
 
winzip icon
Submitted on: 2/15/2002 12:30:07 AM
By: Tom DeWitt 
Level: Intermediate
User Rating: By 19 Users
Compatibility:VB 6.0

Users have accessed this code 27000 times.
 
(About the author)
 
     The reason I wrote this app was to allow me to communicate with a PLC via a serial port. It allowed me to send data t the device and then read the response from the device basically to ensure that I was sending the right data and that I was getting the correct response from the device.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/15/2002 8:53:30 AMZaphod

Any ideas, on how to apply this to an IRda Serial Port?
(If this comment was disrespectful, please report it.)

 
2/16/2002 10:18:05 AM~ : . Jeff 'Capes' . : ~

what kind of PLC you used/using with this application?!
Siemens S7?
Please let me know ...
(If this comment was disrespectful, please report it.)

 
2/16/2002 4:24:07 PMJay

Max. BALLS my friend !
Well done and thanx for sharing this with us.

Jan
(If this comment was disrespectful, please report it.)

 
2/18/2002 2:50:50 PMRobb Stark

Tom, I would like to talk to you concerning this submission and a project I am working on using PIC microcontrollers and serial comm.
(If this comment was disrespectful, please report it.)

 
3/16/2002 12:40:42 PMVBCOMM Mania

This is neat! :) thank you for sharing this code!

:)
(If this comment was disrespectful, please report it.)

 
4/2/2002 6:06:27 AMRonald

This is of great help. Thanks for sharing it with us...
(If this comment was disrespectful, please report it.)

 
12/3/2002 11:44:11 AM

I was curious, would this work with a plc-5 allen bradley
(If this comment was disrespectful, please report it.)

 
1/2/2003 12:21:42 AM

can i change the ports in the middle of the testing. btw if i want to add a rebuild button in the programme. how do i go about doing it
(If this comment was disrespectful, please report it.)

 
7/24/2003 11:51:26 AM

I was wondering if there is anyway to adapt this to ethernet communication with an allen bradley RsLogix PLC? Any help would greatly be appreciated.
(If this comment was disrespectful, please report it.)

 
6/10/2004 12:11:50 AM

Great Submission,
Thanks I found it usefull.
But I would like to ask you some information regarding MultiPort Adapter
(e.g Digiboard etc). Let say I have 6 (six) RS485 as slave connected to one RS232 on a PC as master. The Multiport has its own driver but how we can read the data from all the slave ( six RS485)?
Have you ever face the situation before?

Thanks In Advance
Robby
(If this comment was disrespectful, please report it.)

 
8/25/2004 7:32:44 PM

First of all, your application has been been very usefull. I've tested your App with 2 computers and it works great. See, I'm a programmer for CompuRedpr.com and my recent task is to communicate with a Spectrofotometer (Science Lab Equip.) through the serial port. Today I tested the communication with your SerialCom App but I recieved a communication error from the Spectrofotometer. I have the RS-232-C
specifications : baudrate(9600), parity(none), and port(COM1); these are the defaults on the Spectro. However, the communication was unsuccesful. I think that the data sent from the Spectro is in ASCI format. Anyways, sinse you seem to have a strong feed back on serial communication, I wanted to ask you for a little guidance, hopefully you can help me out. I've asked my Proffessors and Instructors but they don't seem to fully understand the serial communication programming.
(If this comment was disrespectful, please report it.)

 
6/20/2005 9:20:46 AM

how i do to send a text file with you proyect at scale cas port serial, please help me
(If this comment was disrespectful, please report it.)

 
12/24/2005 9:33:01 PMBrad D. Harper

I found this code very useful for a hardware interface project I am working on. Thank you very much.
(If this comment was disrespectful, please report it.)

 
1/24/2006 5:19:02 AMJan

I tryed to run your program. But I recieved a fauld message. In the sub form load. Line "optPort(iX).Visible = True" Control array element '6'(iX) does not exist.
Can you have look at it and see how it can be changed.

Thanks
(If this comment was disrespectful, please report it.)

 
11/16/2007 7:32:14 PMGary Wilhelm

Very handy tool. Great code.
(If this comment was disrespectful, please report it.)

 
12/2/2008 12:38:41 AMKenny28

Your code looked perfect for what I needed to do however I use vb .net 2003 and the upgrade engine failed horribly :(
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2010 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.