TwinCAT 3: Standard data types (Part 12)

And again, the title directly reveals the topic we will deal with in this video: the standard data types in TwinCAT 3. These are the data types that are defined in the IEC 61131-3 standard.

Before we start and introduce you to one data type after the other, we will explain how to use them in TwinCAT in the first place. And yes, we have done that before, but honestly, we didn't really go into it. Therefore we explain it again at the beginning of this video and then we start with the first data type: BOOL. Next comes the integer data types. In the course of this you will learn how to write values in binary or hexadecimal in TwinCAT.

Then we continue with the floating point types and the STRINGS. For the STRINGS we will explain directly how you can create a escape sequences uses. We list a few helpful ones for you and we also introduce the data type MAX_STRING_LENGHT which can save your string from being truncated by TwinCAT. 

Lastly, this video is about the date and time data types and because it fits in and is very interesting, we'll explain what Unix time is at the same time.


00:00 Intro
00:26 How to use data types in TwinCAT3
01:20 BOOL
01:41 Integer data types
02:30 How to write values binary coded or as hexadecimal number
03:22 Integer data types
03:54 Floating point data types
04:20 String data types
05:10 Escape sequences (STRING)
05:40 String data types
06:19 T_MaxString / MAX_STRING_LENGHT
07:33 Time data types
09:35 Unix time
10:20 time data types
10:54 Outro

← Part 11

Table of Contents

Part 13 →