Analog Output or Spindle Ladder Control
23 Jul 2009 11:07 #613
by Lccora
Analog Output or Spindle Ladder Control was created by Lccora
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
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
Please Log in or Create an account to join the conversation.
24 Jul 2009 02:41 #620
by cmorley
Replied by cmorley on topic Re:Analog Output or Spindle Ladder Control
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.
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.
Please Log in or Create an account to join the conversation.
24 Jul 2009 10:34 #621
by Lccora
Replied by Lccora on topic Re:Analog Output or Spindle Ladder Control
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.
Please Log in or Create an account to join the conversation.
24 Jul 2009 17:11 #622
by cmorley
Replied by cmorley on topic Re:Analog Output or Spindle Ladder Control
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?
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 following user(s) said Thank You: Adam Maszynotwór
Please Log in or Create an account to join the conversation.
25 Jul 2009 12:32 - 25 Jul 2009 12:40 #625
by Lccora
Replied by Lccora on topic Re:Analog Output or Spindle Ladder Control
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
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 12:40 by Lccora.
Please Log in or Create an account to join the conversation.
25 Jul 2009 14:36 #626
by cmorley
Replied by cmorley on topic Re:Analog Output or Spindle Ladder Control
Sorry I know very little about O words and subroutine calls. Start a new thread on that.
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds