Description
This video tutorial introduces the use of openSYDE COMM Datapools when programming an application in Structured Text (ST) according to IEC61131-3. With an example, the programming of CAN communication between a controller and a temperature sensor using the openSYDE COM engine and COMM datapools is shown step by step. Code generated from openSYDE and its integration into the own application, as well as the display of variables at runtime of the application with openSYDE dashboards and in parallel with logi.CAD IDE are demonstrated.
Objectives
The participant
- Knows the required components and tools for programming an application according to IEC61131-3
- Can program CAN communication between the controller and a temperature sensor based on the template application from the Target Support Package using COMM data pools
- Can generate code with openSYDE and integrate it into an own application
- Can create dashboards in openSYDE and use them to display the values of received CANmessages
- Can use the Data Debugging function of logi.CAD to display the values of variables
Prerequisites
Basic knowledge of programming electronic controllers.
Programming skills in Structured Text according to IEC61131-3.
Basic knowledge of openSYDE
Course Content
- Experimental Setup
- Required hard- and software components
- Creation of the openSYDE project
- Import of the template application from the TSP
- Examination of the structure of the template application with the logi.CAD IDE
- Creation of the COMM data pools
- Configuration of the CAN messages of the temperature sensor in openSYDE
- Code generation with openSYDE
- Programming of the openSYDE COM engine
- Integration of the generated code
- Initialization and start of the COM engine
- Programming of a logic for exemplary further processing of received CAN messages
- Displaying variables
- Programming of a variable for display with the data debugging function of logi.CAD
- Creation of an openSYDE dashboard to display temperature and status of the sensor
- Test of the application
- Flashing the controller
- Operation of the dashboards in openSYDE
- Parallel logi.CAD login and display of values with the Data Debugging function
The video is available for watching on the STW YouTube Channel.