[Emc-users] Rotary homing.

2012-01-21 Thread John A. Stewart

Hi all;

I have just received a Sherline rotary table that I intend to connect  
to my KX1.


I have added the wires, but have not physically connected the unit yet.

Ok - I'm trying to add it in. I see the rotary axis in the view  
screen; and the machine seems to home correctly, except when I try and  
touch off the X, Y or Z axis; I get the "Can't issue MDI command when  
not homed" error message.


Here is my hand-edited ini file - any silly/obvious mistakes here? I'm  
a relative newbie with this stuff, and thought I had it figured out.


Thanks for any pointers.

John A. Stewart.

# Version for December 10 2011
[EMC]
MACHINE = KX1
DEBUG = 0

[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/john/Desktop/Stourbridge_Lion/DXF-GCODE
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm
PYVCP = custompanel.xml

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[RS274NGC]
PARAMETER_FILE = emc.var

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 30769
SERVO_PERIOD = 100

[HAL]
HALUI = halui
HALFILE = KX1.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal

[HALUI]
# add halui MDI commands here (max 64) 

[TRAJ]
AXES = 4
COORDINATES = X Y Z A
MAX_ANGULAR_VELOCITY = 360.00
DEFAULT_ANGULAR_VELOCITY = 36.00
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 6.50
MAX_LINEAR_VELOCITY = 65.00
HOME= 0 0 0 0

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl

[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 61.7504631285
MAX_ACCELERATION = 400.0
STEPGEN_MAXACCEL = 500.0
SCALE = 500.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -2.5
MAX_LIMIT = 255.0
HOME_OFFSET = -2.50
HOME_SEARCH_VEL = -50.00
HOME_LATCH_VEL = -1.00
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1

[AXIS_1]

BACKLASH = 0.05
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 61.7504631285
MAX_ACCELERATION = 400.0
STEPGEN_MAXACCEL = 500.0
SCALE = 500.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -3.0
MAX_LIMIT = 115.0
HOME_OFFSET = -3.00
HOME_SEARCH_VEL = -40.00
HOME_LATCH_VEL = -1.00
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2

[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 61.7504631285
MAX_ACCELERATION = 400.0
STEPGEN_MAXACCEL = 500.0
SCALE = 500.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -190.0
MAX_LIMIT = 3.0
HOME_OFFSET = 3.00
HOME_SEARCH_VEL = 20.00
HOME_LATCH_VEL = 1.00
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0

[AXIS_3]
TYPE = ANGULAR
WRAPPED_ROTARY=1
HOME = 0.0
MAX_VELOCITY = 342.003420034
MAX_ACCELERATION = 1200.0
STEPGEN_MAXACCEL = 1500.0
SCALE = 50.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -.0
MAX_LIMIT = .0
HOME_OFFSET = 0.0
HOME_SEQUENCE=-1
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread John A. Stewart
Hi Sebastian;

Thanks for the reply, and the ideas. I'm new to EMC, so there is a lot  
to figure out still.

> What device is this, exactly?

lsinput:

/dev/input/event3
bustype : BUS_USB
vendor  : 0x54c
product : 0x268
version : 273
name: "GASIA CORP. PLAYSTATION(R)3 Cont"
phys: "usb-:00:1d.2-2/input0"
uniq: ""
bits ev : EV_SYN EV_KEY EV_ABS EV_MSC

Here is the URL for the product:
http://www.futureshop.ca/en-CA/product/intec-inc-intec-2-pack-wired-controller-playstation-3-g7884/10156935.aspx?path=c2baa19281ba991ddb5a5d020e17ab9ben02

(if that does not work, it is the Intec 2 pack wired controller,   
WebID:  10156935)

> Does the device seem to be working (you can look at its pins with  
> halmeter or 'halcmd show')?

Yes, the halmeter did work for at least one button input - I'm still  
figuring out how best to run these programs so I know what to look for.

I have modified the "hal_input" program to just not print out the  
error message; but, if I have this issue, I wonder how many others  
might, too?

I'll report back on progress; maybe it will help others. Also, any  
debugging you (or anyone else) wants me to do, just ask.

Thanks;

JohnS.



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Joypad pendant, hal_input errors

2011-10-05 Thread John A. Stewart
Hi all;

After reading some of the messages on this list, I went out and  
purchased a wired joypad; it is giving me the following messages when  
I run:

halcmd
loadusr hal_input -KRAL GASIA

Unexpected event EV_ABS ABS_48
Unexpected event EV_ABS ABS_49
Unexpected event EV_ABS ABS_50
Unexpected event EV_ABS ABS_51
Unexpected event EV_ABS ABS_52
Unexpected event EV_ABS ABS_53
Unexpected event EV_ABS ABS_54
Unexpected event EV_ABS ABS_55
Unexpected event EV_ABS ABS_56
Unexpected event EV_ABS ABS_57
Unexpected event EV_ABS ABS_58

Any idea what's happening here?

I got a wired joypad because I'm always finding batteries dead when I  
come to use things - maybe I shoulda got the bluetooth one!

Thanks; JohnS




--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Running! was Re: Beginner questions regarding axis.

2011-09-18 Thread John A. Stewart
Hi everyone;

Thank you all for the help and guidance. Each email recieved was  
interesting and to the point, and I learnt something from each one.

FWIW; here's the issues I had:

1) The microstepping setup; default to 2 in stepconf; G540 does 10; I  
thought of microstepping as "fractions", but it turns out that, of  
course, they are not.

2) Home location, Home Switch Location, now figured out;

3) Axis direction, positive, negative; although easy, I had spent time  
googling for axis direction before and came up blank;

