Page 1 of 3

Help with Eumach MC-800P retrofiting to OAK.

Posted: Tue Aug 31, 2021 10:24 am
by jhlarsen
Hello everyone,

I need some help getting my cnc retrofit project to work.
The machine is an Eumach MC-800P retrofitted with OAK and using the Oem Simodrive 611 to control the servos and the spindle. the servos is fitted with centroids 10000line encoders. For now i have the servos not attached to the machine to test them but I'm having problems to get the oak to send out the +-10v to drive them. i have the flying leads cable.

The thing i need help with right now is the how and what to connect to the Simodrive 611 to get it all to work correctly?
Since the servo drives needed +24v to enable i had to use a solid state relay between the flying lead and the drive. The problem now it seams is that it takes to long to enable the drive so i get a drive fault, but if i latch the drive enable signal i get the solid state to hold and then i can take the latch away and it works fine. so i think the fault input needs to be on some millisecond delay timer?

I did get the spindle to run cw and ccw with the +-10v but having som problems on the spindle brake "fast stop". it seems that i have to use an output to enable/disable that function, is that possible?

Here is a link to all the manuals, pic and schematic of the machine.
https://1drv.ms/u/s!AvXHYRwqi6XXtyfalEX ... Q?e=Wc5vcQ

Hope someone can help me in the right direction with my project.

Best Regards,
Jim-Hugo Larsen
Norway

Image

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Tue Aug 31, 2021 3:35 pm
by cncsnw
Is it the case that the drive does not close its "okay" signal until after you give it an "enable" signal?

If so, then you can add a delay timer to the fault detection logic.

For example, in your current "AxesEnableStage" you have logic like the following for each axis:

Code: Select all

IF SV_AXIS_VALID_1 && SV_PC_POWER_AXIS_1 && !Axis1DriveOk_M
  THEN FaultMsg_W = AXIS1_DRIVE_FAULT_C, ; 6401(1+256*25)
    SET AxisFault_M,
    SET Axis1Fault_M
You would need to add an axis-enabled timer for each axis, up in the "Timer Definitions" section. For example:

Code: Select all

Axis1Enabled_T  IS T51
Axis2Enabled_T  IS T52
Axis3Enabled_T  IS T53
Then, in AxesEnableStage, you would revise the logic to keep track of the time that each axis has been enabled, and only fault if the drive is not okay after that amount of time has elapsed:

Code: Select all

IF SV_PC_POWER_AXIS_1 THEN Axis1Enabled_T = 50, SET Axis1Enabled_T
IF !SV_PC_POWER_AXIS_1 THEN RST Axis1Enabled_T
IF Axis1Enabled_T && !Axis1DriveOk_M
  THEN FaultMsg_W = AXIS1_DRIVE_FAULT_C, ; 6401(1+256*25)
    SET AxisFault_M,
    SET Axis1Fault_M
... and similarly for each additional axis that is connected.

Note that the dependency on "SV_AXIS_VALID_n" can be omitted, since it is a given that CNC12 will not try to power an axis that is not valid.

In the example above, the allowed time is 50ms. You could use a Machine Parameter value instead (e.g. "Axis1Enabled_T = SV_MACHINE_PARAMETER_700" to make it easier to experiment and adjust. You can use the PLC Detective Logic Analyzer to find out how long it does typically take for each drive to close its "okay" signal after it is enabled.

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Tue Aug 31, 2021 3:40 pm
by cncsnw
Do you have a diagram or picture showing how you connected the Oak flying-lead cable to the Siemens drive terminals, including your interface relay?

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Tue Aug 31, 2021 4:51 pm
by jhlarsen
this is the relay i use:
https://www.phoenixcontact.com/online/p ... usen&tab=1

Here is a drawing of the wiring diagram
Simodrive 611 wiring.pdf
(13.2 KiB) Downloaded 104 times

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Wed Sep 01, 2021 1:58 pm
by jhlarsen
Do i have to set some delay on the spindel fault also?
20210901_195442.jpg
20210901_195456.jpg

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Wed Sep 01, 2021 2:10 pm
by jhlarsen
If i remove the fault out from the vfd all works perfect.

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Wed Sep 01, 2021 2:44 pm
by cncsnw
Yes, you probably need a timer there too. It also looks like you will need to un-invert INP10.

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Thu Sep 02, 2021 3:05 pm
by jhlarsen
Did get this to compile👍

What is going on here? Did not write anything on those lines??
16306095499185578245132681599619.jpg

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Thu Sep 02, 2021 4:15 pm
by jhlarsen
I can't get the axis to move at all, i don't get any output to drive it. What leads do i use on the flying leads axis header? Do i have to do more then activate output 15 and 16 to get the +-10V to the servodrives?

Re: Help with Eumach MC-800P retrofiting to OAK.

Posted: Thu Sep 02, 2021 5:00 pm
by cncsnw
Regarding the compile error that is preventing your PLC program from compiling: it looks like you inadvertently deleted or changed the definitions for OUT15 and OUT16, around lines 390 and 391.

If you cannot find the error, post a fresh report so we can look at your PLC program source file.