Petr Jakeš wrote: > Hi, > I am looking for the way how to get the PWM signal using PC and command > line only (no GUI). > Using the EMC software looks like a promising way. > > Can you please let me know foloowing: > > 1. Does EMC work in the command line only? > > 2. which max PWM frequency is possible to expect on the parallel port > using EMC software? > > 3. Are there some other ways how to generate PWM signal using PC > without additional HW? >
It's not clear exactly what you want to do. EMC is a machine controller that takes g-code and does coordinated motion of multiple axes. PWM is a simple signal that is one small part of controlling a single axis. EMC (when running G-code) doesn't normally work from the command line only, although I think Jeff wrote something called 'jdi' (short for 'just do it') which when given a g-code program just runs is. No homing, no jogging, etc. On the other hand, if you really only want to generate some PWM signals, and are not interested in g-code or position loops or counting encoder pulses, then you can use HAL alone to do that. You should look at the HAL manual, and especially the tutorials, which use the command line to set up simple HAL systems. pdf is here: http://www.linuxcnc.org/docs/HAL_Documentation.pdf html here: http://linuxcnc.org/docview/html/ There are some significant frequency and resolution limits on software generated PWM though. In general you trade off frequency and resolution, and neither will be very high compared to hardware solutions. For more info about HAL's software based PWM generator see http://www.linuxcnc.org/docview/html//hal_rtcomps.html#sec:PWMgen There are also hardware based pwm generators supported by HAL that can be controlled from the command line (using halcmd) independently of EMC. Regards, John Kasunich ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
