Links

MrPLC Member
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Links

  • Rank
    Hi, I am New!
  • Birthday 02/04/58

Contact Methods

  • Website URL http://
  • ICQ 0

Profile Information

  • Gender Male
  • Location Arkansas
  • Country United States

Recent Profile Visitors

1449 profile views
  1. I have been using Visual Studio 2005 to pull Data from RSLinx PLC and have no problems using the following: LinxItem1 = LinxOPCGroup.OPCItems.AddItem("[PLC_TOPIC]TAG_NAME1,L1,C1", 1) LinxItem77 = Form1.LinxOPCGroup.OPCItems.AddItem("[HP_PRESS_PG]F78:45,L1,C1", 12) This works fine talking to a PLC5 LinxItem73 = Form1.LinxOPCGroup.OPCItems.AddItem("[HP_PRESS_TEMP]NorthCol_Raw,L1,C1", 8) This gives and error when trying to run the code. I am having problems with the TAG_Name when looking in the data monitor getting it right. When looking at the Data Table Monitor HP_ETH_CLX\IP Address\Backplane\0 Tag Name Value Radix Type NorthCol_Raw 3.312991 Float REAL When I use NorthCol_Raw for the TAG_NAME I get and error. Any Ideas or examples???
  2. Thanks for the links. I did finally get something to work it was from and old post on this site. LinxItem1 = LinxOPCGroup.OPCItems.AddItem("[RTO2]N9:73,L1,C1", 1)
  3. Need some help I am new to VB.Net (Visual Studio 2005) but not to VB. I want to use VB.Net to Monitor some integers in a PLC5. I am looking for some sample code, having problems when it comes time to address a specific PLC and a specific integer. I not having any problems connecting to RSLinx using OPC. But I can't seem to get it right for displaying from a specific PLC (RTO2) and a specific integer (N9:73). Below is the code I am using pretty simple. I have Windows 7 or XP and Using RSLinx 2.54 and PLC5's Option Strict Off Option Explicit On Friend Class Form1 Inherits System.Windows.Forms.Form ' ' Note that 'Rockwell Software OPC Automation' has been included as a project reference ' to get definitions of the OPC objects. ' (See the Project/References menu item in VB) ' Dim MyOPCServer As RsiOPCAuto.OPCServer 'Server object Dim MyOPCServerGroups As RsiOPCAuto.OPCGroups 'Groups collection Dim WithEvents MyOPCServerGroup As RsiOPCAuto.OPCGroup ' Group object - WithEvents gives data change callback Dim MyOPCItems As RsiOPCAuto.OPCItems 'Items collection Dim MyOPCItem As RsiOPCAuto.OPCItem Private Sub cmdConnect_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdConnect.Click MyOPCServer = New RsiOPCAuto.OPCServer MyOPCServer.Connect("RSLinx OPC Server") If MyOPCServer.ServerState = RsiOPCAuto.OPCServerState.OPCRunning Then Label2.Text = "Running" cmdAddGroup.Enabled = True End If End Sub Private Sub cmdAddGroup_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdAddGroup.Click MyOPCServerGroups = MyOPCServer.OPCGroups ' Get groups collection MyOPCServerGroups.DefaultGroupIsActive = True 'Default group state MyOPCServerGroup = MyOPCServerGroups.Add("TestGroup") 'Add new group (name is not important) MyOPCServerGroup.UpdateRate = 500 'Update rate in mS MyOPCServerGroup.IsSubscribed = True 'Enable data callbacks cmdAddItem.Enabled = True cmdRemoveGroup.Enabled = True End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Here is where I am running into trouble. MyOPCServerGroups.Add("RSLinx|RTO2") TextBox1.Text = MyOPCItem.Value End Sub End Class