Hello Guest it is April 17, 2024, 11:48:28 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - smurph

1371
Galil / Re: Home switch set up
« on: December 30, 2010, 02:06:38 AM »
-X low and X home enabled with the same pin config is not a good idea.  They are two separate signals in Mach.  So keep them separate.  Map Mach X-- to port 1, pin 9.  Then map Mach X home to port 1, pin 17.  If you use a limit switch also for a home switch, jumper the switch to both the -X and X home on the Galil ICM.  Limits switch signals are disabled when homing!  This is to allow using a limit switch also as a home switch. (Which I really don't know why anyone would want to do, but people asked for it.  Me?  I'm buying a $8.00 switch to do the job...)

The Galil plugin is looking for the Mach home signal to become activated.  It basically does a jog towards the home switch using the Galil JG command.  Say 2000 counts per second.  That would be JGX=2000 to move the X axis in a positive direction as 2000 is a positive number.  If you hit the home switch and then move off before Mach catches the signal (1/10th of a second), then you might have a problem.  If this is the case, you need to rig your switch to stay activated longer.

When Mach sees the home signal get activated, the galil plugin stops the axis.  It then reverses the axis by taking the initial jog velocity and multiplying it times -0.1  So 2000 becomes -200.  So JGX=-200 is sent to the controller.

When Mach sees the home switch go to the inactive state, the galil plugin stops the axis withing 1/10th of a second.  Homing is done at this point unless you have specified the use of the index pulse.  

If using the index pulse, the galil plugin issues the same JGX=-200 jog command until it finds the index pulse from the encoder.

That's the sequence anyway.  If you are blowing past your switch and your are seeing the signal light up in Mach, then there might be an error in the commands going to the controller.  Enable the debug output in the plugin configuration.  This creates a GalilDebug.txt file with the commands sent to the controller and the controller's response to them.  Then repeat your home operation and exit Mach.  This will fill the GalilDebug.txt file with the information from your home operation.  Then find the GalilDebug file (usually in c:\mach3 or c:\mach3\plugins) and send it to either Kenny or Myself.  Our email addresses are in the plugin PDF manual.

Steve

1372
Galil / Re: Mach3 & Galil using stepper motor and encoder feedback
« on: December 30, 2010, 12:36:32 AM »
That's Stepper Position Maintenance (SPM).  You have to set up code to catch position errors.  Where the position error is "caught", the motor stopped, and then a POSERR subroutine is called to correct the error.  Unfortunately, this is nowhere near a closed PID loop.  :(  

Also, this "mode" of correction is not suited to the way we stream data to the controller.  We don't download a Galil script to the controller at all.  If you run the plugin and enable debug output, then you can see what we are doing by looking at the GalilDebug.txt file.  

So, unfortunately, all that the plugin supports is open loop control for stepper motors on the Galil.  :(

Steve

1373
Galil / Re: Problem in Motor Tuning
« on: December 29, 2010, 08:25:10 PM »
I'm not sure on this one.  Some parameter is not right.  You might post this question to the General section and get more responses.

Steve

1374
Galil / Re: Bulletproof ethernet settings
« on: December 29, 2010, 08:16:00 PM »
You will want to connect the PC to the Galil via it's own network.  Meaning, that you really don't want a whole lot of other computers on the same network.  If you already have an Ethernet card in the PC and it's connected to say the internet or an internal network, you really need to install another Ethernet card to talk only to the Galil.  This way, other network traffic will never interfere with the communication to the Galil.

Choose an intranet number range such as 192.168.2.0  This is a class C network (netmask of 255.255.255.0) that can contain 254 hosts.  You will only need 2 host addresses.  One for the PC

For the PC, set the IP address to 192.168.2.1, netmask 255.255.255.0, no default gateway, no DNS server.  The default gateway is not needed as you will not be routing packets to any other network.  DNS is not needed as you can address the Galil using it's IP address, no names required.

For the Galil, set the IP address to 192.168.2.2 and nothing else is required for it.

Steve

1375
Galil / Re: Position or torque mode?
« on: December 29, 2010, 06:57:15 PM »
You can try Contour mode. It was specifically designed for the Accelera controllers.  But it has not been tested as much as the Linear Interpolation mode.  LI will work fine.

Steve

1376
Galil / Re: Spindle Control Through Galil Digital Output
« on: December 28, 2010, 12:24:43 PM »
Simply map the Mach 'S' axis to the Galil axis you want to use for the spindle control.  The click the "Spindle has encoder" check box and give the counts per revolution of the encoder and set the acceleration values.  The Galil will then drive that axis with a JG command.

Steve

1377
Galil / Re: Mach3 & Galil using stepper motor and encoder feedback
« on: December 28, 2010, 12:18:23 PM »
If you are running steppers from the Galil, then it is open loop as well.  To get closed loop, you will need to run servos.  There is no PID loop involved with stepper motors.  :(

Steve

1378
Galil / Re: Remot Pendent for Galil
« on: December 26, 2010, 11:01:39 PM »
In general, you would wire these buttons to an input.  And then you would use a Brain to take the appropriate action.  Have a look at the tutorials here: http://www.machsupport.com/videos/

Steve

1379
Galil / Re: Spindle Control Through Galil Digital Output
« on: December 26, 2010, 10:56:27 PM »
There is a pin mapping in the Galil Plugin PDF.  Simply locate the output pin number that corresponds with the Galil output that you want to use and put that pin number in for the Mach output signal.

Steve

1380
Galil / Re: Need Help with Galil Setup on DMC-1842
« on: December 24, 2010, 02:08:00 PM »
Abort is only brought to the Galil.  Meaning that it is not an input signal that get passed to Mach.  Simply jumper a wire from Abort to a general input of your choice and use that as your EStop in Mach.

Steve