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

Read Holding Registers returns 266 (Error) #170

Open
maharshi114 opened this issue Apr 5, 2022 · 1 comment
Open

Read Holding Registers returns 266 (Error) #170

maharshi114 opened this issue Apr 5, 2022 · 1 comment

Comments

@maharshi114
Copy link

ModbusMaster version

2.0.0

Arduino IDE version

1.8.16

Arduino Hardware

Teensy 4.1 and TTL to RS485 Converter

Platform Details

Windows 10

Hardware wiring

Teensy 4.1 : TTL to RS 485Module
VCC : 3.3v
Gnd : Gnd
Tx(Pin 2) : Rx
Rx(Pin 1) : Tx
baudRate: 115200

I am trying to read registers using the following line,
uint8_t a = ZL.readHoldingRegisters(0x20AB, 2); Serial.println(a);

The instruction set of the motor driver is described below.
Screenshot (429)

However, my RS485 instruction write function is working properly.

Can you please help here to solve the problem?

I have read other issues and specifically this: #127 but I couldn't understand.

Thank you in Advance.

@realmaryam
Copy link

Hello, did you solve this problem? I have the same issue

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

2 participants