Build Thread MAHO 600E - Page 4


Page 4 of 6 FirstFirst 123456 LastLast
Results 37 to 48 of 62

Thread: MAHO 600E

  1. #37
    Member
    Join Date
    Jul 2013
    Posts
    38
    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
    38
    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 09:12 AM.


  3. #39
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3188
    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
    38
    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



  5. #41
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    After half of day a was able to send a constant to the plc from kflop. Now it works but i think kflop interogates to fast the plc.

    What is the variable for the spindle speed which i can use it ?? ( the Sxxxx value from the g code, not the value that includes spindle over ride)



    Sent from my SM-A510F using Tapatalk



  6. #42
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3188
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    Hi swat cat,

    Congrats!

    The desired speed is passed into the variable configured for the S Action in KMotionCNC | Tool Setup. See the Spindle.c example that prints the RPM read from Var=0 as a 32-bit floating point value.

    Code:
    #include "KMotionDef.h"
    
    main()
    {
    	float speed = *(float *)&persist.UserData[0];  // value stored is actually a float 
    	printf("Spindle Set to %f\n",speed);  // print the desired speed
    }
    However it does include the SSO. Why wouldn't you want to include the SSO?

    Regards
    TK http://dynomotion.com


  7. #43
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    Because i have a mecanical 20 speed gearbox. The spinde speed for the plc is used to select a gear. SSO i will use just for the frequency converter, were i will make a closed loop with kflop.Thats another story...

    Sent from my SM-A510F using Tapatalk



  8. #44
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    And if i make a SSO while the machine is running, i will not want to make a gear change

    Sent from my SM-A510F using Tapatalk



  9. #45
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    It s not reading the S value. At this moment i don't have any spindle program running.i am starting manualy the spindle

    Sent from my SM-A510F using Tapatalk



  10. #46
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    So.. what do i need to have the value for the Spindle rpm request ?

    Sent from my SM-A510F using Tapatalk



  11. #47
    Member
    Join Date
    Jul 2013
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    I've made this changes and it works.

    Back to the first question... How do i get the real S xxxx value? Not the speed*spindle_Override. I have a mechanical gearbox and the modbuss is sending this to the plc that selects the correct gear.


    Sent from my SM-A510F using Tapatalk



  12. #48
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3188
    Downloads
    0
    Uploads
    0

    Default Re: MAHO 600E

    Hi swat cat,

    There isn't currently a method of accessing the S value. Only the desired speed.

    Couldn't you use the initial desired speed to decide which gear to use?

    Maybe use an MCode to explicitly select a gear?

    Otherwise new functionality would need to be added.

    Regards
    TK http://dynomotion.com


Page 4 of 6 FirstFirst 123456 LastLast

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

MAHO 600E