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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
This is the format:
MyPLC.WriteData("N7:230", PartType)
all good, thanks.