585,754 active members*
4,510 visitors online*
Register for free
Login
Page 1 of 9 123
Results 1 to 20 of 190

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    813

    New MODBUSEZ SetUp Plugin For UCCNC

    I already had all the frame work done from previous HY plugin so I put this one together. UCCNC comes with a great Modbus plugin, but without prior knowledge of Modbus and writing macros it can be a little tricky and discouraging getting spindle up and running. This plugin is for the less advanced user who can now have there spindle controlled by UCCNC quickly, painlessly with least expensive solution.

    Don't have setup instructions enclosed with zip yet but the most setup will be with VFD and it's manual, a few notes for plugin is as follows.

    1. Baudrate must match VFD set Baudrate.

    2. VFD should be set to 8-N-1.

    3. All Register fields input needs to be 2byte hexadecimal. (See screens posted below)

    4. Plugin is for typical Chinese spindle 400HZ/24000rpm only.

    I posted some screen shots for setup for some of the popular VFD's like NOWFOREVER, MACHTRIC and HITACHI, I will post more when manuals become available.


    Attachment 353686 NOWFOREVER E100

    Attachment 353688 MACHTRIC S800E

    Attachment 353690 HITACHI X200

    Download here>>>>>>>>>>>>>>>>>>>>Attachment 353896

  2. #2
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Hi Dan,

    Unfortunately it does not seem to work with my Bosch VFD. Did a quick test and nothing is happening.

    My settings were:

    Port 6, 115200, 8N1
    Sact: 20000

    Single register 32513 for RPM settings
    Single register 32512 for run settings
    CW: 129
    CCW 133
    Stop 136

    Exception if CW/CCW/Stop commands entered with three digits only. This is not nice but it is only a nuisance since it seems to be OK if four digits are used. Anyway, it is not working at all with my VFD. I don't know why, and it isn't very important, so don't spend time on this for me since I am happy with the Modbus plugin which is provided by CNC Drive, which is well tested and working without any issues. Nothing is happening, no communication at all. Note that I am using an Ethernet - RS485 com port, so it is a virtual serial port but the same port works well with both Mach3 and UCCNC if I use the built in features of those software. Like I said, don't spend time on this for me, this is just for information. Sorry for not being able to do more debugging. The manual is available on-line, but if you are interested you can download it here:

    Media Directory - Media Directory

    The document to download is: R912005854

  3. #3
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by A_Camera View Post
    Hi Dan,

    Unfortunately it does not seem to work with my Bosch VFD. Did a quick test and nothing is happening.

    My settings were:

    Port 6, 115200, 8N1
    Sact: 20000

    Single register 32513 for RPM settings
    Single register 32512 for run settings
    CW: 129
    CCW 133
    Stop 136

    Exception if CW/CCW/Stop commands entered with three digits only. This is not nice but it is only a nuisance since it seems to be OK if four digits are used. Anyway, it is not working at all with my VFD. I don't know why, and it isn't very important, so don't spend time on this for me since I am happy with the Modbus plugin which is provided by CNC Drive, which is well tested and working without any issues. Nothing is happening, no communication at all. Note that I am using an Ethernet - RS485 com port, so it is a virtual serial port but the same port works well with both Mach3 and UCCNC if I use the built in features of those software. Like I said, don't spend time on this for me, this is just for information. Sorry for not being able to do more debugging. The manual is available on-line, but if you are interested you can download it here:

    Media Directory - Media Directory

    The document to download is: R912005854




    I probably should of waited to post with manual but I did post that it needs to be in hexadecimal with 2 bytes per field. I know your happy with the UCCNC plugin you expressed that several times in my other thread. . Great thing about CNCZONE is there are many choices and opinions. I do remember seeing many post/debates on different ways macros should be written, you all had some experience in programing. Just trying to provide a simpler solution for other users with no experience writing macros.

    For anyone else with a Bosch VFD use settings below.

    Attachment 353966 Bosch Rexroth EFC5610



    *********Make sure you have the MODBUSEZ1.zip*********

    5. VFD address in VFD settings need to be "1"

  4. #4
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    I probably should of waited to post with manual but I did post that it needs to be in hexadecimal with 2 bytes per field. I know your happy with the UCCNC plugin you expressed that several times in my other thread. . Great thing about CNCZONE is there are many choices and opinions. I do remember seeing many post/debates on different ways macros should be written, you all had some experience in programing. Just trying to provide a simpler solution for other users with no experience writing macros.

    For anyone else with a Bosch VFD use settings below.

    Attachment 353966 Bosch Rexroth EFC5610



    *********Make sure you have the MODBUSEZ1.zip*********

    5. VFD address in VFD settings need to be "1"
    I think what you are doing is great (which I though was clear and which is why I did the test) and I am a bit surprised about that deleted sentence, which I have seen before the edit... but never mind.

    I will test it once again, it's not very obvious that part of the data must be in hex, though I should have thought about trying out that as well.

    Yes, simpler solution than the built in plugin is good because neither Mach3 or UCCNC are very clear about how a Modbus VFD should be handled and even if I like the great flexibility, especially the UCCNC Modbus plugin offers (but even Mach3 brains) it is not very easy for everyone to handle that. This is where your plugin fills a gap, it provides a simple interface for basic controls, which is very good and needed. I can clearly see that, even though you don't seem to understand or believe it.

    I have realized both during the HY plugin development phase and see it even here that you don't appreciate my comments and proposals, though at least afterwards, I noticed that you implemented several of them... I guess you realize after some thinking that my proposals are relevant or well considered and meant. So, here are some more:

    - Add an Exit button. While the X works, it is not a very nice way of exiting from a window or a software, a bit unclear if changes are saved or undone when you push X. I know even UCCNC has it this way, but never the less, it is not nice and is very much non-standard.
    - If you want to avoid writing a manual you could add text to the window. There is plenty space for the simple instructions needed and if you did that you would not need to write a manual.

    Take it on board, or ignore, it's your choice but note that all comments are made with positive feelings from my side. One reason I am not interested is not that I don't see the benefits, but the old saying... "If it ain't broke, don't fix it." which is my case with the built in Modbus plugin. It works, so why change it. If this was available when I bought my UCCNC I would have probably used it but now it is different.

  5. #5
    Join Date
    Mar 2017
    Posts
    72

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    So what else do I need to control the VFD via modbus over ethernet? I have a Hitachi WJ200-022SF and a UC300ETH controller with basic breakout boards no fancy switching or anything. Not trying to side track the discussion, but I couldn't figure out how to private message you.

  6. #6
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by WhiteWolf View Post
    So what else do I need to control the VFD via modbus over ethernet? I have a Hitachi WJ200-022SF and a UC300ETH controller with basic breakout boards no fancy switching or anything. Not trying to side track the discussion, but I couldn't figure out how to private message you.
    LOL... Not you side tracking discussion.

    All you would need is a RS-485 converter, the one I posted link for is a RS232 to RS485, it connects to the serial port on comp you have UCCNC running. If you don't have a serial port on comp running UCCNC there's also USB to RS-485 converters, if you search ebay many will appear. You will connect 2 wires from the RS-485 converter to your VFD. That's it.

    If you have anymore questions feel free to post.


    RS232 to RS485 Communication Data Converter Adapter with a Terminal Board | eBay


    Dan

    *************EDIT*********************

    Hey WhiteWolf, I came across this in my folder of research before writing the MODBUSEZ plugin, its for a Hitachi x200 but thought it might help. I did not write this but don't remember where I downloaded it from.

    Attachment 355556

  7. #7
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by WhiteWolf View Post
    So what else do I need to control the VFD via modbus over ethernet? I have a Hitachi WJ200-022SF and a UC300ETH controller with basic breakout boards no fancy switching or anything. Not trying to side track the discussion, but I couldn't figure out how to private message you.

    WhiteWolf, after posting PDF in previous post I took a look at the WJ200 manual and it seems that it may be a different connection than the X200. The snip below was taken from your manual (WJ200).


    Attachment 355592


    And if using the RS-485 converter I posted link for the R+ would connect to SP and the R- would connect to SN

    Attachment 355596


    Hope this helps,

    Dan

  8. #8
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Hi AC,

    Sometimes emails, text and post can be taken out of context, I read your post straight home from work and answered immediately than realized I might have done that. I was told by others I maybe wasting my time because UCCNC provides a great Modbus Plugin so I answered defensively.

    I think UCCNC is the best controller software out there and the users will continue to grow. I also think the Modbus plugin it provides is great also, but it will work as good as the macros the user needs to create to run it.

    I certainly appreciate any input you or anyone else has to offer.

    Thanks,
    Dan

  9. #9
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Hi Dan,
    Don't worry, no apologies needed.

    Anyway, the bad news is the it does not seem to work. It seems that the highest bps possible is 19200, but even if I set it to 9600 there are still problems. If I set Single Holding Register it sends the CW/CCW/Stop commands continually, which I believe is the polling function you implemented. The VFD reacts as expected to these commands, except that the frequency (rpm) command is never sent, so the spindle won't start spinning. If I set it to Multiple Reisters (spelling error in the plugin) then both the Stop command and the spindle frequency are sent three times and then everything stops, even though the VFD responds normally, according to the manual. I include a capture of the communication. I have calculated the checksum and that is as it supposed to be, you are sending exactly as it must be sent and the VFD responds correctly as well, but it seems that the plugin is not recognizing the response and it times out, no further attempts made after these three messages.

    Attachment 354058

  10. #10
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    What ever format you choose it sends a stop command 3 times in that format to test for a response, that's the pic you posted, this generates the Connected or not Connected window.

    If your RPM is set below 1000rpm it wont set frequency, and in Multiple Reisters (lol) it wont send a string.

    Yes I implemented polling and hated doing it, I don't see why when you turn it on you have to keep doing this, but some VFD this could cause an error. With the HY VFD this is not needed.

    Dan

  11. #11
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    My bad on the baud rate issue, please let me know if fixed.


    Attachment 354106

  12. #12
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    My bad on the baud rate issue, please let me know if fixed.


    Attachment 354106
    Thanks, but the biggest issue was not the bps, but the fact that it is not working at all, the spindle is not rotating with the plugin, regardless which bps or rpm I set.

  13. #13
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by A_Camera View Post
    Thanks, but the biggest issue was not the bps, but the fact that it is not working at all, the spindle is not rotating with the plugin, regardless which bps or rpm I set.
    What's your RPM set at on start up? Above 1000rpm?

  14. #14
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    What's your RPM set at on start up? Above 1000rpm?
    On start of UCCNC it is set to zero, just as it shows in the Modbus message I included. After that it is set to whatever I want, no response. I tried 12000, 18000 and 24000. The spindle speed dro is set but Sact is not and the spindle is not starting at all in Multiple Registers mode because the communication is stopped after the three messages.

    In Single Register mode the CW/CCW/STOP commands are sent, depending on the state of the CW/CCW buttons, I can see that the message flow is 100% accurate and the VFD relay and fan starts after CW/CCW, the LEDs indicate the correct state, but for instance, S18000 (or any other spindle speed) is never sent to the VFD, so the spindle won't start spinning. The "polling", i.e. the sending of CW/CCW/STOP continues forever and works perfectly, so the actual communication is OK, and also the plugin reports after start that it is communicating with the VFD. I don't remember the exact wording, but anyway, I can see that it is working just fine, only the spindle frequency message is missing.

  15. #15
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    What ever format you choose it sends a stop command 3 times in that format to test for a response, that's the pic you posted, this generates the Connected or not Connected window.

    If your RPM is set below 1000rpm it wont set frequency, and in Multiple Reisters (lol) it wont send a string.

    Yes I implemented polling and hated doing it, I don't see why when you turn it on you have to keep doing this, but some VFD this could cause an error. With the HY VFD this is not needed.

    Dan
    I know that, I just included the message flow to show you that the responses from my VFD is correct for each of the three messages, yet the plugin is not recognizing the replies and stops. Perhaps if the number of tries would be increased it would be able to capture the message from the VFD. If the plugin works for other users than I don't understand why it is not working for me, since the responses from the VFD are right.

    I still think that minimum rpm should be up to the user. Normally 1000 rpm as minimum is OK, our spindles are generally useless below that speed, but now and then I am checking my spindle run-out like in this video:



    ...and that can not be done at 1000 rpm. Perhaps I am the only one doing this sort of periodic control, I don't know.

    The reason for polling needs is safety requirements I tried to explain elsewhere even before. If the spindle is running and the communication lines are cut it will keep on rotating until something bad might happen. It is a safety requirement that the spindle is stopped automatically if lines are broken. I can configure my VFD so that it stops the spindle automatically if the communication stops, or it keeps on running, regardless the state of the communication line. Currently, it is not set for stopping, so it ignores communication once it is started, but in a workshop or a space where it would be left running on it's own I would configure it to stop automatically in case of communication failure. Perhaps not all the VFDs can be configured both ways, and perhaps some requires a permanent flow of communication, I don't know, but in my opinion it is better if communication is not stopped by UCCNC or a UCCNC plugin.

  16. #16
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    In the Modbus message is the 3 string test as I explained in post#7 and will always set frequency 0 no matter what your RPM is set at on startup. Once you hit OK on Connection window the polling begins and if your RPM is below 1000rpm it will Stop communication and won't send anymore strings(Multiple Registers). I also explained this in post #7.

    I would appreciate if you try setting your RPM above 1000rpm on start up and confirm your problem went away.

    Thanks,
    Dan

  17. #17
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    In the Modbus message is the 3 string test as I explained in post#7 and will always set frequency 0 no matter what your RPM is set at on startup. Once you hit OK on Connection window the polling begins and if your RPM is below 1000rpm it will Stop communication and won't send anymore strings(Multiple Registers). I also explained this in post #7.

    I would appreciate if you try setting your RPM above 1000rpm on start up and confirm your problem went away.

    Thanks,
    Dan
    OK, I will set Spindle minimum velocity in UCCNC Spindle configuration window to more than 1k. I guess that's what you mean by saying "If your RPM is set below 1000rpm it wont set frequency, and in Multiple Reisters (lol) it wont send a string." I thought you meant the RPM in SSet, which is set by the S command. Was not clear for me, sorry. Will get back with the results in a few hours time.

    What about Single Register mode? In that case the spindle speed is not sent at start, polling works and if I set the SS to anything, it is never sent, though the polling continues. Does this mean that you look at the minimum spindle speed setting of UCCNC config and not the actual spindle speed?

  18. #18
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by A_Camera View Post
    What about Single Register mode? In that case the spindle speed is not sent at start, polling works and if I set the SS to anything, it is never sent, though the polling continues. Does this mean that you look at the minimum spindle speed setting of UCCNC config and not the actual spindle speed?
    In single register it also won't set a frequency , on start the plugin is reading your Sset field and will set that frequency if its 1000 or above.

  19. #19
    Join Date
    Apr 2013
    Posts
    1899

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by Dan911 View Post
    In single register it also won't set a frequency , on start the plugin is reading your Sset field and will set that frequency if its 1000 or above.
    OK, will try later tonight and get back.

  20. #20
    Join Date
    Mar 2010
    Posts
    813

    Re: New MODBUSEZ SetUp Plugin For UCCNC

    Quote Originally Posted by A_Camera View Post
    OK, will try later tonight and get back.

    When you find time try this one I removed the 1000rpm limit and test>>>>>>>>>>Attachment 354138

Page 1 of 9 123

Similar Threads

  1. PCB Autoleveler Plugin for UCCNC
    By cahit in forum UCCNC Control Software
    Replies: 106
    Last Post: 11-22-2019, 01:41 PM
  2. Uccnc - plugin creation - pendant
    By robertspark in forum UCCNC Control Software
    Replies: 14
    Last Post: 09-02-2017, 09:42 AM
  3. Waiting for VistaCNC plugin for UCCNC
    By iflyinverted in forum UCCNC Control Software
    Replies: 5
    Last Post: 05-25-2016, 04:20 AM
  4. UCCNC units and setup
    By skcncx in forum UCCNC Control Software
    Replies: 11
    Last Post: 12-30-2015, 04:46 PM
  5. SX-3 Mill Conversion, ESS Plugin Setup in Mach3
    By mrpackethead in forum X3/SX3/G0619/G0463
    Replies: 0
    Last Post: 02-04-2014, 10:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •