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
0 answers

i am trying to read the register values from modbus simulator but unvailable to do

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…
0
votes
2 answers

C# Modbus get a lot register every 20 seconds

I've made an application with C#, in this application I have to read every 20 second 840 registers of PLC via Modbus TCP. I use this library http://www.codeproject.com/Tips/16260/Modbus-TCP-class. When I use the method…
chianta
  • 123
  • 1
  • 2
  • 12
0
votes
0 answers

How can I choose the port to which I send the response

I am currently trying to communicate with a PLC by using Modbus/TCP but even thought I can read the Modbus frame send by the PLC I must give the Modbus response to port 502 and the stream I use send to the port used by the PLC to send the frame. I…
0
votes
2 answers

How to get the correct values from this Modbus address?

I have a MOXA Modbus TCP module (M-4210 in combination with the NA-4010 networking module that also has some other modules attached) that works as a 2-channel analog output, each with voltages from 0 to 10 Volts. In my C# application I need to get…
Rob
  • 11,492
  • 14
  • 59
  • 94
-1
votes
0 answers

STM32H7 Modbus TCP/IP

I am trying to write modbus tcp/ip server(slave) with stm32h7. I know the Modbus working logic and I have worked with Modbus RTU many times before, but I am unfamiliar with the ethernet layer. I couldn't find a resource to write modbus tcp/ip with…
Matt
  • 1
-1
votes
2 answers

How do i make a modbus simulation?

I am trying to make a Modbus simulation in python and a Modbus client to read the values from the server. But i keep getting this error: Here is my server code: import random from pymodbus.datastore import ModbusSequentialDataBlock,…
-1
votes
1 answer

I don't know how this 16Bit value change to decimal value

How 0x3333 0x41DF could be 27.9 value? I use hexadecimal to decimal value but it was 1B.E6666666666666666666.
-1
votes
1 answer

TcpClient connecting but not getting data

I have TcpClient connection to a tcp device using modbus protocol. I get a timeout exception on the Read or if I remove the timeout it goes until I stop the program. But I can use a Tcp Terminal program to get the data. What am I doing wrong? …
Clayton Harbich
  • 505
  • 1
  • 7
  • 16
-1
votes
1 answer

Have to write a client for poll RS485 by Modbus RTU over Modbus TCP?

I want to send a converter request via ethernet. I write a small piece of php. code: public function actionModbus() { $errors = array(); $warnings = array(); $connection = BinaryStreamConnection::getBuilder() ->setPort(80) …
rasul
  • 9
  • 1
-1
votes
1 answer

How to use tcplistener and tcpclient on device and computer with different ip in same Network?

I'm trying to communicate with a modbus device in my network at ip 192.168.1.76. My host computer address is 192.168.1.132. I'm not able to connect to or listen to device ip. basically i'm using NModbus4 library. I've created a ModbusTCPSlave and…
-1
votes
2 answers

How to let a client communicate with multiple servers by modbus-tcp protocol?

I have one client and many servers and I need to let the client read the values of different servers. Only modbus-tcp protocol. What I need to ask are as follows: Is there other solution to solve the communication except Windows socket? If not, how…
qjwzmy
  • 1
  • 1
-1
votes
2 answers

MODBUS TCP between PLC and Arduino

I am trying to exchange data between an PLC(WAGO 750-8101) and an Arduino(UNO) with PLC as master, and the Arduino as Slave, but cant seem to get a connection. For the Arduino I have a MINI ENC28J60 as the networkmodule, and is connected to the…
bjorvik
  • 1
  • 1
  • 4
-1
votes
1 answer

An item with the same key has already been added. error due to multiple time call to embedded DLL

I have add one dll as embedded resource in my windows forms application. I got code how to use embedded dll in my windows forms application. This code used: public PanContext() : base("ConnectionString") { …
-1
votes
1 answer

Jamod TCP unit identifier

In net.wimpi.modbus.facade the ModbusSerialMaster.class contains: public void setUnitIdentifier(int unitid) { } public int getUnitIdentifier() { } This code is sadly lacking in ModbusTCPMaster.class, so it always defaults to reading the Unit…
Keith Gray
  • 91
  • 2
1 2 3
19
20