We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.
03-24-2022 10:00 AM
Hello,
One issue I have, after I build PLC program, one error is occurred, 'Generating TMC failed! Object reference not set to an instance of an object'.
PS: The program is running in the production line, and build it without error in the owner computer, but others' computer has this error.
Solved! Go to Solution.
03-24-2022 03:02 PM - edited 05-17-2024 03:44 PM
Make sure that the "pin version" checkbox is set. Otherwise the project will open with different TwinCAT versions depending on what is installed on your computer.
Also compare (binary compare, not date compare!) if this folder on both laptops is identical (one can have more libraries than the other, but if they have both the same library versions, the files must be identical):
C:\TwinCAT\3.1\Components\Plc\Managed Libraries
If both is fine there were several solutions in the past:
03-26-2022 02:05 AM
Thank you ^^, it is related pin version with different TwinCAT version