Questions tagged [modbus-tcp]

A messaging structure developed by Modicon. It is used to establish master-slave/client-server communication between intelligent devices.

A messaging structure developed by Modicon in 1979. It is used to establish master-slave/client-server communication between intelligent devices. (from http://www.modbus.org/faq.php)

302 questions
0
votes
1 answer

Using pymodbus to read registers

I'm trying to read modbus registers from a PLC using pymodbus. I am following the example posted here. When I attempt print.registers I get the following error: object has no attribute 'registers' The example doesn't show the modules being imported…
Mike C.
  • 1,761
  • 2
  • 22
  • 46
0
votes
1 answer

Java communication with CMMO-ST-C5-1-LKP Festo controller over MODBUS TCP/IP

I have an assignment to develop a Java library for communication with a CMMO-ST-C5-1-LKP Festo controller. I have read the controller documentation and it provides a MODBUS TCP/IP communication interface. I have used jamod and managed to connect to…
0
votes
1 answer

modbus Hex address Conversion

I am trying to read data from GE-PQM II energy meter. Energy meter supports real time monitoring via 2 wire RS-485 MODBUS connection. I use libmodbus library in c to read modbus registers. In GE communication guide…
Leaner
  • 1
  • 1
0
votes
1 answer

net.wimpi.modbus.ModbusSlaveException: Error Code = 2, when trying to connect the unit using Modbus protocol

I have a unit supports the ModBus protocol, using 'Jamod' trying to connect to the unit and read the register values, gets an error code-2, unit config: The unit supports the Modbus protocol over the RS-485 and Ethernet interfaces. On the RS-485…
Java.beginner
  • 871
  • 2
  • 19
  • 37
0
votes
1 answer

How do I instantiate a Register object in Java using the jamod library?

I'm currently working with jamod in order to set up a small control system for work. We are working with several PLCs and I need to use the MODBUS protocol for communication. I have been able to read the values that are measured by the controllers,…
zzzzzzzch
  • 59
  • 2
  • 9
0
votes
1 answer

Is it possible to have two Modbus map in one PLC?

I have a PLC that already have a big map (3000 registers). I have a PC software to talk to the PLC. Now the customer want to re-arrange the registers. I wonder whether I can map the same logic to a second map. example, to my software, Modbus ID…
Splash
  • 1,288
  • 2
  • 18
  • 36
0
votes
1 answer

Reading Different Elements from Modbus-TCP

I'm trying to figure out how to read different values from a modbus device (Powerscout 24) for different elements. There is a manual here which says ADDRESSING AN ELEMENT The PowerScout 24 has eight elements. Modbus and BACnet each use different…
Eric G
  • 928
  • 1
  • 9
  • 29
0
votes
0 answers

Modbus connection closed after 6 consecutive reading

I am developing Modbus/TCP master application in Java using jamod library. During consecutive readings from my slave device, connection is being abruptly closed. My code: import net.wimpi.modbus.io.ModbusTCPTransaction; import…
Jan Lochman
  • 439
  • 3
  • 12
0
votes
1 answer

Write integer value not Boolean to a memory word 100

I am using jamod1.2 , I tried to send boolean values though this code and it works perfectly. Now I am trying to send an integer value to some registers I have , like sending 5 to %mw100 ! how I can do this through the jamod library or if there is…
rand
  • 515
  • 2
  • 5
  • 14
0
votes
1 answer

Can you keep a CRC in a Modbus TCP message?

Another modbus question here, I've been learning Modbus RTU and feel that I have a pretty good grasp on it and am now writing code to convert RTU to TCP. A question that was brought up to me today was, when you are converting from RTU to TCP, can…
R. Johnson
  • 102
  • 12
0
votes
2 answers

public Modbus server

I've been programming a Modbus Client through TCP and I think I'm finally done but I'd like to test it in real life scenarios and that's why I'm coming here: ¿Is there any Modbus Server available online? I mean, any kind of modbus server even though…
Miquel Coll
  • 759
  • 15
  • 49
0
votes
0 answers

Posting to Kepware using Modbus Protocols

I am looking to send data into kepware using modbus. This is a completely new project my boss has given me and I am not sure where to start with my limited knowledge. Any insights on how this could be accomplished in C++ would be greatly…
0
votes
1 answer

Socket get input stream reading wrong values few times

I have a Java Modbus/TCP application which is reading constantly data from a device. This is working normal 99.9% of times, but after a weekend working, it could enter in a strange mode, in which for some seconds, I am getting fake values of my Read…
Bepo
  • 52
  • 8
0
votes
2 answers

PyModbus - Read_holding_coils returns strange value

I have written the following little block of code: from pymodbus.client.sync import ModbuTcpClient def test(client): client.connect() print client.read_holding_registers(10, 1, unit=10) client.close() test(client) . The output I get from…
0
votes
0 answers

Reading register values from modbus simulator

The connection has been established to modbus simulator but I am trying to read the register values from simulator and write it on console but not able to do. this code creates the connection successfully to modbus simulator but contains the syntax…
1 2 3
19
20