Browsed by
Category: General

How to program Arduino based PLC through Ethernet

How to program Arduino based PLC through Ethernet

This post it shows how to install Ariadne bootloader that allows to programming Arduino based PLC’s of Industrial Shields through Ethernet TFTP Client. Then it is also showed an example of how to program it. The requirements for this example are: An M-Duino  Other Arduino based PLC or Arduino board, as ISP New Ariadne bootloader for Arduino Mega 2560 .hex  Ethernet connection Industrial Shields Boards Installed M-Dunio needs the new Ariadne bootloader to be programmed through Ethernet. How to upload…

Read More Read More

How to create a web server to read a SD card with our PLC’s

How to create a web server to read a SD card with our PLC’s

This is an example it is explain how to read a SD card into the PLC through Ethernet connection. In this post we will see how create a server that when there is a request through a browser, you can see the directories and the files of the SD card in your browser. The PLC has to be connected the Ethernet connection and the SD card correctly, check this post how to do it.

How to connect a SD card to a PLC

How to connect a SD card to a PLC

  In this example we will see how to connect a SD card to each of our PLCs. Hardware required: One of our PLCs A SD card How to connect the SD card to our PLC? First we start with the connections; as follows you have a table and circuit diagram where you can see how to connect the SD card to the PLC.  

Control of soil humidity in an irrigation installation

Control of soil humidity in an irrigation installation

This newsletter is really interesting because control soil humidity in irrigation installations makes saving water, time and money.  Continue reading…   Hardware Hardware selection is very important when you try to develop projects where sensors, actuators and PLC´s must talk each other. For this project, with chosen the following equipment: PLC: Any PLC from IndustrialShields is a good option. We have chosen the M-Duino PLC Arduino 21 I/Os Analog/Digital because we think it has different communication options to be communicated…

Read More Read More

How to read an Analog Input

How to read an Analog Input

You can read the data of an Analog Input through: … int myAnalog; … void setup() {} void loop() { myAnalog = analogRead(A0); } With this piece of code you’ll read the voltage of a sensor. As our analog input works between 0-10V, the read value (myAnalog) will be a value between 0-1023. If the value of sensor is (3V), myAnalog value is 3*1023/10 = 307.

How to test / read data from console / RS232

How to test / read data from console / RS232

RS232 commnication is not necessary, but is very useful. You can write some code and you want to switch on a led. The easier way to know what is happening if the led isn’t turning on, is through RS232, and watching what are the values of the vars,…   So, if you have purchased an Ardbox, you’ll need to initialize communications through: Serial.begin(9600); while (!Serial) {} and after that, you’ll be able to send any value to the RS232 port,…

Read More Read More

How to Modbus-Ethernet

How to Modbus-Ethernet

Modbus is a Serial communications protocol and it is used for communicating with several industrial devices. It may run over RS485, Ethernet, or whatever hardware interface. If we have an ethernet connection between a lot of devices, we can use this hardware connection (eth), and over it, we can use our own protocol (custom protocol,…), or for instance, Modbus protocol. The way is the same as using RS485, but hardware connections will become much easier, the speed will be higher, and…

Read More Read More