Kepserver Codesys driver, Ignition opc item path for dynamic tag access

I try to read tag not previously created in kepserver with codesys driver.
No sure it could be done with this driver.

Ignition:
Data Type = Short
OPC item Path
nsu=KEPServerEX;s=Codesys.EC4P_1.mot_de_vie
or nsu=KEPServerEX;s=Codesys.EC4P_1…mot_de_vie

KepServer:
Provide the error:
compatible with the device data type. | Tag address = ‘.mot_de_vie’, server data type = ‘String’, device data type = ‘.mot_de_vie’.

Perhaps there is another item synthax in Ignition to provide the type ?

Ignition has absolutely nothing to do with this - whatever you put into the OPC Item Path is used as the NodeId, and it’s 100% up to the server how it interprets that NodeId or what the syntax is.

Yes I see. The error message in the kep Doc mention that the item is wrong or the data type.
In my case it must the item name requested not existing in kep opcua adresse space.
I think that this driver doesn’t support creating item on the fly, and tag must be created in kep before. :frowning:

@Kevin.Herron,

It was finally a “datatype” issue in kepserver.

For dynamic tag in Kepserver, I need to specify the type at the end of the opc item path.
In my use case:

nsu=KEPServerEX;s=Codesys.EC4P_1..mot_de_vie@Short

Dynamic tags are created on the fly by keyserver from the Ignitin opcua client request.
For codesys driver the datatype of the tag need to be specified as it can’t be deducted from the opcitem name like it can be done with synthax in modbus or S7 driver.

3 Likes