Browsed by
Category: How to use

How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

On this post is showed how to install Rapid SCADA on a Touchberry B3 PI 10.1″, BananaTouch Octacore M3 10.1″, BananaTouch M64 10.1″ and TouchBerry Pi B3 7″ IN/OUT.

These products use an official Raspberry Pi 3 or an official Banana Pi products. These products have installed a Linux Debian Jessie. So,on this post we will see how to install Rapid SCADA on this OS. Rapid SCADA is free, open source, full featured SCADA software. 

This post is divided for three section: how to install Rapid SCADA,  how to configure Rapid SCADA and how to displayed on the Touch.

Read More Read More

TCP CLIENT ON ARDUINO BASED PLC

TCP CLIENT ON ARDUINO BASED PLC

On this post is showed how to connect to a server TCP from Arduino based PLC. The requirements of this post is just an M-Duino PLC with Ethernet connection and available TCP server . 

Take a look an example of how to implement a TCP SERVER ON TOUCHBERRY PI 3 WITH NODE.JS

Once the server is running, M-Duino can connect to the server. On this example it is used an M-Duino to connect with the Node.js server called server.js, the same as used on previous example link.

Read More Read More

How to connect a Pt1000 to an Arduino based PLC

How to connect a Pt1000 to an Arduino based PLC

On this post it is showed how to connect a Pt1000 (thermally sensitive resistor or RTD resistance temperature detector) to an Arduino based PLC. 

Industrial Shields PLC’s as Ardbox and M-Duino read the analog inputs with a 0-10V range.

The first thing that we have to know is what our temperature range of operation is. Also in this temperature range we need to know the range value of the thermistor. For example if our range temperature operation is between -20ºC and 100ºC the range thermistor value would be between 922 ohms and 1385 ohms.

Read More Read More

How to use the mapping pins of Industrial Shields boards

How to use the mapping pins of Industrial Shields boards

In this post it is showed how to use the mapping pins of Industrial Shields boards. Before using these pins it is necessary to download the Industrial Shields boards. Follow the next link to download the boards

These boards provide you Industrial Shields PLC mapping. How it works?

For example with this boards it is not necessary to figure out what Arduino pin belong to the Industrial Shields PLC. Just using directly this PLC pin, Arduino IDE will arrange the mapping for you. To reference to the Industrial Shields Pins it must be typed like this:

Digital Outputs: QX_X

Analog Outputs: AX_X

Relay Output: RX_X

Inputs (regardless if it’s analog or digital): IX_X  

Next it is showed a sketch example:

// In this case is selected the M-DUINO 58 board
void setup() {
  // Configure INPUT pins
  pinMode(I0_0, INPUT);
  pinMode(I0_1, INPUT);
  //...
  pinMode(I1_0, INPUT);
  pinMode(I1_1, INPUT);
  //...
  pinMode(I2_0, INPUT);
  pinMode(I2_1, INPUT);
  //...

  // Configure DIGITAL OUTPUT pins
  pinMode(Q0_0, OUTPUT);
  pinMode(Q0_1, OUTPUT);
  //...
  pinMode(A0_5, OUTPUT);
  //...
  pinMode(Q1_0, OUTPUT);
  pinMode(Q1_1, OUTPUT);
  //...
  pinMode(A1_5, OUTPUT);
  //...
  pinMode(Q2_0, OUTPUT);
  pinMode(Q2_1, OUTPUT);
  //...
  pinMode(A2_5, OUTPUT);
  //...
  
}

////////////////////////////////////////////////////////////////////////////////////////
void loop() {
  // Toggle pins once a second
  digitalWrite(Q0_0, HIGH);
  digitalWrite(Q0_1, HIGH);
  //...
  digitalWrite(Q1_0, HIGH);
  digitalWrite(Q1_1, HIGH);
  //...
  digitalWrite(Q2_0, HIGH);
  digitalWrite(Q2_1, HIGH);
  //...
  delay(1000);

  digitalWrite(Q0_0, LOW);
  digitalWrite(Q0_1, LOW);
  //...
  digitalWrite(Q1_0, LOW);
  digitalWrite(Q1_1, LOW);
  //...
  digitalWrite(Q2_0, LOW);
  digitalWrite(Q2_1, LOW);
  //...

  delay(1000);
} 

See also:

INSTALLING INDUSTRIAL SHIELDS EQUIPMENT TO THE ARDUINO IDE

TCP Server on Touchberry Pi 3 with Node.js

TCP Server on Touchberry Pi 3 with Node.js

On this post it showed how to implement a TCP server on Touchberry Pi 3

The requirements of this post is just a Touchberry Pi with internet connection.

To get the Node.js JavaScript interpreter we need to install the command cURL on our Linux.

cURL command is  very useful for HTTP/S requests. To get the cURL we just need to type on the Linux Terminal:

sudo apt-get install curl

Read More Read More

How to implement an Arduino web server

How to implement an Arduino web server

In this blog is showed how to implement an Arduino web server on Arduino based PLC’s. 

The requirement for this example is just an Ardunio based PLC with Ethernet connection as   M-Duino.  

M-Duino require power supply to make work the Ethernet shield and Ethernet wire. 

You must select the IP and Mac direction. In this example are: IP = 192.168.1.219 and Mac = 0xDE, 0xAB, 0xBE, 0x15, 0x00, 0x01.

Read More Read More

How connect Arduino based PLC with Siemens PLC equipped with Ethernet port

How connect Arduino based PLC with Siemens PLC equipped with Ethernet port

On this post it is showed how to connect Industrial Shields Arduino based PLC (M-Duino‘s) with a Siemens PLC equipped with Ethernet port or communication processor. Any PLC is supported except for old S5 family. To do that we have to use Settimino. Settimino is an open source Ethernet library for interfacing Arduino with Siemens S7 PLC’s. CPU’s 1200/1500 LOGO 0BA7 and S7200 are also supported. Download Settimino from the link

Requirements of this example:

  • Arduino based PLC with Ethernet connection: M-Duino‘s 
  • Siemens PLC with Ethernet connection

Once we have all the requirements, we can proceed to explain how it works. The main class is S7Client object that is able to connect and transfer data between Arduino based PLC and Siements PLC. Ethernet W5100 chip support 4 clients and uses a one data buffer for the entire client because just one can be connected at the same time. This data buffer can contain just one PDU (see the Siemens communication to know what that means).

The PDU variable is global, this means that is visible from the sketch. See an example (consult the syntax of the S7Client to get a better understanding).

Read More Read More

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:

M-Dunio needs the new Ariadne bootloader to be programmed through Ethernet. How to upload the new bootloader? 

Read More Read More