Hi
I have the following code to read and write:
import win32com.client
client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')
value = client.ReadItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]')
client.WriteItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]', 7)
They work well but I would like to know how to read and write multiple values in just one function. Is there any function already doing this?
Thank you.
I have the following code to read and write:
import win32com.client
client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')
value = client.ReadItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]')
client.WriteItemValue('', 'CoDeSys.OPC.02', '.Inputs[9]', 7)
They work well but I would like to know how to read and write multiple values in just one function. Is there any function already doing this?
Thank you.