FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
06-28-2023 11:14 AM - edited 06-28-2023 11:16 AM
With the ctrlX PLC 1.18 version we can import a PLC Open xml file without problems. When we import the same file with the ctrlX PLC 1.20 version we get an error: Object reference not set to an instance of an object. If we remove variables from type POINTER_TO_XXXX in the variable declaration then the PLC Open XML import goes well. It seems that in the ctrlX PLC 1.20 something has been changed regarding PLC Open XML import.
Solved! Go to Solution.
06-29-2023 09:33 AM
1. When do you get the error? While importing or compiling?
2. What is the exact error message? It could be that the compiler checks are extend in the new version, which causes the error.
3. I can import the file in ctrlX PLC 1.20.0 without an error. Which exact version is used?
4. I can't find any text "POINTER_TO" in the imported content. Have you uploaded the file which causes the problem or the purged one?
Some general hints to your topic:
You should NOT use the PLC Open format, to exchange data between any CoDeSys implementations, because PLC Open does not support all CoDeSys features. This means some stuff like visu can't be exchanged at all. The code of other features which are extensions of CoDeSys and not included in PLC Open, may be changed while exporting.
Use Import/Export or Copy/Past with 2 PLC Engineering instances instead.
10-18-2023 12:43 PM
Good morning
We are with a customer trying to perform a migration of different PLC modules (FB, FC) made on an XM22 to the PLC application of a ctrlX with version 1.20 and at the time of importing them from the XML file generated in the XM22 some of the function blocks or functions are not accepted by the ctrlX.
The following error appears during the import process:
Doing tests, I have found that one of the problems why the import does not seem to work, is because of these instructions that appear blocked with the "///" and that contain the POINTER TO WORD statement.
With these lines locked, the import works correctly
As you can see, I have the same problem described earlier in the post
I also can't copy paste directly from Indraworks to ctrlX PLC, as drag and drop doesn't seem to work.
The Import/Export options also don't work. Any ideas?
Is there anything missing from ctrlX when importing XML files?
Best Regards
Jordi Laboria
E-Mail: jordi.laboria@boschrexroth.es
https://www.youtube.com/channel/UCzE-ieCIkyMsuvyE0UDji9g
DCET/SLF4-ES
10-18-2023 01:20 PM
Please read this article, which describes a better way to convert code.