MODBUSEZ Plugin

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: MODBUSEZ Plugin

Postby dezsoe » Sun Dec 10, 2017 3:57 pm

Dan911 wrote:Dezsoe/Battwell hope you don't mind but used snip from manual that my help others to see more clearly, it does look like these settings can be fined tuned though.


Of course, not! For future readers: on the VFD after a set defaults and a motor setup, two registers need to be set:
- 1.14 Reference selector: set to 3 (Pr, use presets)
- 6.43 Control word enable: set to 1 to enable control through 6.42 control word
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: MODBUSEZ Plugin

Postby dezsoe » Sun Dec 10, 2017 4:00 pm

Dan911 wrote:Because the strings you are looking at(below) aren't for multiple registers 10 Hex / 16 decimal, they were saved from when you saved Single Holding registers. Multiple Registers needs to have a frequency set in it so you won't find in profile its generated in plugin.

OK, thank you! As I wrote, it works fine, I was just curious.
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: MODBUSEZ Plugin

Postby Dan911 » Sun Dec 10, 2017 9:53 pm

dezsoe wrote:
Dan911 wrote:Because the strings you are looking at(below) aren't for multiple registers 10 Hex / 16 decimal, they were saved from when you saved Single Holding registers. Multiple Registers needs to have a frequency set in it so you won't find in profile its generated in plugin.

OK, thank you! As I wrote, it works fine, I was just curious.


Thank you, your input is extremely valued. I will recommend anyone using this plugin to only use multiple registers if its your only choice, some VFD's only allow this Modbus function and that's why I included it in plugin. You can see from profile that all strings are saved and you get a much quicker response time so it don't have to regenerate with each command. Regardless of function used it sends to VFD first than adds to polling thread so polling speed really don't effect response time.

Once again thanks for your testing,
Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 8:16 am

It's frustrating having 2 inverters and neither speak modbus, I can test what goes out with serial monitor but not what comes back. Hoping someone could test if read is working in plugin, I'm 99.9% sure it's correct but I was that sure the first time also.

Thanks

ReadTest.zip
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 11:17 am

i replaced the plugin- still shows as version 15?

doesnt read amps
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 819
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 11:24 am

dump view

[11/12/2017 11:18:22] Written data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Read data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 11:18:22] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
[11/12/2017 11:18:22] Written data (COM1)
01 06 10 00 00 05 4d 09 ......M.
[11/12/2017 11:18:22] Read data (COM1)
01 06 10 00 00 05 4d 09 ......M.
[11/12/2017 11:18:22] Written data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Read data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 11:18:23] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
[11/12/2017 11:18:23] Written data (COM1)
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 819
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 1:52 pm

Battwell wrote:dump view

[11/12/2017 11:18:22] Written data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Read data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 11:18:22] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
[11/12/2017 11:18:22] Written data (COM1)
01 06 10 00 00 05 4d 09 ......M.
[11/12/2017 11:18:22] Read data (COM1)
01 06 10 00 00 05 4d 09 ......M.
[11/12/2017 11:18:22] Written data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Read data (COM1)
01 06 00 03 34 15 ae c5 ....4.®Å
[11/12/2017 11:18:22] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 11:18:23] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
[11/12/2017 11:18:23] Written data (COM1)


I don't know what your reading but I'm assuming Amps and this line is what your VFD returned.

01 83 50 01 14 31 ca

Plugin is reading byte 3 and 4 counting starting with zero so it's reading 01 14

0114 Hex = 276

If I remember correctly that VFD uses 0.01 resolution which would mean it gets divided by 100 not 10.

276/100 = 2.76 This seems correct to me. :?

Thanks for your help!
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 3:54 pm

Hi Battwell,

Like I mentioned in another post...To be able to see return makes it very simple to analyze problem.

Return Array; 01 83 50 01 14 31 ca

First thing that troubled me with your return string is the function code 83, it should be 03. Looking back in my code the plugin is just going to discard this as an error. Now I had to figure out why.

Sent Array; 01 03 00 01 30 02 81 cb

The address register should be right after function code and is reversed. This is the first plugin I sent you and was my error that I fixed with the second "ReadTest.zip" that I uploaded. I tripled checked on my end and I did upload correct 1. Please confirm you used correct one. Maybe you should delete than replace with new instead of overwriting.

If you would like I will upload one with a different version number to make less confusing.

Once again I really appreciate your time and help,
Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 5:36 pm

i just deleted old one- ensured it was correct one loaded- same issue
amps is 4.8 but im getting readout of 27 from somewhere.

[11/12/2017 17:34:56] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:34:56] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:34:56] Written data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 17:34:56] Read data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 17:34:56] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 17:34:56] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
[11/12/2017 17:34:56] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:34:56] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:34:56] Written data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 17:34:56] Read data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 17:34:56] Written data (COM1)
01 03 00 01 30 02 81 cb ....0.Ë
[11/12/2017 17:34:56] Read data (COM1)
01 83 50 01 14 31 ca .ƒP..1Ê
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 819
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 5:38 pm

i can give dump of it being read correctly using uccnc modbus if you wish (not plugin) as i have it working perfectly using that
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 819
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: No registered users and 10 guests