MODBUSEZ Plugin

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

Re: MODBUSEZ Plugin

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

here is full dump using modbus master.
im reading a few multiple registers too. but it is reading just amps in one of them - so should be easy to pick out

50 00 00 00 14 01 f4 00 00 00 00 00 0a 9c 40 9c P.....ô......œ@œ
40 00 00 a7 b7 @..§·
[11/12/2017 17:44:04] Written data (COM1)
01 03 30 02 00 01 2a ca ..0...*Ê
[11/12/2017 17:44:04] Read data (COM1)
01 03 02 00 2a 39 9b ....*9›
[11/12/2017 17:44:04] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:44:04] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:44:04] Written data (COM1)
01 06 00 03 27 10 63 f6 ....'.cö
[11/12/2017 17:44:05] Read data (COM1)
01 06 00 03 27 10 63 f6 ....'.cö
[11/12/2017 17:44:05] Written data (COM1)
01 03 00 d7 00 0a 75 f5 ...×..uõ
[11/12/2017 17:44:05] Read data (COM1)
01 03 14 00 37 9c 40 05 a0 01 7c 00 71 03 65 03 ....7œ@. .|.q.e.
7e 04 57 04 30 02 71 e8 ea ~.W.0.qèê
[11/12/2017 17:44:05] Written data (COM1)
01 03 00 00 00 10 44 06 ......D.
[11/12/2017 17:44:05] Read data (COM1)
01 03 20 00 01 00 00 00 02 27 10 00 32 00 32 00 .. ......'..2.2.
50 00 00 00 14 01 f4 00 00 00 00 00 0a 9c 40 9c P.....ô......œ@œ
40 00 00 a7 b7 @..§·
[11/12/2017 17:44:05] Written data (COM1)
01 03 30 02 00 01 2a ca ..0...*Ê
[11/12/2017 17:44:05] Read data (COM1)
01 03 02 00 29 79 9a ....)yš
[11/12/2017 17:44:05] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 17:44:05] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 6:02 pm

You have to go to ModbusEZ configure and resave than restart otherwise it's just going to use the old saved string in profile.

I'm certain this will work perfectly also when configured correctly.

Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 9:18 pm

Ok restarted but didn't re configure and save/ restart
Il try again later.
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 11:32 pm

Battwell wrote:Ok restarted but didn't re configure and save/ restart
Il try again later.


All that's needed is to go to ModbusEZ configure and press save. This allows the new plugin to regenerate new settings/string.

With a change in read register actually a restart is not necessary but a save settings press in configure is. This allows to view many registers without a restart.
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 11:47 pm

ok- its reading amps- but
decimal point is in wrong place

with divide by 10 i only get one digit
with divide by 100 i just get a 0
with divide by one i get both numbers- but no decimal point ie 5.7 a reads as 57
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Mon Dec 11, 2017 11:51 pm

thank you for your testing

could you please post the serial monitor read out.

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

Re: MODBUSEZ Plugin

Postby Battwell » Mon Dec 11, 2017 11:57 pm

[11/12/2017 23:57:05] Written data (COM1)
01 03 30 02 00 01 2a ca ..0...*Ê
[11/12/2017 23:57:05] Read data (COM1)
01 03 02 00 2c b9 99 ....,¹™
[11/12/2017 23:57:05] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 23:57:05] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 23:57:05] Written data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 23:57:05] Read data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 23:57:05] Written data (COM1)
01 03 30 02 00 01 2a ca ..0...*Ê
[11/12/2017 23:57:05] Read data (COM1)
01 03 02 00 2c b9 99 ....,¹™
[11/12/2017 23:57:06] Written data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 23:57:06] Read data (COM1)
01 06 10 00 00 01 4c ca ......LÊ
[11/12/2017 23:57:06] Written data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 23:57:06] Read data (COM1)
01 06 00 03 20 8d a0 6f ....  o
[11/12/2017 23:57:06] Written data (COM1)
01 03 30 02 00 01 2a ca ..0...*Ê
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Tue Dec 12, 2017 12:20 am

Thank you... results were a int and should be a double...Duh

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

Re: MODBUSEZ Plugin

Postby Battwell » Tue Dec 12, 2017 12:40 am

thats got it.
the only thing i dont like is when it hits a whole number the decimal point and decimal place dissapear
id prefer it to always show- probably to 2 decimal places - as some registers will probably show this accuracy- like if output volts was monitored etc?
so instead of 5 it reads 5.00 5.2 would read 5.20
this would be more like reading a digital multi meter. - the decimal places always show

by the way- nice for me to be labelled the author in that plugin lol
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 867
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: MODBUSEZ Plugin

Postby Dan911 » Tue Dec 12, 2017 12:56 am

Battwell wrote:thats got it.
the only thing i dont like is when it hits a whole number the decimal point and decimal place dissapear
id prefer it to always show- probably to 2 decimal places - as some registers will probably show this accuracy- like if output volts was monitored etc?
so instead of 5 it reads 5.00 5.2 would read 5.20
this would be more like reading a digital multi meter. - the decimal places always show

by the way- nice for me to be labelled the author in that plugin lol


Yes, I know exactly what you mean with decimal/whole# and bothered me to with HY plugin, went crazy with that in the HY plugin trying to fix and never came up with solution. Maybe Dezsoe has a answer to formatting field.

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

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: No registered users and 3 guests