how to type the right address in modbusmaster library function

i now have this
modbus rtu address in my plc instruction ,and i write a value in D0 REGITER in the attachment,i now want to access the regiter by modbusmaster library with a arduino + rs485 module ,things are connected,but i can get the register value in the serial monitor.i can capture the wave in my scope when there is a request


RS485_HalfDuplex.pde - example using ModbusMaster library to communicate
with EPSolar LS2024B controller using a half-duplex RS485 transceiver.

This example is tested against an EPSolar LS2024B solar charge controller.
See here for protocol specs:

Library:: ModbusMaster
Author:: Marius Kintel

Copyright:: 2009-2016 Doc Walker

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.


#include <ModbusMaster.h>

We're using a MAX485-compatible RS485 Transceiver.
Rx/Tx is hooked up to the hardware serial port at 'Serial'.
The Data Enable and Receiver Enable pins are hooked up as follows:

#define MAX485_RE_NEG 3
#define MAX485_DE 2

int myInts[6];

// instantiate ModbusMaster object
ModbusMaster node; // Se llamará ModbusMaster como node

void preTransmission()
digitalWrite(MAX485_RE_NEG, 1); // Es el modo de transmisión
digitalWrite(MAX485_DE, 1);

void postTransmission()
digitalWrite(MAX485_RE_NEG, 0); // Es el modo de recepción
digitalWrite(MAX485_DE, 0);

void setup()
pinMode(MAX485_RE_NEG, OUTPUT);
pinMode(MAX485_DE, OUTPUT);

// Empieza en modo de recepción
digitalWrite(MAX485_RE_NEG, 0);
digitalWrite(MAX485_DE, 0);

// Modbus communication runs at 115200 baud
// Serial1.begin(9600, SERIAL_8E1); // Acá se define la paridad: 8bits, odd parity, 1 bit de parada [Due no soporta bit de parada 2]

// Modbus slave ID 1
node.begin(1, Serial);
// Callbacks allow us to configure the RS485 transceiver correctly

void loop()
uint8_t ResultadoLectura;
uint8_t ResultadoEscritura;
bool state=1;

// for (int j = 15; j <= 100; j = j + 10 ) {
// ResultadoEscritura = node.writeSingleRegister(0x0000, j); //HERE IS 226, Lee un registro
// delay(1000);
// }

ResultadoLectura = node.readHoldingRegisters(0x0000, 1); //HERE IS 226, Lee un registro
// ResultadoEscritura = node.writeSingleRegister(0x0161, state); //HERE IS 226, Lee un registro
// state = !state;

if (ResultadoLectura == node.ku8MBSuccess)
Serial.print("\nPV2: ");
else {
Serial.print("\nError en conexión: ");
Serial.println(ResultadoLectura, HEX); // Debe dar 0
Serial.println(ResultadoEscritura, HEX); // Debe dar 0



this is my setup :o
and i have a post in redit