Browsed by
Category: Communication Ports

Examples of how to use communication ports

how to connect a Bluetooth module to an Arduino based PLC

how to connect a Bluetooth module to an Arduino based PLC

On this post it is showed how to connect a Bluetooth module, HC-05 on this example, to an Arduino based PLC. With all the Industrial Shields equipment it’s possible to add a Bluetooth module as HC-05. HC-05 is a converter from serial TTL to Bluetooth waves and vice versa. The first step is fix the connections between HC-05 with for example an M-Duino 21. The HC-05 connections available are showed below:

How to use a Max3232 with Arduino based PLC

How to use a Max3232 with Arduino based PLC

On this post it is showed how to connect a Max3232 to an M-Duino PLC family.                                       Max3232 has a two lines of RS-232 communication and their respective two channels of TTL and also power supply pins (3-5,5V-GND).  How to connect M-Duino PLC whit the Max3232? M-Duino has two available serial TTL, RX1/TX1 (or Serial1) and RX3/TX3 (or serial3).  Connecting RX1/TX1 with…

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: 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

SimpleComm library to send data through any Arduino Stream

SimpleComm library to send data through any Arduino Stream

This is Industrial Shields library for different PLC’s  With the SimpleComm library you can send data through any Arduino Stream: RS-485, RS-232, Ethernet… It is enough flexible to support different kind of communication typologies: Ad-hoc, Master-Slave, Client-Server… Using an easy to use API. The SimpleCoom library is included on Tools40 library. Reference: SimplePacket encapsulates the data into a packet and provides these functions: setData(data) Fill up the packet with the desired data to send or the received data from a…

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.  

Ardbox Relay Switch Configuration

Ardbox Relay Switch Configuration

Ardbox Relay can be configurated with multiple communication ports. There are two DIP Switch to configurate all of them. Switch Configuration: LEFT Zone Arduino Pin OFF* ON   7 DE R1 4 RE R2 1 I0.3 RX 0 I0.2 TX 3 SCL I0.1 2 SDA I0.0 LEFT ZONE. To enable communication connections the switchs must be set to “OFF”. Set to “ON” position to enable I/Os  PLC connection.  Communications and I/Os on the chart can not work simultaneously. For exemple if…

Read More Read More

How to connect the Ethernet Port using w5100 library

How to connect the Ethernet Port using w5100 library

In this example, you will use the Ethernet port on the Ethernet family products. Harware Required: Ethernet family products Ethernet cable. Comments: All Ethernet family products use an Arduino Mega 2560 connected to the w5100 Ethernet chip. The standard Ethernet shield for arduino use the SPI port where are connected the pins 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS), but for the M-duino Ethernet PLC the standard w5100 library from Arduino IDE the SS function is done by the digital…

Read More Read More

Modbus TCP M-Duino

Modbus TCP M-Duino

Modbus TCP can be programmed in M-Duino PLCs. It’s required to install Industrial Shields boards. Follow this link to download our boards.  Basically, this example links holding registers 40000, 40001 and 40002 to outputs Q0.1, Q0.2 and Q0.3 of the M-Duino. In this way these 3 outputs can be operated via a Modbus TCP master. You will have to modify the IP address and network parameters according to your LAN. An illustrative and simple example to test the application is…

Read More Read More