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...
 
Back
Top