AdvancedHMI Software

General Category => Support Questions => Topic started by: oqapsking on October 18, 2022, 06:13:34 PM

Title: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: oqapsking on October 18, 2022, 06:13:34 PM
HELLO

so i have dvp201lc-sl
i wanna read the value using advancedHMI

there is a software named LCsoft for it
and it can read it online

 as in the attachments
i wanna read the ( CH1 Weight Value )

but i can`t get the address for it to use with modbus ascii

can some one help me ?

with thanks
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: Archie on October 18, 2022, 07:40:33 PM
I looked through the manuals, but did not see anything about the Modbus addresses. I would start with the most common 40001

You could also use a serial port sniffer software to capture the data from LCSoft to see if it is using Modbus.
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: oqapsking on October 18, 2022, 08:02:05 PM
I looked through the manuals, but did not see anything about the Modbus addresses. I would start with the most common 40001

You could also use a serial port sniffer software to capture the data from LCSoft to see if it is using Modbus.

first thanks for responing

now i tried software sniffer

(Serial Port Monitor)

and the results are in the attachments ( html file ) and a photo for the test
i tried to use all the
Code: [Select]
Starting Address in it

but none gave the value that i wanted to read

i hope you can help
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: Archie on October 18, 2022, 08:08:17 PM
Try this:

- Add a ListBox to the form
- Add a button to the form
- Double click the button
- Add this code
        Dim v() As String = ModbusASCIICom1.Read("40001", 50)
        For i = 0 To v.Length - 1
            ListBox1.Items.Add(i & " : " & v(i))
        Next

- Run the app and click the button

See if any of those values are what you need.
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: oqapsking on October 18, 2022, 08:15:45 PM
so i found the register

but for some reason there is a bit of diffrence in the value

you can see in the video

https://drive.google.com/file/d/17kS12IumcwqEjkdUTpbioauRn_LOVvhm/view?usp=sharing

it looks like nothing
but in this case the value will be much higher
so the diffrence will grow bigger

any idea why?
or how i can fix it ?

but i wanna try the code you sent too
i will tell you the results
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: oqapsking on October 18, 2022, 08:21:31 PM
Try this:

- Add a ListBox to the form
- Add a button to the form
- Double click the button
- Add this code
        Dim v() As String = ModbusASCIICom1.Read("40001", 50)
        For i = 0 To v.Length - 1
            ListBox1.Items.Add(i & " : " & v(i))
        Next

- Run the app and click the button

See if any of those values are what you need.

the code didn`t work
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: Archie on October 18, 2022, 08:23:15 PM
Is the value really different? Because of it fluctuating, it is hard to tell.

In your BasicLabel, set ValueScaleFactor to 0.01
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: Archie on October 18, 2022, 08:24:05 PM
Try this:

- Add a ListBox to the form
- Add a button to the form
- Double click the button
- Add this code
        Dim v() As String = ModbusASCIICom1.Read("40001", 50)
        For i = 0 To v.Length - 1
            ListBox1.Items.Add(i & " : " & v(i))
        Next

- Run the app and click the button

See if any of those values are what you need.

the code didn`t work
Reduce the value of 50 to 10. Maybe there are not 50 registers in the device
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: oqapsking on October 18, 2022, 08:27:54 PM
Is the value really different? Because of it fluctuating, it is hard to tell.

In your BasicLabel, set ValueScaleFactor to 0.01
i did it could work now the value is bitter
i will test it on the divice when  connect it later


thanks
Title: Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
Post by: Shriram Pendse on October 31, 2022, 02:57:03 AM
All Delta related products  Holding register address starts at  4096 .

 If master is 1 based , it would be 4097 .

In modscan its first Modbus address is seen as 44097 or 404097 , if in six digits format.

Good Luck.