Skip to Content

#6 Variables II

When reading this chapter you have to take into account a series of points:

You can practice with an Arduino board. In the different PLCs we use original Arduino boards, for this reason it is not necessary that you practice with our equipment.

In this chapter, we will continue with the types of variables that we treat in a program, where we left it in the previous chapter. This is important since using the variable of the appropriate type in a project is key to avoid possible problems when operating with these. It also allows you to optimize well the code thing that you will appreciate when you go to use different systems of communication with the equipment (RS485, RS232, Ethernet, Serial TTL, etc).

Everything that we will see in this chapter is very useful to you. Not only for Arduino programming, but for programming in general. It is very important to know that there are differences between the different types of Variables. And also certain similarities between one or the other, so you will not have to feel overwhelmed to see this agenda. With the different chapters, you will see and assimilate the use of one type and another.

Variables

It is important to be clear about how different truths are declared and what options we have in each of them. In the final part of the video we also show you how to write these variables in the Arduino IDE.

In the video, we show you where you can see this information so that very quickly you can review the agenda of this chapter. The objective is that you can identify the different types of variables treated as well as have an idea of when to use one type or another.

(Remember: For us a PLC works like an Arduino board, our PLCs use original Arduino boards so you can try this course using original Arduino boards).

Useful Links

Material to do practices

Arduino Leonardo or Arduino Mega (You also can use an Arduino UNO if you get it).

(The devices used with the Arduino Mega and Arduino Leonardo assembled inside have been: From the Ethernet PLCs; the M-Duino 21. From the 20I/Os PLC; The Ardbox Relay).

Please, answer this survey. It will help us to improve the course.

Start Survey >>


 
 

Commenting is not enabled on this course.