2.6 Live+Install image

Announcing a new Live+Install DVD image for installing LinuxCNC 2.6 on Debian Wheezy. Instructions here.

2.6.8 is released

Get it while it's hot!  This fixes several bugs, all users are encouraged to upgrade.  Full changelog here.

LinuxCNC 2.6.7 is released!

This release contains a single bug fix for a problem that was introduced into the Axis GUI in release 2.6.6.


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

TOPIC: parts counter

Re:parts counter 13 Feb 2011 15:09 #7175

  • M4MazakUser
  • M4MazakUser's Avatar
  • Senior Boarder
  • Posts: 76
  • Karma: 6
Ok, im currently trying to get an M1xx code working. you see, i normally load 4.5metre bars into the machine and run off as many parts as needed, i have the "out of bar" switch connected up to
net outa_bar <= halui.program.block-delete.on
makes it stop in such a situation.
But !
i want to be able to set a value while the program is running, not have to rely on the
/ O100 REPEAT [12]
value, giving me the ability to have a visible display on how many parts to go, and even possibly work out how long.

p.s. having a lot of trouble trying to make an m1xx code work, it was much easier when they are hooked up to "actual" pins.
Last Edit: 13 Feb 2011 17:33 by M4MazakUser.
The administrator has disabled public write access.

Re:parts counter 14 Feb 2011 00:01 #7178

  • andypugh
  • andypugh's Avatar
  • Moderator
  • Posts: 7140
  • Thank you received: 709
  • Karma: 194
Would it help to use a DO / WHILE loop and an actual counting variable? You would need to link the variable to an analogue output and write to it each time round the loop if you wanted to display it in a PyVCP panel.

Perhaps we need to decide what you want to happen, then figure out how to make it happen? Currently I think that process is being reversed.
The administrator has disabled public write access.

Re:parts counter 14 Feb 2011 07:04 #7182

  • BigJohnT
  • BigJohnT's Avatar
  • Administrator
  • Posts: 6230
  • Thank you received: 321
  • Karma: 168
Could you create a small parts counter component with the needed pins and toggle one pin for each loop somehow to count the parts? I'm not at a computer with EMC so I can't test this idea. Just thinking out loud...

What troubles are you having with M1xx?

Examples here:

Last Edit: 14 Feb 2011 07:06 by BigJohnT.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.776 seconds
Powered by Kunena Forum
© 2015
Joomla! is Free Software released under the GNU General Public License.