Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
EcoStruxure Machine Expert (SoMachine) Build message C0077: Unknown type GetDateAndTime or SetDateAndTime
Issue
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:
  1. Replace the declarations and function block instances of "GetDateAndTime" with "DTU.GetDateAndTime"
  2. Replace the declarations and function block instances of "SetDateAndTime" with "DTU.SetDateAndTime"
  3. Replace the declarations of "ERROR" with "DTU.ERROR"
    Example: Change the declaration "MySetTimeError : POINTER TO ERROR;" to "MySetTimeError : POINTER TO DTU.ERROR;"

Schneider Electric Ireland

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:

Need help?

  • Product Selector

    Quickly and easily find the right products and accessories for your applications.

  • Where to buy?

    Easily find the nearest Schneider Electric distributor in your location.

  • Help Centre

    Search topic-related frequently asked questions to find answers you need.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Find our Offices
  • Where to buy
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings