<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to BadTooManyOperations after changing array dimension from 80 to 160</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/72ff30de87/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/72ff30de87/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/72ff30de87/</id><updated>2022-08-09T15:19:30.726000Z</updated><subtitle>Recent posts to BadTooManyOperations after changing array dimension from 80 to 160</subtitle><entry><title>BadTooManyOperations after changing array dimension from 80 to 160</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/72ff30de87/?limit=50#a5a0" rel="alternate"/><published>2022-08-09T15:19:30.726000Z</published><updated>2022-08-09T15:19:30.726000Z</updated><author><name>struland</name><uri>https://forge.codesys.com/u/struland/</uri></author><id>https://forge.codesys.com796d9047337c3fbc1c8f95d960f46d41896500cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In Codesys PLC 3.5.SP12 (32-bit) project the OPCUA Server feature is acitvated.&lt;br/&gt;
The OPCUA client is a node-red (2.2.2) flow.  With node-red-contrib-opcua (0.2.282) the READMULTIPLE action is implemented. &lt;br/&gt;
It worked very well with roughly 6000 datapoints.&lt;/p&gt;
&lt;p&gt;Recently there was a need to increase an Array Constant from 80 to 160.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;b_Ventilator&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BYTE&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="mi"&gt;160&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// with :=80; it worked&lt;/span&gt;
&lt;span class="n"&gt;BX_Vnn1_AlVnnStoer&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ARRAY&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="n"&gt;Konst&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;b_Ventilator&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="n"&gt;OF&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// alarm contact ventilator&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;After the increase the client throws the error:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;Client node error on: READ MULTIPLE error: ["READ MULTIPLE error at active reading:  serviceResult = BadTooManyOperations (0x80100000)"]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;A quick research suggested, that the error is caused by the OPCUA Server. Which would be the CoDeSys PLC in my case.&lt;br/&gt;
&lt;a class="" href="https://github.com/node-opcua/node-opcua/issues/222#issuecomment-285337387" rel="nofollow"&gt;github&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="https://forum.unified-automation.com/viewtopic.php?t=2181" rel="nofollow"&gt;unified-automation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And that there might be a limit of 100 items.&lt;br/&gt;
&lt;a class="" href="https://forge.codesys.com/forge/talk/Engineering/thread/29dfa7151e/"&gt;forge&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This I could verify. With UA Expert inspecting Server - ServerCapabilities - OperationsLimits&lt;br/&gt;
100 MaxMonitoredItemsPerCall&lt;br/&gt;
100 MaxNodesPerBrowse&lt;br/&gt;
100 MaxNodesPerRead&lt;br/&gt;
100 MaxNodesPerRegisterNodes&lt;br/&gt;
100 MaxNodesPerTranslateBrowsePathsToNodeIds&lt;br/&gt;
100 MaxNodesPerWrite&lt;/p&gt;
&lt;p&gt;Is there an easy option to change the limits to 160?&lt;/p&gt;
&lt;p&gt;Has anyone stumpled upon a similar problem? How did you solve it?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>