Machsupport Forum
Third party software and hardware support forums. => CS-Lab => Topic started by: hanermo 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)
-
You also need the A channels and B channels connected to the Enc module.
Hood
-
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.
-
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
-
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..
-
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
-
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.
-
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 ?
-
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 ?
-
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
-
Oh, great on the 5V, as the encoder works.
I wont worry about it then.
Yes, I have the spindle setup in the plugin.
The spindle works perfectly re: fwd and back .. its just that I dont get an rpm readout.
In encoder module, the position and angle change between position o, angle 0.0 and position -1/angle 360.
I remember that threading needs the RPM readout to work.
Do you know if the ENC is on another port and thats the signal I should feed to mach for the index signal ?
Or is it that the ENC based threading may work even if the RPM readout does not.
ENC fw is 1.02
MPG fw is 1.10
CSMIO fw is 2.500 / FPGA 2.50 (October 24/2014).
-
Attach your XML and I will take a look.
Hood
-
Thanks Hood !
Here is the file CSLathe.1.xml.
-
Go into ports and pins and disable the Index, see if that helps, you dont need that set and it may well be conflicting.
Hood
-
Removing index got rpm readout working !