MpPackML_Mode error -1064239101

Hello everyone, the MpPackML_Mode status is not working correctly while the MpPackML_Module is running. Upon reviewing the help documentation, I see a mention of an MpLink error, yet I have already configured the MpLink status. I haven’t been able to figure out the cause of this issue; could you please help?

Hi,

The error is telling you what is wrong. You need a different MpLink for this function block:

To add some more details, MpPackML has two different modes of operation, “Standalone” and “Synchronized”. The differences of these modes, as well as which functions/function blocks are supported for each mode, are detailed here:

A few years ago it was decided that, instead of making a MpPackMLX library, the “Synchronized” mode of operation will become part of the already existing library, which unfortunately makes first-time configurations harder (and in my opinion a bit more confusing). But the table from the help should support you in finding out which FBs you can use together with which mode.

The primary reason that not all FBs can be used with every mode is that MpPackML behaves differently depending on the “Standalone” or “Synchronized” model. But, as mentioned, these differences can be read in the help.

But I guess the description of the error could also be extended to note something like: “The component is connected to a configuration of a different MpPackML operation mode.” (I’ll take that with me :sweat_smile: )

I am using Synchronized and have added this. My packmlModule command works, but I get an error regarding PckmlMode when changing modes. The issue is resolved if I use MpPackMLChangeMode(gPackmlMain, gPackMl.ModeID) instead of packmlMode, but I want to use packmlMode. If I add the PackmlModule to another Mplink, I encounter an error, and the same problem arises with the MpPackMlModule.

I checked everything and added them simultaneously; I can change the mode if I use MpPackMLChangeMode(gPackmlMain, gPackMl.ModeID), but I cannot do it using PackMlMode.

Hi @eem.ferhat, the MpPackMLMode function block can only be used in “Standalone mode”, therefore, you need to use an MpLink from a “MpPackMLStandaloneUnit” configuration. See below from the Help: B&R Online Help

You have mentioned you are using “Synchronized” mode, which is likely why error -106423910 is occurring, because you are using an invalid MpLink for this function block.

Thank you I overlooked it

Thanks all for this discussion. @eem.ferhat for describing the problem clearly and answering all additional questions quickly, and to the others here for their active help. Solution found in less than 1 day, I really like it.