How CODESYS and Immercloud® help advancing sustainability and efficiency with IIoT innovation in today’s agriculture
One of the key challenges of this century is to find solutions on how we can ensure access to a sufficient supply of healthy, diverse, and safe food for a growing global population while limiting the impact on the environment and coping with climate change. Advancing sustainability and efficiency with IIoT innovation in today’s agriculture are a central part of the solution.
In 2020, Travis Jones, co-owner of McKee Ag Solutions, decided it was time for a digital transformation. “We wanted to provide our customers a remote diagnostic web portal that they could log in and see various functions of the machine,” said Jones.
Jones asked TRS Systems, Alberta, Canada a leading-edge IIoT integrator and service provider, to design and deploy a comprehensive solution for the McKee Ag. Therefore, the two mechanical engineers, Curtis Steele and Rav Singh brought their wealth of experience working with hydraulics, electronic control systems and IIoT-based cloud integration to digitally transform a manure spreading process.
This was a two-step challenge: Step one is the control automation of the manure spreader and step two was the on the Cloud Integration of the manure spreader.
Step one: Summary benefit control automation of the manure spreader.
When the operator drives the machine onto the field, he can essentially hit one auto button and the whole machine starts working. The operator can then concentrate on navigating the field and covering it in a systematic fashion. The desired solution should be easy to program and saleable, yet the engineering should be able to make quick changes to the program logic if needed.
Step two: Summary benefit on the bi-directional communication between the manure spreader and the cloud.
Step two of the solution is the usage of variable rate technology (VRT) and remote diagnostics with Data Logging. VRT is the ability to vary the amount of fertilizer or other farm inputs, based on variations in the soil or crop. VRT is an advanced objective in precision farming, or smart agriculture, and has a number of benefits. For one, it can reduce the amount of wasted product applied to the field. By using sensor-based VRT or map-based VRT, the goal is to detect information about the landscape and use it to make instant real-time decisions on product application. Variable rate technology, then, leads to optimized output, conservation, sustainability, and high-level informed decision making for any agricultural operation.
Solution Part One: Control Automation of the Manure Spreader
Overview of Manure Spreader Components and Control System
Manure spreaders have a tandem hydraulic pump. One pump drives the beater system at the backend that spreads, or applies, the product onto the field. A hydraulically driven end gate, or tailgate, opens up to allow the product out the backend, and the system also has a hydraulically driven variable speed floor.
An essential function of the control system is to monitor the torque load on the beater. With the beater requiring the highest horsepower load, it is crucial to use a pressure control, essentially a torque control, to keep the entire operation under maximum load the drive line can handle. For example, if the operator is driving the floor too fast, which increases the pressure, the control system will stop the floor or slow it down accordingly based on the load that you would see on that beater.
Among the key functions TRS Systems developed for McKee Ag are auto end gate control, automatic floor control, constant rate functions, and alarms and diagnostics.
Using the end gate auto function, the operator can hit a button and the end gate will go up and automatically stop based on the pressure. The floor auto function works in unison with the end gate auto. When the operator drives the machine onto the field, he can essentially hit one auto button and the whole machine starts working. The operator can then concentrate on navigating the field and covering it in a systematic fashion.
The constant-rate feature allows the operator to set the tons per acre and spread width for the actual width of the beater, and the floor will be controlled automatically.
Alarms and diagnostics are also important features that were built in. For example, there are alarms to indicate excessively high temperature in the hydraulic system. This functionality allows for troubleshooting on-site and can help make sure that proper maintenance is done in a timely manner.
TRS Systems used the following hardware components for the control system:
- Topcon B3 CODESYS-based human machine interface (HMI)
- Eaton HFX-20m as the main controller, or brain, for the spreader
- CODESYS-based Immercloud® gateway talking to the cloud and sending various CAN data to McKee’s user interface in the cloud
- Danfoss HMR Series keypad for CANbus based control
All of the functions for McKee Ag’s control system were programmed using the CODESYS development environment. Curtis Steele, P.Eng., serving as chief technology advisor to McKee Ag, has more than 14 years of experience in designing and programming embedded control systems using CODESYS. What he loves most about CODESYS is “If you can dream it, you can build it.” Steele is also a Certified Fluid Power Specialist (CFPS) and an expert CODESYS application developer.
One of the beauties of this programming software, having been designed to the international industrial standard IEC 61131-3, is “you can program in any language you feel comfortable with,” said Steele. “It’s just so easy to use and to build your applications quickly.” Steele prefers structured text (ST) and CFC. “But even if you’re used to ladder logic and other languages, it’s just so simple to use.” The function blocks and libraries built over the years can be reused over multiple applications and save so much time.
Also, the built-in SAE J1939 manager and libraries make integrating any piece of hardware easy. For McKee Ag, Steele and Singh integrated the Danfoss HMR CAN rotary encoder. The Danfoss uses a standard SAE J1939 message using the auxiliary I/O 1&2. “All you really have to do is enter in the PGN and a source address, and you can start monitoring button clicks. Again, a really nice feature of CODESYS,” Steele explained.
“We are able to use CODESYS for programming PLCs, gateways and HMIs to get simple CAN J1939 IO modules set up, and much more,” said TRS Systems co-founder Rav Singh.
The other aspect is the CANopen side of the bus management. The application uses CANopen to talk to the HMI, as well as the TRS Systems’ Immercloud® Gateway. This gateway runs on CODESYS 3.5. The ease of CODESYS 3.5 allows you to just add a device, import the EDS file, and start mapping variables.
All of the telematics data flows from the gateway to the cloud. “And also, the gateway provides GPS signal back to the truck and the truck control system over CAN bus,” Singh explained.
Solution Part Two: GPS, VRT and Cloud Integration
Using Advanced UI Techniques and Creating a User Experience Have Never Been Easier, Using CODESYS
One of the earlier phases of the McKee Ag manure spreader project involved TRS Systems wireframing the HMI. “We really follow the philosophy of WYSIWYG—what you see is what you get,” Singh said. They want their customers to have a really good idea of what to expect with their final cloud dashboard as well as the spreader control screens. And it’s all part of TRS Systems mission to simplify IoT for its clients.
TRS Systems is a CODESYS certified system partner. “We use CODESYS to integrate all hardware components and cloud integration for our industrial clients,” said Rav Singh. Singh is also a Certified Fluid Power Specialist (CFPS), Certified Fluid Power Electronic Control Specialist (CFPECS), and Certified Fluid Power System Designer (CFPSD).
Launched into Cloud in less than four weeks
In the first stage of cloud integration for McKee Ag, Singh was able to integrate McKee Ag equipment to cloud using TRS’ Systems SAAS Solution—Immercloud®—in less than four weeks it was complete. Relying on CODESYS as the software base was critical to this accomplishment.
The remote monitoring dashboard on Immercloud® shows information such as how many devices there are, how many users, how many active sessions, and more, on the main login page. The main dashboard allows for remote troubleshooting and shows information such as floor pressure, beater pressure, floor speed, oil temperature, ECU voltage, and alarm information.
The GPS, latitude, longitude, and speed data are sent to the dashboard.
Data logged and sent to cloud includes as-applied data. This is a basic but crucial element because it prevents overlap in product application, which is especially useful if the operation involves two or more spreaders on the field.
Variable Rate Control: Mission Accomplished!
The second iteration that TRS Systems has worked on was to implement variable rate control, a more advanced functionality.
Variable rate technology is an advanced objective in precision farming, or smart agriculture, and has a number of benefits. For one, it can reduce the amount of wasted product applied to the field. By using sensor-based VRT or map-based VRT, the goal is to detect information about the landscape and use it to make instant real-time decisions on product application. Variable rate technology, then, leads to optimized output, conservation, sustainability, and high-level informed decision making for any agricultural operation.
For McKee Ag, variable rate control would help the manure spreaders vary the product application based on the field’s topography. So, for example, if there is a waterhole, the machine can control that spread width and change the rate variably accordingly.
TRS Systems implemented a map-based VRT. Singh has used hyper layer data visualization which involves splitting the data set into multiple layers:
- Drainage data
- Vegetation data
- User adjustment data
- As-applied data
The farmer, producer, or equipment owner can enter the drainage data in a GeoJSON format or any leading industry format to the cloud. And the cloud interprets how the natural drainage works on the farm.
The vegetation data layer provides information about the type of crops and vegetation on the field. This is useful because different crops require different types or amounts of manure, and this data layer can determine how much product should actually be applied on a particular section of the field.
Next, the user adjustment data involves simple geofencing. Singh said, “We use a lasso-type tool that allows the farmer to draw boundaries and their associated rates right onto the tablet. Or we can just import GeoJSON from any existing boundary conditions.”
The top layer consists of as-applied data from previous years. “This gives us the ability to analyse that data—for example, what effect did it have on the particular crop for that particular season?” Singh explained.
The variable rate data takes all these layers into account. “The cloud performs the math to calculate the variable rate data. And that variable rate data would be a combination of these four data sets and calculate it as part of that process and that variable rate data gets sent back to the cloud and then makes its way back to the machine,” Singh explained. “So, the operator is just going to drive on the field and focus on operating the machine. The rate adjustment happens automatically based on the cloud integration.
This is all made possible on TRS Systems’ SaaS cloud platform, Immercloud®. It’s TRS Systems’ way of making digital transformation fast, secure, and easy for smaller local industrial enterprises who need their equipment launched to cloud quickly. All the database and the background work are already done for them, so it takes the guesswork out for the client.
TRS Systems also offers custom dedicated cloud-based products for clients who want even more advanced functionalities.
What made the entire project for McKee Ag seamless was the usage of CODESYS’ IoT libraries. Singh said it’s what has also allowed him to design custom IoT integration for other clients. He is excited about the future of IIoT and, through TRS Systems, helping businesses make that digital transformation to Industry 4.0.
CODESYS is the global market leader of manufacturer-independent IEC 61131-3-automation software with over 5 million device licenses sold worldwide. More than 500 control system manufacturers and tens of thousands of companies worldwide use CODESYS’ products.
CODESYS is a software platform for industrial automation technology. The core of the platform is the IEC-61131-3 programming tool “CODESYS Development System.” It offers engineers practice-oriented, integrated solutions for the convenient configuration of automation applications. The goal is to provide users with practical support for their daily tasks.
In North America, CODESYS is represented by the CODESYS Corporation, located on Boston’s North Shore. For information about CODESYS please contact:
TRS Systems, a division of T&RS Design Inc. (est. 2013), specializes in providing custom control system solutions and cloud-based solutions for IoT and Industry 4.0 integration. Based in Calgary, Alberta, Canada, the company has expertise in IOT Integration of truck-mounted OEM equipment, engineered-to-order (ETO) equipment, cloud-based fleet management, cloud-based vendor managed inventory (VMI), and more.
TRS Systems also offers CODESYS basic and advanced training for its clients, as well as CODESYS V2.3 to V3.5 conversions as part of its services.
McKee Ag Solutions
McKee Ag Solutions has spent 50 years making one of the most robust and durable manure, compost and fertilizer spreaders and serving the agricultural industry in Alberta, Canada.
McKee Ag Solutions