Author Topic: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?  (Read 2145 times)

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #1 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.

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #2 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #3 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.

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #4 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

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #5 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #6 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #7 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

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #8 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

Shriram Pendse

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: IS THERE A WAY TO KNOW WHAT IS THE MODBUS ADDRESS FOR A MODULE ?
« Reply #9 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.