from the Automation List department...
PLC inputs and outputs using VB
PLCs and related questions. topic
Posted by William Teng on 25 March, 2006 - 1:42 am
Is it possible to read the status of a PLC inputs and also to activate the PLC outputs using VB? The protocol is modbus. I went to http://www.tractrola.com but the given example is in C language because I am a visual basic programmer.


Posted by Andrzej on 26 March, 2006 - 10:56 am
Hi
You can download Modbus VB project with source code from http://www.modbus.pl

Regards
Andrzej


Posted by Nathan Boeger on 26 March, 2006 - 10:58 am
The easiest way to connect through an OPC server and use the API specified by the OPC foundation. They have sample VB code on their website. You could also use a program like FactorySQL to abstract that out to an SQL database, then all you would need to do is interact with the SQL database.

----
Nathan Boeger naboeger@inductiveautomation.com
Integrator, Microsoft Certifed Systems Engineer
http://www.inductiveautomation.com
"Design simplicity cures engineered complexity"


Posted by Mark on 29 March, 2006 - 11:54 pm
You can download a Modbus master or slave ActiveX Control from http://www.automatedsolutions.com. The control will allow you to communicate directly with your controller from your VB application.

All Modbus master and slave derivatives are supported: Modbus RTU, ASCII, TCP, PLUS.

A ready-to-run HMI application and associated VB6 source code are included.


Posted by Martin Severgnini on 31 March, 2006 - 11:24 am
Try JagusDataLogger ( http://jagusits.netfirms.com ). You can use VB6 or .NET with it.

Martin

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Mistakes are often the stepping stones to utter failure.