Creating application in C or C++

logi.CAD 3 provides the possibility to create an application completely in →C or →C++. This possibility is not provided in all variants of logi.CAD 3.

Mind the following consequences:

  • This possiblity excludes all other possibilities to create the application for the current project.
    This means that you are not able to create objects in →ST and/or in →FBD within logi.CAD 3 projects that have been created based on project templates for C or C++.

  • Some →views of logi.CAD 3 do not contain information for an application that is created completely in C or C++ (e.g. the Instances view).
    This means that you are not able to use all views within such logi.CAD 3 projects in order to execute the appropriate actions.

If you do not want to turn down the advantages of ST/FBD programming and of the logi.CAD 3 view, logi.cals recommends the alternative to integrate the C-code or C++-code into the application.

Conditions

  1. The logi.CAD 3 version must have been configured by logi.cals.

  2. A toolchain (e.g. MinGW for a Windows platform) is required in order to build and debug the application.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg A toolchain is a set of tools, such as compiler, linker, assembler, intended to build the application. Additional tools, such as a debugger, can be associated with a toolchain.

Hence, if you are interested in this possibility, contact logi.cals in order to get a pre-configured logi.CAD 3 version and/or recommendations on the GNU toolchain appropriate for your target platform.

Instructions how to create an application in C or C++

Best practice for learning how to create an application in C or C++ is to use a simple example project "Hello World". Hence, follow the instructions in the specified order.

When you are creating your own application in C or C++, proceed in a similar way.

Good to know

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg When you create the application completely in C or C++, observe the following:

  • Knowledge about programming in C and/or C++ is essential.

  • The user documentation of logi.CAD 3 contains just an introduction. If you need more information and as logi.CAD 3 is using the C/C++ Development Toolkit (CDT) of Eclipse, please consult the current release of the Eclipse documentation (provided under http://www.eclipse.org/documentation/ – search for the section "C/C++ Development User Guide").