send data to OPC

  • Thread starter Thread starter nizargermany
  • Start date Start date
N

nizargermany

hello i will send data to a slave but i can't:

my first code:

private datasocket as cwlib.cwdatasocket
datasocket= New CWDSLib.CWDataSocket
datasocket.ConnectTo("URL",
CWDSLib.CWDSAccessModes.cwdsReadWriteAutoUpdate)
datasocket.Data.Value = System.Convert.ToByte(1)


my second code:

private datasocket as cwlib.cwdatasocket
datasocket= New CWDSLib.CWDataSocket
datasocket.ConnectTo("URL",
CWDSLib.CWDSAccessModes.cwdsReadWriteAutoUpdate)
Dim v(32) As Byte
v(0) = CByte(1)
datasocket.Data.Value = v

please help!!!!
thanks
 
hello i will send data to a slave but i can't:

my first code:

private datasocket as cwlib.cwdatasocket
datasocket= New CWDSLib.CWDataSocket
datasocket.ConnectTo("URL",
CWDSLib.CWDSAccessModes.cwdsReadWriteAutoUpdate)
datasocket.Data.Value = System.Convert.ToByte(1)


my second code:

private datasocket as cwlib.cwdatasocket
datasocket= New CWDSLib.CWDataSocket
datasocket.ConnectTo("URL",
CWDSLib.CWDSAccessModes.cwdsReadWriteAutoUpdate)
Dim v(32) As Byte
v(0) = CByte(1)
datasocket.Data.Value = v

please help!!!!
thanks

I'd like to help, but you don't give much to go on. First of all, I'm
not familar with this socket library your using - where did it come
from? Do you get an error? What is it? It might be helpful if you
enumerated some of these things...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top