Hello Guest it is April 23, 2024, 04:12:17 PM

Author Topic: Howto connect ENC module - IPS / M3 turn ? No RPM readouts  (Read 7514 times)

0 Members and 1 Guest are viewing this topic.

Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« on: December 14, 2014, 06:33:36 AM »
Please provide some pointers on howto connect the ENC module.
The goal is to get good threading- to limits of machine accuracy.

Z,X, and C are all step/dir servos.
Thus the servo A, A/, B, B/, already feed to the servo drive.

The connections to the servo driver are made through a DB connector CN1.
I am using the servo, SDB08NK0 as the spindle drive in step/dir mode.

So ..
CZ+, pin 6, is CZ+ (= Z Phase OUtput).
CZ-, 5, is CZ- (Z Phase Output GND).

Also,
PZOUT+, pin 26.
PZOUT+, pin 13.

Connecting:
CZ+, pin 2 on servo CN1, to digital input pin 9 (Input 9-).
CZ+, pin 5 on servo CN1, to DC GND.

This shows the digital input LED on the IP-S flashing, as the encoder fires for a small time, once per turn.
Positioning the servo on the Z- index, leaves the digital input led on.

BUT..
In Mach3 diagnostic, the index led does not come on.
In turn, turning on the spindle with M3 (or spindle on, F5), does not give spindle rpm.

Spindle works CW/CCW fine.

Connecting:
PZOUT+, pin 26 on servo CN1, to ENC pin 4 (Encoder 1 IN I+).
PZOUT-, pin 13 on servo CN1, to ENC pin 17 (Encoder 1 IN I-).
Likewise the LED on the ENC is on (turns off when on index, flashes once/turn. LED on ENC module stays on when servo is positioned on the index).
+5V (pin 1) and GND (pin 14) on ENC is not connected.

1. So what should I do next ?
2. Why does M3 turn diagnostics not show the index led - does this not work in IPS or motion controllers ?
3. Why dont I get spindle RPM readouts in M3 turn ?

Pics.
1. Full schematic.
2. Servo pins connector.
3. Enc connector.

(minor editing and spelling fixed)
« Last Edit: December 14, 2014, 06:36:08 AM by hanermo »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #1 on: December 14, 2014, 04:25:43 PM »
You also need the A channels and B channels connected to the Enc module.
Hood
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #2 on: December 16, 2014, 04:30:05 AM »
Hood .. how can I connect the A and B channels to the encoder when they go from the servo encoder to the servo drive ?

Or..
Does the ENC need a * separate encoder * on the spindle, that is not the same one as on the spindle servo drive.
There is no wiring example on cslabs web site.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #3 on: December 16, 2014, 04:54:01 AM »
If the motor is connected direct, ie no gearing, then you can use the motors encoder, if there is gearing then it is best  to use a seperate encoder.

Most servo drives have encoder outputs on them and I see on your pic above CN1 seems to be that.

Hood
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #4 on: December 16, 2014, 06:22:05 AM »
Thanks, Hood ..  but..
The encoder connects directly to the drive.

Oh, maybe I see now..
Do you mean to take the a,b,z output signals from CN1 .. and feed these to the ENC ?
In this case, the encoder is fed to the drive (with CN2 connectors), but the signals are also output on CN1 connector.

Second pic, lower right hand side, CN1 connector.
So, e.g. Pin16 PAOUT+ goes to the enc, A+ and so on..

16-2 (A+)
11-15 (A-)
24-3 (B+)
12-16 (B-)
26-4 (Z+)
13-17 (Z-)

I will try this..


Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #5 on: December 16, 2014, 06:47:38 AM »
Yes, one thing you will have to check is that there is no division or multiplication for the encoder outputs set in the drive, as that is usually possible (for slaving another drive etc)

Hood
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #6 on: December 16, 2014, 06:50:47 AM »
Thanks Hood.
So where could I get the 5V and power, then.

These 5V and 0V are not output on the CN1 connector.
I see 5V and GND on the CN2 connector only.

And I really, really, dont want to break into the factory cable on CN2.
The power supply to the ENC is 24V.

ATM, I see the A,B flicker on the ENC.

P.S.
The csmio does not connect .. I suspect something is drawing/outputting too much power - maybe related to the a,b signals.

Your help is very much appreciated.

Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #7 on: December 16, 2014, 07:16:17 AM »
The not connected was due to IP stuff .. I set up some IP cams and added a second 192.168.0.0/24 net, and the CSMIO-IP-S IP detection fails ...
Just removed the second IP network.
(Pokeys has /had same problem).

Anyway, the ENC is connected, and the A/,B/ channels show up.

BUT.  I still dont see the spindle speed true RPM readout.
M3/M4 work as before..

Any ideas ?
Maybe I need the 5V and GND, but where to conect them ?

Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #8 on: December 16, 2014, 07:24:21 AM »
Further to the diagnostics..
The plugin diagnostic window shows CS-input 9 as active when I park on the index signal.

Or should I use another port/pin on the Mach3 ports/pins input for the index index signal to get threading/rpm readout working ?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Howto connect ENC module - IPS / M3 turn ? No RPM readouts
« Reply #9 on: December 16, 2014, 07:45:48 AM »
You do not need the 5v as that is meant if you have a secondary encoder and it needs power.

Check you have the spindle set up in the plugin, ie the encoder count etc.

Hood