MODBUSEZ Plugin

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

Re: MODBUSEZ Plugin

Postby Dan911 » Tue Dec 12, 2017 1:08 am

Light bulb just came over my head. The value is converted to string so I can probably add decimal and spaces in that conversion. I'll play with this and post results.
Dan911
 
Posts: 218
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby Dan911 » Tue Dec 12, 2017 3:30 am

Battwell wrote: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


I'm probably going to go with the 1 decimal place but here's the multi meter look you wanted to check out.

Test3.zip
(12.89 KiB) Downloaded 11 times
Dan911
 
Posts: 218
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby dezsoe » Tue Dec 12, 2017 7:38 am

Hi Dan,

It's easy: use number.ToString("F2") to have always 2 decimals.
dezsoe
 
Posts: 255
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: MODBUSEZ Plugin

Postby Battwell » Tue Dec 12, 2017 9:22 am

thats a much nicer display! il probably add this on my machines now. :-)
i was going to write my own macro loops- no need now :-)

could the plugin give a choice of how many dp ? - i dont need it but it might be a nice addition if monitoring something other than amps.
anyway- nice work on it dan. glad my little bit of testing could help with the plugin - and teach you more about code formatting .
Battwell
 
Posts: 174
Joined: Sun Sep 25, 2016 7:39 pm

Re: MODBUSEZ Plugin

Postby Dan911 » Tue Dec 12, 2017 1:38 pm

dezsoe wrote:Hi Dan,

It's easy: use number.ToString("F2") to have always 2 decimals.


Thank you Dezsoe, as you see I got it from previous post. BTW- Everything is easy once you know how...lol


Thank you Battwell, your help, idea's and push to look at the string format again is very much appreciated!

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

Re: MODBUSEZ Plugin

Postby alex_s » Fri Dec 15, 2017 8:20 am

Hi Dan,

Settings as of Powtran should be F0.02 = 1, F0.11 = 4, F9.00=6005 F9.05=31 ( 9600 Baud 8N2 in PPO5 format ).
I also sent them the constructed command as of the manual and asked for confirmation on the correct Structure.

cheers
Alex

EDIT:

SLAVE = 01
CODE = 06
ADDRESSH = 20
ADDRESSL = 00
HIGH DATA = 00
LOW DATA = 01
HIGH CRC = 43
LOW CRC = CA

as of powtran should cause spindle Start in FWD Mode

here is a pdf if it help the settings are different at the top but the once i posted are the correct ones
https://www.dropbox.com/s/7l5v5msvp8k06rt/485.pdf?dl=0
alex_s
 
Posts: 41
Joined: Tue Nov 29, 2016 11:45 am

Re: MODBUSEZ Plugin

Postby alex_s » Fri Dec 15, 2017 11:20 am

so after testing/checking the aditional pdf i got the propper commands and can confirm them working

Spindel FWD Start
01 06 20 00 00 01 43CA

Spindel REV Start
01 06 20 00 00 02 03CB

Spindel Stop with decel
01 06 20 00 00 02 03CB

Spindel Stop emergency
01 06 20 00 00 05 4209

Frequncy needs to be set in % of max defined
eg. 100.00 % = 10000 = 2710H | 50.00% = 5000 = 1388H
01 06 10 00 13 88 805C

the 2000H register is for the RUN control the 1000H for speed
alex_s
 
Posts: 41
Joined: Tue Nov 29, 2016 11:45 am

Re: MODBUSEZ Plugin

Postby Dan911 » Fri Dec 15, 2017 11:45 am

alex_s wrote:Hi Dan,

Settings as of Powtran should be F0.02 = 1, F0.11 = 4, F9.00=6005 F9.05=31 ( 9600 Baud 8N2 in PPO5 format ).
I also sent them the constructed command as of the manual and asked for confirmation on the correct Structure.

cheers
Alex

EDIT:

SLAVE = 01
CODE = 06
ADDRESSH = 20
ADDRESSL = 00
HIGH DATA = 00
LOW DATA = 01
HIGH CRC = 43
LOW CRC = CA

as of powtran should cause spindle Start in FWD Mode

here is a pdf if it help the settings are different at the top but the once i posted are the correct ones
https://www.dropbox.com/s/7l5v5msvp8k06rt/485.pdf?dl=0


Hi Alex,
What I understand from PM and this post is that these settings work using Powertran but not with ModbosEZ?

Reading PDF you linked the frequency is not being sent Modbus standard, the frequency is being sent in percentage 0% - 100%.

Please use these exact settings below and take note of min rpm and do not change RPM after UCCNC start. ModbusEZ will be sending 50HZ to VFD and it should be interpreted as 50% and start your spindle at 12000rpm. I will read through your manual to see where to change these settings.

Alex.JPG
Attachments
ModbusEZV15.zip
(1.23 MiB) Downloaded 17 times
Dan911
 
Posts: 218
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: MODBUSEZ Plugin

Postby alex_s » Fri Dec 15, 2017 12:53 pm

thanks

start stop works,

for Spindel Stop 0006 should be used. 0005 only if you have the propper decel coil and braking resistor, because the overvoltage might damage the vfd otherwise

got version 1.046 of uccnc and with the attached plugin it crashes with an error when spindel start stop was used, on exiting / closing uccnc

the % is of max rpm so if i set s12000 it is 50 % of 24000, if you can grab the S commands with the plugin, it would be easy math.

thanks again for your efforts Dan, you got a paypal tip jar or so ?
alex_s
 
Posts: 41
Joined: Tue Nov 29, 2016 11:45 am

Re: MODBUSEZ Plugin

Postby Dan911 » Fri Dec 15, 2017 1:10 pm

Alex please look at snip I taken from your manual, your configured for second option using frequency address 1000 and your VFD is not going to accept the format ModbusSZ plugin is sending frequency.

You need to use first option using frequency address 0001. There's also a setting in your VFD for frequency resolution (F0.02) 1- 0.1hz and 2 - 0.01hz. If F0.02 is set to 1 than don't check box in ModbusEZ "Spindle Setup"

Use the new final V15 plugin I uploaded in previous post.

Dan

PT manual.JPG
Dan911
 
Posts: 218
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