Menu

EthernetIPForSLCComm.WriteData() help...

Help
2012-01-31
2013-05-30
  • Jose J Garcia

    Jose J Garcia - 2012-01-31

    Once again, thanks fro this great tool. I'm looking for help writing to a SLC505 without using the visual controls. I have added the Ethernet IP SLC driver to my form and verified communication using the basiclabel control. I'm now trying to write data to the PLC with the following code in VB Express 2010 :

    Dim PartType As Integer
    PartType = 258
    MyPLC.WriteData(N7:230 As String, PartType As Integer) As Integer

    VB Express 2010 does not like it and does not build, keeps complainining about "N7". I also tried "N7:230" but then it throws even more errors at me. Any ideas on what I'm doing wrong? Thanks in advance.

     
  • Archie

    Archie - 2012-01-31

    This is the format:

    MyPLC.WriteData("N7:230", PartType)

     
  • Jose J Garcia

    Jose J Garcia - 2012-02-20

    all good, thanks.

     

Log in to post a comment.