NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

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
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum HAL HAL Components Start and Stop sampler

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

TOPIC: Start and Stop sampler

Start and Stop sampler 08 Мар 2012 04:27 #18457

  • Fremder
  • Fremder's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 45
  • Karma: 0
Hi,

i have a litle problem :-)

to start the
sampler.0.enable 1
to end
sampler.0.enable 0

nice and ok. ...

to make a exact START and STOP i search for a PIN and the count its to set.

# if sampler.sample-num > 1000 then sampler.enabled 0

when i make a timing for 1000 steps then the sampler.sample-num goes from 0 to ... 1000
its there = 1000 then the sampler "must" be stoped with sampler.enabled 0

*g*
yes its not verry nice code from me (I am ashamed)

i started with in gcode with M171 and finish with M172 at the end from gcode.
then i have linear-way's there was >insinde< 1000 steps but sometimes
the drive is a little slower and then the sampler overruns

# if sampler.sample-num > 1000 then sampler.enabled 0
i think this make a autoStop :-)
Last Edit: 08 Мар 2012 05:00 by Fremder.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.812 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.