Kkula
Browse Questions » LOGO! - Communication: What are the Preferences Towards do when receiving Information over Modbus protocol Tcp/ip?

About User

Questions Asked: 37.9K

Answers Given: 32

0
  • Open

LOGO! - Communication: What are the Preferences Towards do when receiving Information over Modbus protocol Tcp/ip?

Now I can revive this topic.
Instead of getting data from the excel I mentioned at the beginning, I can adjust where the actuators should go according to the values ​​I give myself.
It's a farm machine and it's scattering manure on the field.
The speed of the tractor is detected by a GPS receiver sensor.
The operator determines the amount of fertilizer he wants to apply and how many meters wide he will scatter. Related location LOGO! and guides the actuators to the correct position.
There is also a calibration menu suitable for different fertilizer types.
The program is a bit complicated but works very well in the field.
I need to improve this job a bit and I'm working on it.
Global fertilizer companies have created some programs to apply different amounts of fertilizer to different areas before going to the field. The farmer determines the desired amount of fertilizer for the locations and saves it as a shapefile or KML file.
When he goes to the field, he starts the application by turning on his mobile phone. The application transmits the amount of fertilizer corresponding to the current position to the controller. In addition, we can get instant speed information from the mobile phone. (We are getting support on Android so that the tablet can transmit over Modbus TCP/IP)
The part I don't know; What are the settings I need to do when receiving data over Modbus TCP/IP? I need to get B087 V1 and B010 V1 values ​​via Modbus.
First of all, I need to convert the attached program to "Network Project".
Then I will add a "ModBus-Compatible device" and enter the IP settings.
I don't know how to fill in the data transfer part from now on.
Can you help me?
You can also access the presentation of the application that adjusts the amount of fertilizer I mentioned above from the link.
https://www.youtube.com/watch?v=ficvfTrMHno&t=2s
------------------------------------------------------------------------------------------
Split from
Linear actuator control
.

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Integrating Modbus TCP/IP with LOGO! for Variable Rate Application

You're on the right track converting to a Network Project and adding the Modbus-compatible device. Here's a breakdown of the data transfer setup for receiving fertilizer amounts (B087 V1 & B010 V1) via Modbus TCP/IP:

Configuration Steps:

  1. Modbus Device Configuration: In your LOGO! Network Project, configure the Modbus device with the correct IP address and port (typically 502).
  2. Data Block Assignment: Define Modbus read requests to access the data from your Android application.
    • B087 V1 (Fertilizer Amount): Configure a Modbus read input to read the value corresponding to the fertilizer amount from the Android app. Determine the Modbus register address the Android app sends this data to.
    • B010 V1 (Speed): Similarly, set up a Modbus read input for the speed data (B010 V1) being transmitted from the Android application, identifying the correct register address.
  3. Data Transfer: Use the 'Network Input' blocks in LOGO! to map the received Modbus data (B087 V1 and B010 V1) to internal LOGO! variables.
  4. Logic Implementation: Integrate these variables into your existing program to control the actuators based on the received fertilizer amount and tractor speed.

Important Considerations:

  • Data Types: Ensure the data types in the Android application (e.g., float, integer) match the LOGO! configuration.
  • Modbus Register Mapping: Carefully map the Modbus register addresses in the LOGO! configuration to the correct data being sent by the Android app.
  • Communication Testing: Use a Modbus testing tool to verify the communication between the Android app and LOGO! before integrating into your full application.

For detailed information on configuring Modbus in LOGO!, refer to the Siemens Industry Online Support article on LOGO! and Modbus.

The video presentation (link provided) helps understand the overall application, but focuses on the application logic, not the Modbus communication details.

0