NEWS
LinuxCNC 2.5.4 Release
LinuxCNC 2.5.4 Update Released (changelog).
 
LinuxCNC 2.5.3 Release
LinuxCNC 2.5.3 Update Released (changelog).
 
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 

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
  • OFFLINE
  • 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
and
/ O100 ENDREPEAT
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
  • OFFLINE
  • Moderator
  • Posts: 5377
  • Thank you received: 352
  • Karma: 154
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
  • OFFLINE
  • Administrator
  • Posts: 5690
  • Thank you received: 204
  • Karma: 154
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:
www.linuxcnc.org/docview/html/gcode_main.html#sec:M100-to-M199:

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