NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC ClassicLadder Analog Output or Spindle Ladder Control

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Analog Output or Spindle Ladder Control

Analog Output or Spindle Ladder Control 23 Jul 2009 04:07 #613

  • Lccora
  • Lccora's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
I need use one analog outpout in classic ladder. I thought of using the exit spindle, but, what I control the spindle spped wich classic ladder?

my analog output should be controlled by the ladder and also a line of the program, with time of use should increase the speed of increase, and also can put different speeds in each line of the program


Thanks

Luciano
The administrator has disabled public write access.

Re:Analog Output or Spindle Ladder Control 23 Jul 2009 19:41 #620

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1520
  • Thank you received: 41
  • Karma: 89
I'm sorry I don't really understand what you want to do.
What type of machine are you trying to operate?
Why do you need ladder to process the spindle speed?
One thing else to note is that CL converts float pins to integers internally - I don't think that is a problem with spindle speed though - as long as you use RPM instead of RPS.
The administrator has disabled public write access.

Re:Analog Output or Spindle Ladder Control 24 Jul 2009 03:34 #621

  • Lccora
  • Lccora's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Actually, I use the PWM output to control the pressure of sand, this sand has a desgates over time. for this have to create a logical with a timer that will increase the pressure on the piece of sandpaper.
The administrator has disabled public write access.

Re:Analog Output or Spindle Ladder Control 24 Jul 2009 10:11 #622

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1520
  • Thank you received: 41
  • Karma: 89
Ok I think this is what you are trying to do:

Use EMC's S (spindle speed) code to control the pressure of sandpaper.
Use Classicladder to multiply the pressure factor with time
output Cl's computed pressure to a pwm component.

This pin will get you EMC's S code number:

motion.spindle-speed-out

It is a float pin so you must connect it to CL's float in pin:

classicladder.0.floatin-00

use the command:

net raw-pressure motion.spindle-speed-out => classicladder.0.floatin-00

now in CL variable %IF0 will track the S code number.

Is this helping? is this what you want to do?
The administrator has disabled public write access.

Re:Analog Output or Spindle Ladder Control 25 Jul 2009 05:32 #625

  • Lccora
  • Lccora's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Thank you for help, but I get the logic within the same EMC, using the variables and # IF, ELSE, WHILE ... etc What we need now is some form of a variable load in the time of procedure, or something that generates a clock while running the program. It can do with the increase of pressure against time.
Another question is on call files. Subroutines without problems, but I can not call other files, and no error appears. Say I have 2 files. the 20.ngc and 40.ncg. the 20 should call the 40, then add internal 'o <40> call "is anyway? and 40 in the program, I write something?

I read something about PROGRAM_PREFIX, I have to declare something where?

Thanks

Luciano
Last Edit: 25 Jul 2009 05:40 by Lccora.
The administrator has disabled public write access.

Re:Analog Output or Spindle Ladder Control 25 Jul 2009 07:36 #626

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1520
  • Thank you received: 41
  • Karma: 89
Sorry I know very little about O words and subroutine calls. Start a new thread on that.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.755 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.