548,466 active members*
2,010 visitors online*
Register for free
Login

Thread: Modbus

Results 1 to 7 of 7
  1. #1
    Moderator
    Join Date
    Mar 2017
    Posts
    904

    Modbus

    Mk3 controller always had support for transmitting Modbus commands.
    New Mk3/4 and Mk3 controllers with red 10pin connector also support receiving Modbus responses.

    We are developing new sets of commands that will greatly simplify Modbus usage.

    Does anybody use Modbus or wans to use it? What kind of devices do you have? Do you need master or slave implementation?

  2. #2

    Re: Modbus

    I know that the linux cnc people like to use Modbus to control the VFD for the spindle.
    This typically makes the 0-10V converter board obsolete. Makes for a better, more consistent RPM setting and could perhaps also provide feedback from the VFD to Planet for status reporting.

    However this needs to be a quiet close integration into the S command to be beneficial, don't know how easy this can be achieved. (can the S command scripted by the user at the moment?)

    While I have a modbus capable VFD (Omron MX2) I don't see the need personally at this point in time as I have everything setup in a working order. However I think proper Modbus support could be a selling point for people who are looking for a new system.

  3. #3

    Join Date
    May 2020
    Posts
    31

    Re: Modbus

    Hello,

    Interesting, I develop and use Modbus applications but for controlling temperature regulators.
    Many VFD use the Modbus protocol.
    Unless I am mistaken, I have never seen any presentation, possibility or example of the use of this protocol with MK3. Would it be possible to get some?

    My MK3 controller does not have a red 10pin connector, is it compatible?

    For my part, I would rather see the implementation in master mode, at least initially. The slave mode would imply having a system above to communicate, analyze, control TNG V2, which would be rather rare in the majority of our cases.

    if you are using a 10 pin connector i am assuming you are only using modbus RTU or ASCII, are you planning to implement modbus TCP?

  4. #4

    Join Date
    Feb 2021
    Posts
    1

    Re: Modbus

    Quote Originally Posted by PlanetCNC View Post
    Mk3 controller always had support for transmitting Modbus commands.
    New Mk3/4 and Mk3 controllers with red 10pin connector also support receiving Modbus responses.

    We are developing new sets of commands that will greatly simplify Modbus usage.

    Does anybody use Modbus or wans to use it? What kind of devices do you have? Do you need master or slave implementation?
    My Mk3 board also don't have 10pin red connector (about 1 year old now). I think I will stick modbus but I'm more intrested about Ethercat any implemention plans

  5. #5
    Moderator
    Join Date
    Mar 2017
    Posts
    904

    Re: Modbus

    With new version write single coil (5) command can be sent like this:
    Code:
    (array,3000,0x11,0x05,0x00,0x00,0x01,0x00)
    (crc16,3000)
    M65 H0 Q3001 E#3000 R4001 D-1
    State of single coil (1) can be read like this:
    Code:
    (array,3000,0x11,0x01,0x00,0x00,0x01,0x00)
    (crc16,3000)
    M65 H0 Q3001 E#3000 R4001 D-1

    Returned data count is stored in parameter 4000, results are in 4001, 4002,...
    It can be printed to output window like this:
    Code:
    (print,-----)
    (print,0x#<4000,-2>)
    (print,0x#<4001,-2>)
    (print,0x#<4002,-2>)
    (print,0x#<4003,-2>)
    (print,0x#<4004,-2>)
    (print,0x#<4005,-2>)
    (print,0x#<4006,-2>)
    (print,0x#<4007,-2>)
    (print,0x#<4008,-2>)
    (print,0x#<4009,-2>)
    (print,0x#<4010,-2>)
    (print,0x#<4011,-2>)
    (print,0x#<4012,-2>)

    Old Mk3 without red connector can send commands via TX pin.

  6. #6

    Re: Modbus

    is this working with the mk3/9 controller as well?

  7. #7
    Moderator
    Join Date
    Mar 2017
    Posts
    904

    Re: Modbus

    Yes, Mk3/9 is just another name for Mk3.

    When I receive some Modbus devices I'll create more examples.

Similar Threads

  1. Modbus
    By Maurice1 in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 03-08-2019, 09:40 AM
  2. UCcnc and Modbus (;-)
    By vmax549 in forum UCCNC Control Software
    Replies: 43
    Last Post: 09-30-2016, 07:36 PM
  3. Need help with ModBus
    By jharvey407 in forum Mach Software (ArtSoft software)
    Replies: 8
    Last Post: 03-22-2015, 06:51 PM
  4. Trying to find Modbus commands for Modbus access in VB scripts
    By JoeKumanchik in forum Screen Layouts, Post Processors & Misc
    Replies: 3
    Last Post: 10-30-2014, 05:54 PM
  5. MODBUS
    By cncbpt in forum Screen Layouts, Post Processors & Misc
    Replies: 1
    Last Post: 02-07-2013, 06:24 PM

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
  •