KB-65789: I/O points consumption on offline mode when using an XObject.

Question:

As seen below, I have an XObject with one driver and three I/O tags:

 

 

The driver starts on offline mode, and its parameterization (IP, port, and network address) happens at AfterStart event:
'Settings Parameters
Dim arr(3)
arr(1) = Array("IO.Ethernet.MainIP", Parent.IP)
arr(2) = Array("IO.Ethernet.MainPort", Parent.Port)
arr(3) = Array("ModiconModbus.DefaultSlaveAddress", Parent.Address)
 
Write -1, 0, 0, 3, arr

'Online
Write -1, 0, 0, 4, 1

Three XObject instances were inserted in the server’s data server, and theoretically the driver should consume 9 I/O points, but it’s actually consuming 15. Is this behavior correct?

 

 

Solution:

When you write on the driver via scripts, regardless of its mode (online or offline), even inexistent tags are part of the total tag count. Example:

Write -1, 0, 0, 3, arr
Write -1, 0, 0, 4, 1

In this case, the behavior is correct, and two more tags for each instance will be added to the general count, which will make a total of 15 I/O points.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *