Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read the Shark270 #56

Open
JohnnyMarauder opened this issue Oct 15, 2022 · 0 comments
Open

Cannot read the Shark270 #56

JohnnyMarauder opened this issue Oct 15, 2022 · 0 comments

Comments

@JohnnyMarauder
Copy link

Trying to read a Shark 270 Meter from Electro and it just reports Timed Out. Same code is able to read the Nexus1252 meters just fine. I set it up to read 40 registers to get the volts etc, but it just times out. Here is the calling code:

Shark200, Shark270 :
Begin
Try
thereg := 1000;
MM.mbClient.TimeOut := 500;
If MM.mbClient.ReadHoldingRegisters(thereg, 40, MM.MyData) Then
Begin
float.fHi := MM.MyData[0];
float.fLo := MM.MyData[1];
MM.VoltsAN := float.fFloat;
Volts_AN.Text := FloatToStr(MM.VoltsAN) + ' k';
End
Else
Memo1.Lines.Add('timeout reading response.');
Except
On E : Exception Do
Begin
Raise TMetersException.Create('There was a problem reading the meter:'#13#10#13#10 + E.Message);
End;
End;
End;

I setup Wireshark and can see the packet go out and one returns, but the read says nothing is received, I tested the same meter with two ohter modbus tools to see if they worked, and they did. Not sure what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant