Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

omron opc reading and writing variables - by: Fietta

$
0
0
Hi,

is the first time for me using opc ua communication and i'm having some issues whit my Omron PLC:

i have write some lines of code to read a variable but i don't understand whta value i have to set for the Attribute, i have tried whit the name of the variable but nothing, this is the code:

Private client As EasyUAClient



Private value As Object

Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click
Dim COMUNICATIONOPCUA As String
Dim ATTRIBUTE As UAAttributeId

COMINCAZIONEOPCUA = "opc.tcp://192.168.1.251:4840"
ATTRIBUTE = 1
value = client.ReadValue(COUNICATIONOPCUA, ATTRIBUTE)

End Sub


have i do some mistakes somewhere?

Really thanks to everyone who will help me

Viewing all articles
Browse latest Browse all 1794

Trending Articles