4) Velocity and Acceleration values.


It is all pretty obvious in hindsight, but that's hindsight, right?

I do a lot with lower layers of OpenGL (including writing programs  
that run on GPUs) and X,Y, and Z have a bit of a different slant on  
things; so of course I had some pre-conceived notions there, even  
though I knew they would be different.

I'm sure there'll be more tweaking, and of course G code programming  
to ensure that I really have it down pat, but it all looks good to go  
from here.

Thank you all;

JohnS.


--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Beginner questions regarding axis.

2011-09-17 Thread John A. Stewart
Brian, Kirk, James;

This is all making sense now - lots of good action happening downstairs. :-)

> Also check your G540 for the micro step setting to be sure it matches the
> values in your INI file that Kirk was referring to.

Ok - just checking the microstep settings - the Gecko gives 10; the  
stepconf defaulted to 2; that'll probably be the last thing.

I did manage to manipulate the ini file (thanks for the pointers and  
math) to give me the right movement, but would like stepconf to do  
this for me.

I think tomorrow morning I'll be up and running.

JohnS.



--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Beginner questions regarding axis.

2011-09-17 Thread John A. Stewart
James;

> Welcome to EMC2!  I can't answer all of your questions...

Thanks very much for the explanation; it looks like I had some of the  
axes going in the wrong way.

I'm still trying to figure out how I get 1/5 of the movement expected;  
ask for 5mm X movement, and I get (via dial indicator) exactly 1mm  
movement. Still some stepconf stuff to work out.

Like everything, it'll be obvious in hindsight  ;-)

PS - I'm using the Intel M525DW motherboard, and with hyperthreading  
turned off, seems to work absolutely fine.

JohnS.



--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Beginner questions regarding axis.

2011-09-17 Thread John A. Stewart
May I ask a beginner question or two?

I have a KX1, but with a G540. It is all "kind of" working, but maybe  
I have a conceptual misunderstanding or two. Can someone help please?  
It has been all connected together now for a day or so.


0) Metric machine, so all of the following is metric.

1) X and Y axis. limit/home switches working, but x and y axis is set to:
Home Location -3.0
Table Travel 0.0 to 250.0 (110mm for Y)
Home Switch Location 0.0
Home Search Velocity  1.0
Home Latch direction SAME

Homed, table is to right, and close to vertical column.

Q: Would it be better to have Home Location 0.0 and table travel -5 to 245?

2) Z axis - is "zero" top of travel?
Home Location -10.0
Table travel -200.0 to 0.0
Home Switch Location 0.0
Home search velocity 1.0

Q: Is it right to have these negative values here?

3) I'm thinking that travel when homing in EMC2 is not correct,  
distance wise. I'm thinking that it is not moving as much as the  
readout on the screens say; I have 4mm pitch leadscrews, 1.8 degree  
steppers, directly coupled:
Motor steps 200.0
Driver Microstepping 2.0
Pulley teeth 1.0 to 1.0
Leadscrew 4.0 mm/rev
Maximum Vel 8.3 mm/s  (machine says "Rapid moving, 1000mm/min;  
feeding speed max 500mm/min)
Maximum accel 50.0 mm/s2


Looking forward to learning to use this machine in earnest, and thanks  
in advance for anyone who can pull the cotton wool out of my brain for  
me. ;-)

JohnS
Ottawa, Canada.


--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users