I declared a tag in KEPServer OPC as Array of Words (3 items), connected to a Siemens S7 PLC. I can read tag but I don't can write this. Opc.Write method returned an 'Error' and a message saying 'The types don't match' (In Spanish: Los tipos no coinciden). I think that message was returned for the O.S.
Hi,
I declared a tag in KEPServer OPC as Array of Words (3 items), connected to a Siemens S7 PLC. I can read tag but I don't can write this. Opc.Write method returned an 'Error' and a message saying 'The types don't match' (In Spanish: Los tipos no coinciden). I think that message was returned for the O.S.
KEPServer Tag
Name: Test
Address: DB238, DBW0 [3]
I wrote the following sample code in Python:
import sys
sys.path.append('C:\OpenOPC\src')
import OpenOPC
opc = OpenOPC.client()
opc.connect('KEPware.KEPServerEx.V4')
readed = opc.read('Siemens.Expansora.Test')
print('Readed:', readed)
toWrite = ['Siemens.Expansora.Test', (2,3,4,)]
rst = opc.write(toWrite,include_error=True)
print('Result:',rst)
toWrite = ['Siemens.Expansora.Test', [2,3,4,]]
rst = opc.write(toWrite,include_error=True)
print('Result:',rst)
opc.close()
Console:
Readed: ((4, 16, 32), 'Good', '10/31/2013 11:50:52')
Result: ('Error', 'Los tipos no coinciden. ')
Result: ('Error', 'Los tipos no coinciden. ')
Anyone who has had this problem too?
Thanks!!
Did you figure out a solution to this problem?