VB6.0 ile OPC Server'lardan Data Alma Verme kODLA

hltdesign
02-01-2009, 21:19   |  #1  
OP Yıllanmış Üye
Teşekkür Sayısı: 0
171 mesaj
Kayıt Tarihi:Kayıt: Oca 2009

VB6.0 ile OPC Server'lardan Data Alma Verme
'text 1 deki değer A1 tag'ine yazılıyor
copc1.svrname = "SWToolbox.TOPServer"
copc1.itm0 = "PLC.CPU412.A1"
copc1.cnnec
copc1.opcWrt 0, Text1.Text

'A1 tag'indeki değer text2'ye alınıyor.
copc1.svrname = "SWToolbox.TOPServer"
copc1.itm0 = "PLC.CPU412.A1"
copc1.cnnec
Text2.Text = copc1.vl0