Build Thread MAHO 600E - Page 4


Page 4 of 4 FirstFirst 1234
Results 37 to 39 of 39

Thread: MAHO 600E

  1. #37
    Member
    Join Date
    Jul 2013
    Posts
    25
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    My maho had sinus 10uA linerar encoders and the original cnc control had an aditional boar inside that converted de sine wave to 10x interpolation of square wave. That was my luck. But on ebay you ca find interpolation modules to do that.

    Sent from my SM-A510F using Tapatalk



  2. #38
    Member
    Join Date
    Jul 2013
    Posts
    25
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    I want to migrade from Mach3 to Kmotion. I`ve set all the parameters. is working ok. but i have a PLC to control the gearbox for the spindle. From mach3 i send the over Modbuss the spindle Speed request.

    So i neet the Kflop to be the Master and write the Holding Register adress 0 on the slave ID 0.

    So i gues i will use ModbusMasterVer1.c

    Tom can you help me?

    Attached Thumbnails Attached Thumbnails MAHO 600E-image1-jpg  
    Last edited by swat cat; 05-15-2019 at 08:12 AM.


  3. #39
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3074
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    Hi swat cat,

    Isn't it slave ID 2 not 0?

    Try these changes to ModbusMasterVer1.c:

    Change the baud rate:

    Code:
    	EnableRS232Cmds(RS232_BAUD_19200);


    Change to do only 1 Write of 1 register to the PLC on both initial connection and monitor loop - Device=2 Address=0000 Length=0001

    Code:
    ModbusMaster_Cmds ModbusMaster_ConnectList[] =
    {
    	// string is "dev,cmd,adrhi,adrlo,lenhi,lenlo" bytes of modbus command. bytelen, data, and checksum are added.
    	{"\x02\x10\x00\x00\x00\x01", 6, 0},	// Write outputs from MBRegisters[0]
    	{0,0,0}	// end flag
    };
    
    ModbusMaster_Cmds ModbusMaster_MonitorList[] =
    {
    	// string is "dev,cmd,adrhi,adrlo,lenhi,lenlo" bytes of modbus command. bytelen, data, and checksum are added as necessary.
    	{"\x02\x10\x00\x00\x00\x01", 6, 0},	// Write outputs from MBRegisters[0]
    	{0,0,0}	// end flag
    };



    As a test just put a fixed value in the ModBus register to be sent

    Code:
    // marshal and move values read from PLC/Slave into MBRegisters to KFlop memory
    void ModbusMaster_RegUnload()
    {
    	// nothing to read
    }
    
    // marshal and move values to be sent to PLC/Slave into MBRegisters
    void ModbusMaster_RegLoad()
    {
    	// put RPM into a Output Register 
    	MBRegisters[0] = 1000;	// Set fixed integer RPM value as a test
    }


    Regards
    TK http://dynomotion.com


  4. #40
    Member
    Join Date
    Jul 2013
    Posts
    25
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    Yes slave ID is 2. I will try the settings. Thx



    Sent from my SM-A510F using Tapatalk



Page 4 of 4 FirstFirst 1234

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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

MAHO 600E

MAHO 600E