EcoStruxure Machine Expert (SoMachine) Build message C0077: Unknown type GetDateAndTime or SetDateAndTime
When I update a project from SoMachine v3.1 to SoMachine v4.1 or higher, I see the associated build messages:
C0077: Unknown type 'GetDateAndTime'
C0077: Unknown type 'SetDateAndTime'
C0077: Unknown type 'Error'
Product Line
EcoStruxure Machine Expert / SoMachine v4.1 or higher
Environment
PLC Configuration software for Windows
Cause
The functions GetDateAndTime and SetDateAndTime in SoMachine v4.1 or higher are no longer uniquely named and unique to one library.
The ENUM called 'ERROR' (which is the data type of the "eERROR" output pin of GetDateAndTime and SetDateAndTime) also no longer uniquely named.
Each must be explicitly declared with the namespace of the "CAA DTUtil Extern" Library (Date and Time Utilities) with the prefix "DTU."
Resolution
Use the Find (Ctrl+F) functionality in the project and find all instances of "GetDateAndTime", "SetDateAndTime" and "ERROR" respectively and perform the following modifications:
- Replace the declarations and function block instances of "GetDateAndTime" with "DTU.GetDateAndTime"
- Replace the declarations and function block instances of "SetDateAndTime" with "DTU.SetDateAndTime"
- Replace the declarations of "ERROR" with "DTU.ERROR"
Example: Change the declaration "MySetTimeError : POINTER TO ERROR;" to "MySetTimeError : POINTER TO DTU.ERROR;"
Publié pour: Schneider Electric Belgium


Besoin d'aide ?
Sélectionnez le bon produit
Trouvez rapidement et facilement les produits et accessoires adaptés à vos applications.
Obtenir un devis
Effectuez une demande de renseignements en ligne et un expert vous contactera.
Où acheter ?
Trouvez facilement le distributeur Schneider Electric local le plus proche.
Centre d'aide
Trouvez des ressources de support pour tous vos besoins, en un seul endroit.