I am trying to build code for my PLC from Simulink model which uses both data dictionary and base workspace. It simulates fine in Simulink.
But upon building code, I get an error complaining about missing variable in the data dictionary, but it is defined in the base workspace.
Do B&R blocks have certain priority for data dictionary over base workspace if they find it linked to the model? Any suggestions on how to fix this?
Hej Akash - first of all, welcome to the B&R Community. You can definitely use both data defined in a data dictionary or in the base workspace. After you add a data dictionary to your model, you might have to ensure that the checkbox “Enable dictionary access to base workspace” is checked: