Integrating Arduino RedBoard Artemis with Productivity 2000 PLC: Communication Setup Guide

Question:

I am currently involved in a project that initially began on a SparkFun RedBoard Artemis. After conducting some testing, I have decided to incorporate a PLC into the project for enhanced performance. The project entails the need for four RS232 communications for scale integration, PWM output for servo control (similar to an RC car), DC output for a small pump motor, and the ability to read from two encoders to track the number of revolutions. I encountered difficulties in establishing RS232 communication for the four scales, leading me to consider integrating a PLC. My main query is whether it is possible to establish communication between the RedBoard Artemis and the PLC. I am planning to employ a Productivity 2000 series PLC for this purpose. Given that all the necessary hardware has already been procured, I am keen on maximizing its utilization rather than investing in new equipment and redesigning the setup. Has anyone attempted a similar integration before? Essentially, I intend to leave the encoder inputs, servo, and DC motor on the RedBoard Artemis, while transferring the RS232 communications and data output (to an SD card) to the PLC. The PLC would be responsible for sending signals to the Artemis to control the servo and start the DC motor, as well as retrieving data on the encoder readings per cycle. I would appreciate any insights or suggestions on this matter!

Top Replies

1) While Modbus (RTU or TCP) is considered a relatively straightforward protocol, signal timing can sometimes pose a challenge. 2) Developing a custom protocol with a specific scope may not be overly complicated. What communication options does the Artemis support in terms of physical connections?

drbitboy mentioned that while modbus (rtu or tcp) is not overly complicated, signal timing issues may arise. Could you provide more details on what you mean by "signal timing"?srsicard3 shared that they are currently working on a project that was initially developed on a SparkFun Redboard Artemis. The Redboard Artemis is a popular board that I've been eyeing for some time. I have successfully connected to several PLCs and HMIs using MODBUS TCP with both the Arduino UNO and MEGA. Setting it up is straightforward, although understanding the MODBUS mapping can be a bit challenging at times. If you're interested, I can help you find some sample code.

Are you considering the expenses involved in acquiring these items? The 4 RS232 cards are a significant investment, and there are other non-standard components to consider when outfitting PLCs.

WhinnieThePooh asked for clarification on the concept of "signal timing." The Modbus specification outlines specific timing requirements for Modbus RTU (serial) communications, as detailed in the Modbus Serial Line Protocol and Implementation Guide V1.02, section 2.5.1.1. While many Modbus RTU-capable devices may have UARTs with buffers that exceed or disregard these specifications, it is essential to consider the devices OP is working with. Implementing the Modbus protocol itself is straightforward, but meticulous mapping is crucial, although some vendors may struggle with this. By providing an example of an Arduino Modbus application, users can find a solution for their task and enhance the Downloads section of this website. Additionally, the initial response to this thread was made from a mobile phone, possibly leading to the humorous autocorrect in the text.

The sample project files are attached for your review. The Arduino used in this project is a non-brand MEGA, paired with an ethernet shield from Sunfounder. The HMI display is a 10" LSIS model that was readily available. I conducted a successful test this afternoon and found that all components are functioning perfectly. The communication speed is impressive and the connection appears to be highly reliable. The software for the HMI can be downloaded for free to view the program file. Additionally, for more information on Arduino Modbus TCP, a quick search on Google can provide helpful insights. Enjoy experimenting with this project! Please find the HMI software here: https://www.ls-electric.com/products/view/Smart_Automation_Solution/HMI/XGT_Panel/XP-Builder. Please note that the video file had to be heavily compressed due to its large size, resulting in reduced quality, but it is still watchable.

Your project sounds really intriguing! I can understand why you'd want to stick with your current hardware. As for communication between the RedBoard Artemis and the Productivity 2000 series PLC, it’s definitely feasible through an RS485 or RS232 interface, given that both devices support them. You might need to write specific firmware for the Artemis to handle the communication protocol used by the PLC. This could be Modbus RTU, or perhaps you could set up a custom protocol if you find that easier. Something else you might consider is the PLC's ability to handle multiple RS232 communications simultaneously because this can potentially create a bottleneck in your system. Make sure the PLC you choose has enough processing power and the necessary number of RS232 ports. Lastly, transferring the data output to an SD card with the PLC may require additional programming knowledge as not all PLCs support SD cards natively. Good luck with your project!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. Can the RedBoard Artemis communicate with a Productivity 2000 PLC for this project?

Answer: - Yes, it is possible to establish communication between the RedBoard Artemis and a Productivity 2000 series PLC.

FAQ: 2. Has anyone attempted integrating Arduino RedBoard Artemis with a PLC like Productivity 2000 before?

Answer: - While specific experiences may vary, there have been successful integrations of Arduino boards with various PLCs for different projects.

FAQ: 3. What components of the project would remain on the RedBoard Artemis after integrating with the PLC?

Answer: - The encoder inputs, servo, and DC motor would stay on the RedBoard Artemis, while RS232 communications and data output to an SD card would be handled by the PLC.

FAQ: 4. What tasks would the Productivity 2000 PLC be responsible for in this setup?

Answer: - The PLC would handle sending signals to control the servo and start the DC motor, as well as retrieving data on the encoder readings per cycle.

FAQ: 5. Why is the integration of a PLC being considered for this project?

Answer: - Difficulties in establishing RS232 communication for the scales have led to the consideration of integrating a PLC for enhanced performance and efficiency.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’