Premium Only Content
![Productivity Open P1AM Arduino Modbus TCP Client to Click PLC](https://1a-1791.com/video/s8/1/B/l/f/3/Blf3c.qR4e-small-Productivity-Open-P1AM-Ardu.jpg)
Productivity Open P1AM Arduino Modbus TCP Client to Click PLC
We will now connect our Productivity Open P1AM Arduino to a Click PLC. Using Modbus TCP the Arduino will be the Client (Master) and the Click will be the Server (Slave). We will explain how to connect our P1AM-ETH Industrial Arduino Ethernet Shield to the Click PLC. The protocol will be Modbus TCP on an Ethernet communication network. Modbus is a master-slave type of communication. Masters will always send the commands to read or write to the slaves on the network. The slaves will respond if the communication is directed at them. Since this is an Ethernet network our master is known as a client and the slave as a server.
The P1AM Example from Automation Direct on GitHub will be used. It will be modified to write to holding registers and coils in the Click PLC. The temperature from the thermocouple input unit on the P1AM will be written to the Click PLC. Inputs from the simulator input card on our Arduino P1AM will be written to the Click PLC outputs directly. The Click PLC will also be programmed with a heartbeat circuit. This will detect if communications have been severed and will reset the outputs after 5 seconds. Let's get started with our Arduino P1AM Modbus client to Click Modbus server.
More information can be obtained on our website. This includes all of the links mentioned in this video.
https://accautomation.ca/productivity-open-p1am-arduino-modbus-tcp-client-to-click-plc/
00:00 Arduino P1AM Modbus client to Click server
00:38 Click Modbus server configuration
01:55 Click Modbus addresses
04:05 Arduino P1AM Modbus client program
13:34 Click communication heartbeat program
18:00 Arduino Click Modbus communication testing
Here are previous posts in this Productivity Open Arduino Compatible Industrial Controller Series. A full list can be obtained at the following location:
https://accautomation.ca/series/productivity-open-arduino-compatible-industrial-controller
Industrial Controller Hardware
https://accautomation.ca/productivity-open-arduino-compatible-industrial-controller-hardware
Installing the Software
https://accautomation.ca/productivity-open-arduino-compatible-industrial-controller-installing-the-Software
https://youtu.be/M7Agvhq69og
First Program
https://accautomation.ca/productivity-open-p1am-industrial-arduino-first-program
https://youtu.be/x2yKEw1lWGg
Program Structure
https://accautomation.ca/productivity-open-p1am-industrial-arduino-program-structure
https://youtu.be/a1eimdZpfLg
Serial Monitor COM
https://accautomation.ca/productivity-open-p1am-industrial-arduino-serial-monitor-com
https://youtu.be/eDngjuBYCBg
Program Control
https://accautomation.ca/productivity-open-p1am-industrial-arduino-program-control/
https://youtu.be/-J-Ikt3yWhU
Operators
https://accautomation.ca/productivity-open-p1am-industrial-arduino-operators
https://youtu.be/Q9J7RUXdeEk
GPIO Inputs and Outputs
https://accautomation.ca/productivity-open-p1am-industrial-arduino-gpio-inputs-and-outputs
https://youtu.be/49QPNQu6aaY
Time Instructions
https://accautomation.ca/productivity-open-p1am-industrial-arduino-time-instructions
https://youtu.be/ql9ShzOIrqQ
P1000 Expansion Analog Combination Module
https://accautomation.ca/productivity-open-p1am-industrial-arduino-p1000-expansion-analog-combination-module
https://youtu.be/f7myzcPP0_8
PP1000 Expansion Digital Inputs and Outputs Part 1
https://accautomation.ca/productivity-open-p1am-industrial-arduino-p1000-expansion-digital-inputs-and-outputs-part-1
https://youtu.be/Pub7M_NP4rw
P1000 Expansion Digital Inputs and Outputs Part 2
https://accautomation.ca/productivity-open-p1am-industrial-arduino-p1000-expansion-digital-inputs-and-outputs-part-2
https://youtu.be/K65luk051gQ
Watchdog Timer
https://accautomation.ca/productivity-open-p1am-industrial-arduino-watchdog-timer
https://youtu.be/t0SydLhJfg4
PID Control
https://accautomation.ca/productivity-open-p1am-industrial-arduino-pid-control
https://youtu.be/QVOwlcccJu0
Arduino Modbus TCP to C-More EA9
https://accautomation.ca/p1am-arduino-modbus-tcp-to-c-more-ea9
https://youtu.be/CQOAzVfLzjE
Arduino Ethernet Shield Web Server
https://accautomation.ca/productivity-open-p1am-web-server/
https://youtu.be/1nfyzraHuRE
There are several reasons why we are using the Productivity Open Arduino Compatible Industrial Controller. Here are just a few.
- CE and UL certified
- Designed to be MKRZero compatible
- Industrial shields available - Ethernet and general-purpose IO
- 15 Productivity 1000 PLC modules can be added - Customize your system
- Use your Arduino programs in the industrial environment
- Micro USB port - Power the CPU only and programming
- Micro SD card slot
- Programmable toggle switch
- CPU LED light
- Free software - Arduino IDE
- Productivity blocks - Program Development Time Saver
The Productivity Open Arduino Compatible Industrial Controller currently has all of these features built into the P1AM-100 CPU.
-
1:17:59
Sarah Westall
6 hours agoDOGE: Crime & Hysteria bringing the Critics & the Fearful - Plus new CDC/Ukraine Crime w/ Dr Fleming
26.4K3 -
45:39
Survive History
12 hours ago $3.33 earnedCould You Survive in the Shield Wall at the Battle of Hastings?
26.6K5 -
1:50:28
TheDozenPodcast
10 hours agoViolence, Abuse, Jail, Reform: Michael Maisey
71.4K2 -
23:01
Mrgunsngear
1 day ago $4.23 earnedWolfpack Armory AW15 MK5 AR-15 Review 🇺🇸
64.9K12 -
25:59
TampaAerialMedia
1 day ago $2.01 earnedUpdate ANNA MARIA ISLAND 2025
38.3K3 -
59:31
Squaring The Circle, A Randall Carlson Podcast
12 hours ago#039: How Politics & War, Art & Science Shape Our World; A Cultural Commentary From Randall Carlson
29.9K2 -
13:21
Misha Petrov
12 hours agoThe CRINGIEST Thing I Have Ever Seen…
23.8K48 -
11:45
BIG NEM
8 hours agoWe Blind Taste Tested the Best Jollof in Toronto 🇳🇬🇬ðŸ‡
16K -
15:40
Fit'n Fire
12 hours ago $0.32 earnedArsenal SLR106f & LiteRaider AK Handguard from 1791 Industries
14K1 -
8:34
Mike Rowe
6 days agoWhat You Didn't Hear At Pete's Confirmation Hearing | The Way I Heard It with Mike Rowe
51.6K23