How to write datapoint to IEC driver: IGQ

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
giorgiob
Posts:31
Joined: Fri Sep 07, 2018 12:53 pm

How to write datapoint to IEC driver: IGQ

Post by giorgiob »

From Para, I defined a datapoint with IEC driver peripheral address (112.0.1.5.0.1), output direction, address active.

After the connection with peripheral unit is achieved, my control script starts IGQ:

dpSet("_Driver2.IGQ", "conn1.112.0.1.5.0.1");

Even if from Para I can see _Driver2.IGQ original value properly written with address pattern, no writings in control direction are sent from driver to RTU (I checked it with wireshark protocol sniffing).

Can you help me?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to write datapoint to IEC driver: IGQ

Post by leoknipp »

To check if the IGQ works you can first use the pattern "*" at the IGQ element to send all values to the PLC, if this is possible and does not cause problems on the plant if the PLC receives all values.
If this works you can try it with patterns in the address string you are using, possibly the string is wrong and therefore it does not work.
When the debug flag "-dbg 2" is activated for the driver you can probably also get information in the logfile which helps to find the problem.

Best Regards
Leopold Knipp
Senior Support Specialist

giorgiob
Posts:31
Joined: Fri Sep 07, 2018 12:53 pm

Re: How to write datapoint to IEC driver: IGQ

Post by giorgiob »

Hi Leopold, thank you for your suggestion.

I tried with wildcard patterns:
"*"
"*.0.100.4.0.1" and "*.0.100.8.0.4"
and it works. Here is the partial log:

WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.712, WORK, "Hotlink received for (Type: 173 Sys: 1 Dp: 502 El: 2 : _original.._value)"
WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.712, WORK, "Hotlink received for (Type: 146 Sys: 1 Dp: 42 El: 16 : _original.._value)"
WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.713, WORK, Hotlink: got PVSSGQ
WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.715, WORK, IecPr104ConnItem::insertQueueItem() for: "conn1"
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "112.0.100.4.0.1" connIndex 1
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "112.0.100.4.0.1" connIndex 2
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "112.0.100.4.0.1" connIndex 3
WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.716, WORK, IecPr104ConnItem::insertQueueItem() for: "conn1"
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "45.0.100.8.0.4" connIndex 1
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "45.0.100.8.0.4" connIndex 2
WCCOAiec2: IecTgLayer::writeData() No addressMatch for address "45.0.100.8.0.4" connIndex 3
WCCOAiec2:WCCOAiec (2), 2018.11.06 12:28:01.716, WORK, IecPr104ConnItem::insertSendItem for: "conn1" 0
WCCOAiec2:"conn1":1 2018.11.06;12:28:01:716 :

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to write datapoint to IEC driver: IGQ

Post by leoknipp »

As far as I know the pattern must match the information you get when reading the attribute _address.._reference.
if this information is used the IGQ should work.

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1