How exactly do you get the child count (children per command handler)? What exactly is counted, do SubTree instances (and their units) belong to them, for example? If I look at the OnInitHirarchy method I would assume that every AddUnit () is viewed as a child. Do an AddCommand () or an AddAddOn () also count?
Solved! Go to Solution.
If you get an error "Maximum count of xxx per handler exceeded":
For every method there is an own parameter that can be changed in the library manager in the OpconBase / NxBase library.
After changing a library parameter you should do a clean project/solution and activate configuration!
Keep in mind that increasing these library parameters also increases the PLC cycle time / CPU load.
AddUnit => OPCON_HANDLER_CHILDS_PER_HANDLER
AddAddon => OPCON_HANDLER_ADDONS_PER_HANDLER
AddCommand => OPCON_HANDLER_CMDS_PER_CMDHANDLER
AddMode => OPCON_HANDLER_MODES_PER_MODEHANDLER (this is also used for CmdHandler in Control plus V2)
AddSubchain => OPCON_HANDLER_SUBCHAINS_PER_HANDLER