Mach Discussion > Mach4 General Discussion

CTB Driver input/output issues

(1/2) > >>

mhermans:
Hello Guys

To give some background, I'm running kingstart rtx with mach4.
for the axis i'm running leadshine ELP-EC750Z and for the spindle I'm running CTB BKSC-44p5GHX with ethercat support.

The issues that I'm facing have to do with the CTB driver for which I've also included the documentation.

I want to activate a relay as soon as the servo driver is enabled, but I can’t seem to get it working.

I’ve connected the wires to T2 and T3 (as shown on page 2-14 of the manual, GHXB model).
I’m using output Q3, which is supposedly pre-configured for "servo enabling" by default. However, when I enable the servo in Mach4, I get no 24V signal on the Q3 output. Even when I turn on the spindle, Q3 remains "off."

Interestingly, when I change Hn.19 to 1 (Servo Ready), I immediately get 24V on Q3.
For this setup, I’m using pin 8 (Q3) and pin 12 (SC) from Port 2.

I've also made sure to verify that Hn19 = 0, Fn21 = 0 and A2.24 = 2
The A2.24 should be responsible for setting the driver to use the Q3 output as servo enabling as far as I understand.

So since this isn't working as expected I figured I would do it in a different way.
I confirmed I can trigger Q3 by setting the output as enabled from the system/mach4.
So the plan was to check whether the input for servo enabled is true in the system and if that's the case set the output to on.

When I went to check what input I should be using I enabled every single input value for the driver in mach4 to see which one would turn on when I enable the driver. But none of them actually change, so it seems that the inputs aren't working/coming in.

I've also included the xml configuration of the driver in the attachments and ethercat communication.

I'm hoping someone here can help me out

cncmagic:
I'm not familiar with the Leadshine itself... have you configured the IO in Mach4? you need to enter the Control configuration and setup the IO links I'm guessing.  :o

mhermans:
Actually for the leadshines it's all working.
I'm using the leadshines for moving the axis and I have inputs working for min and max travel of each axis. as well as outputs for turning on the oil and coolant pumps.

The ctb driver however is having issues with showing anything on the inputs.

smurph:
I would ask Kinstar.  It is going to be an EtherCAT compat issue.  Kingstar always rates highly every year with device compatibility at the EtherCAT "plugfest" every year.  But nobody is 100% on every device. 

Steve

mhermans:

--- Quote from: smurph on December 28, 2024, 06:41:11 PM ---I would ask Kinstar.  It is going to be an EtherCAT compat issue.  Kingstar always rates highly every year with device compatibility at the EtherCAT "plugfest" every year.  But nobody is 100% on every device. 

Steve

--- End quote ---

Hi Steve,
I did indeed end up asking Kingstar, and they where kind enough to be on a 1 hour call with me regarding the issue where we checked out some of the settings and came to the conclusion that we can control the outputs just fine and that setting the output through the driver itself isn't the way to go.

What I'm trying to achieve is the following:
The AC spindle motor has a fan on it. Since the fan doesn't need to be on at all times (only when the driver of the motor is actually enabled), I only want the fan to turn on when we press the "enable" button on mach4.

I already have a output connected to the default "machine enabled" output in the mach4 configuration, this switches a relay that sends power to the oil pump.

So I have 2 options.
1. I wire in a 3 fase relay to the same output the oil pump is on to turn on and off the 3 phase fan that is connected to the AC spindle motor
2. I wire in a 3 fase relay to it's own output and I write a script so I can use 2 output's when the enable button is pressed.

Right now I've opted to go for option 2. What I did now is use a PMC script for this, which works.
But I'm wondering if this is the best solution.
Can't I execute the script on the button press instead of setting it as a PMC script which (from what I've read) is checked every 10 ms

Navigation

[0] Message Index

[#] Next page

Go to full version