15,891,248 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13937256 (Top 8 by date)
Member 13937256
5-Dec-20 9:49am
View
si, gracias
Member 13937256
5-Dec-20 9:48am
View
This is the solution
Member 13937256
21-Aug-18 14:44pm
View
The assignment error of the variable writeData is removed (Error: can not convert from int to int [])
I get an error 'Starting address invalid or starting address + quantity invalid'
When I run the program, I'm a little raw on this, sorry.
Member 13937256
18-Aug-18 10:38am
View
Hi, I found this.
Would I have to send you this form of characters?
COMMAND CODE:03, READ MULTIPLE
REGISTER (T, C, D)
What is the maximum number of registers that can be read?
Example: Read coils T20~T27 from Slave ID#01
Master→ELC “: 01 03 06 14 00 08 DA CR LF”
Sent message:
Field Name ASCII
STX 3A (Hex)
Slave Address 01
Command code 03
Starting Address Hi 06
Starting Address Lo 14
Number of Points Hi 00
Number of Points Lo 08
Error Check (LRC) DA
END 1 0D
END 0 0A (Hex)
http://www.eaton.com/ecm/groups/public/@pub/@electrical/documents/content/mn05003003e.pdf
Member 13937256
15-Aug-18 12:32pm
View
I do not understand.
Member 13937256
15-Aug-18 12:29pm
View
In this area of the code I ask for the address of the record that I am going to use and the number:
int[] response = modbustcp.ReadInputRegisters(startAddres, quantity);
Any suggestions.
Member 13937256
15-Aug-18 11:57am
View
The code that I am using is this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EasyModbus;
namespace comunicacion_tcp
{
class Program
{
private string IpAddress = "192.168.178.111";
private int port = 502;
private ushort startAddres = 258;
private ushort quantity = 1;
private ModbusClient modbustcp;
public Program()
{
modbustcp = new ModbusClient(IpAddress, port);
modbustcp.Connect();
int[] response = modbustcp.ReadInputRegisters(startAddres, quantity);
modbustcp.Disconnect();
Console.WriteLine("value of input register 1" + response[0].ToString());
Console.WriteLine("value of input register 2" + response[1].ToString());
}
static void Main(string[] args)
{
Program _program = new Program();
Console.ReadKey();
}
}
}
Member 13937256
14-Aug-18 12:22pm
View
I am using the EASYmodbus library
You are giving me a mistake I would like you to help me to be referred.
EasyModbus.Exceptions.FunctionCodeNotSupportedException
HResult=0x80131500
Message=Function code not supported by master
Show More