You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old August 17th, 2011, 07:31 AM   #1
Shop2011
Member
United States

Shop2011 is offline
 
Join Date: Aug 2011
Location: Missouri
Posts: 3
Unhappy vb.net to micrologix 1400 communications

I am using vb.net and am trying to communicate with a micrologix 1400 plc. I am using Netgear Logix to communicate. I used the same driver in the past to communicate with a Compact Logix controller. I am needing to know what the syntax for the communications is. Anyone have an example or can point me where to find an example. With the Compact system the syntax was ContolLogixTag.Name = "Some_Bit". I could read and right to that bit. Anyone have any ideas?
  Reply With Quote
Old August 17th, 2011, 07:35 AM   #2
Bob O
Member
United States

Bob O is offline
 
Join Date: May 2003
Location:
Posts: 1,256
Welcome...
See this thread http://www.plctalk.net/qanda/showthread.php?t=42656
__________________
"It is the tragedy of the world that no man knows what he doesn't know - and the less a man knows, the more sure he is that he knows everything." Author Unknown
  Reply With Quote
Old August 17th, 2011, 07:53 AM   #3
Shop2011
Member
United States

Shop2011 is offline
 
Join Date: Aug 2011
Location: Missouri
Posts: 3
I watched the youtube video. Very informative. The only problem is that I don't have all of the controls that was shown in the video. The property PLCAddress is not available to me. Any reason why? I just have command buttons, labels, and text boxes. I am using Microsoft Visual Basic 2008 Express Edition.
  Reply With Quote
Old August 18th, 2011, 08:16 AM   #4
Shop2011
Member
United States

Shop2011 is offline
 
Join Date: Aug 2011
Location: Missouri
Posts: 3
I have looked into this advanced HMI and it doesn't look like it will work for my application. I am reverting back to the Ingear driver but I still can't get it to work with the micrologix controller. Any Suggestions?
  Reply With Quote
Old August 18th, 2011, 10:51 AM   #5
dmroeder
Lifetime Supporting Member
United States

dmroeder is offline
 
dmroeder's Avatar
 
Join Date: Apr 2006
Location: Vancouver, WA
Posts: 1,179
Quote:
Originally Posted by Shop2011 View Post
I watched the youtube video. Very informative. The only problem is that I don't have all of the controls that was shown in the video. The property PLCAddress is not available to me. Any reason why? I just have command buttons, labels, and text boxes. I am using Microsoft Visual Basic 2008 Express Edition.
When you first open the application you need to build it. This will give you all the pre-build objects (gauges and such). These objects will have the PLCAddress property (now called PLCAddressValue I belive). It's only the custom AdvancedHMI objects that will have this property, not the default VB objects.

You also need to put the EthernetIPforSLCMicroComm driver onto the form and give it the IP Address of the PLC. Then you should just have to drop an object on the form, say a gauge, and give give it an address in PLCAddressValue. When you run it, it should talk.

(at least this worked for me with the CLX driver, I don't have a MicroLogix)
__________________
Get 2 GB of free space from Dropbox using my referral.

Last edited by dmroeder; August 18th, 2011 at 10:54 AM.
  Reply With Quote
Old October 26th, 2012, 08:56 PM   #6
Rio Nilo Doyac
Member
Philippines

Rio Nilo Doyac is offline
 
Join Date: Oct 2012
Location: Cabuyao
Posts: 1
Hi... Can you teach me how to create a program from vb8 that reads and write to plc5 or plc500 without connecting rs232..??? i have a rslinx classic but i dont know how to link it to vb8... there are to many errors when i try to program it... Dim OpcServer As New RsiOPCAuto.OPCServer
Dim OpcGroup As RsiOPCAuto.OPCGroup
Dim OpcItem As RsiOPCAuto.OPCItem
Dim vItem As String = ""

Try
OpcServer.Connect("RSLinx Remote OPC Server", "192.168.195.128")

' Add this group to the shared topic
OpcGroup = OpcServer.OPCGroups.Add("INDEC")
OpcGroup.IsSubscribed = False
OpcGroup.IsActive = False
OpcGroup.UpdateRate = 250

OpcGroup.OPCItems.DefaultAccessPath = "OPC_Test"
OpcGroup.OPCItems.AddItem("OPC_Bit001", 1)
OpcItem = OpcGroup.OPCItems.Item(1)

OpcItem.Read(2, vItem)

OpcItem = Nothing
OpcServer.OPCGroups.RemoveAll()
OpcGroup = Nothing
OpcServer.Disconnect()
OpcServer = Nothing

'Add and Error the list box
Catch ex As PlatformNotSupportedException
MsgBox("Error In Get Plc Data: " & ex.Message)
End Try

MsgBox(vItem)

it does not work....

the errors are

Error 1 Type 'RsiOPCAuto.OPCServer' is not defined.
Error 2 Type 'RsiOPCAuto.OPCGroup' is not defined.
Error 3 Type 'RsiOPCAuto.OPCItem' is not defined.

hope you can help me..thanks.....
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Micrologix 1400.... Brijm LIVE PLC Questions And Answers 13 April 8th, 2012 06:15 PM
Eaton HMI to AB Micrologix 1400 communications whatever LIVE PLC Questions And Answers 3 October 5th, 2010 10:50 PM
micrologix 1400 configuration with rslogix 500 sruthi LIVE PLC Questions And Answers 3 July 30th, 2010 01:09 AM
MicroLogix 1400 problem shoelesscraig LIVE PLC Questions And Answers 4 September 12th, 2009 04:41 AM
MicroLogix 1400 to Intouch LogicON LIVE PLC Questions And Answers 3 July 16th, 2009 07:31 AM


All times are GMT -5. The time now is 10:07 PM.


.