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.
 

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

TOPIC: parts counter

parts counter 09 Fév 2011 21:14 #7101

  • M4MazakUser
  • M4MazakUser's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 76
  • Karma: 6
any ideas on a pin i can link to to make a parts counter?
i cant find any linked to "m02"
The administrator has disabled public write access.

Re:parts counter 10 Fév 2011 00:23 #7106

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4103
  • Thank you received: 139
  • Karma: 129
I can think of a number of ways to do it using a snippet of G-code in the files, I assume this isn't an option?

Can you use the halui.program.is-running pin? linuxcnc.org/docs/html/gui_halui.html#r1_2_15
The administrator has disabled public write access.

Re:parts counter 10 Fév 2011 14:28 #7117

  • M4MazakUser
  • M4MazakUser's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 76
  • Karma: 6
i really wanted it to work so as i could get a signal on every " / O100 ENDREPEAT " line, then the program would simply stop at a specific count. ( i already have "net outa_bar <= halui.program.block-delete.on" hooked up to stop pgm when the barfeeder is out) it would be nice to be able to preset an amount of parts when i load up a 5.5mtr length of bar! anyway, i geuss i can use a m1xx code, just was looking to make it invisible to the programmer thats all.

is the repeat number available anywhere?
Last Edit: 10 Fév 2011 14:38 by M4MazakUser.
The administrator has disabled public write access.

Re:parts counter 10 Fév 2011 14:47 #7119

  • M4MazakUser
  • M4MazakUser's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 76
  • Karma: 6
i also tried using "net line_number => motion.program-line", but it is erratic and jumps to "0" while changing tools. it also is wrong, as i would have to compare it to line 10, or wherever the repeat starts from.
The administrator has disabled public write access.

Re:parts counter 10 Fév 2011 15:29 #7122

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4944
  • Thank you received: 85
  • Karma: 134
You could set up a pyvcp preset counter and stop the program with halui after the specified number of parts have been reached perhaps using a M1xx to increment a part counter and do the compare to the preset counter.

John
The administrator has disabled public write access.

Re:parts counter 11 Fév 2011 00:04 #7133

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4103
  • Thank you received: 139
  • Karma: 129
M4MazakUser wrote:
is the repeat number available anywhere?

I am fairly sure that it isn't. I suspect that EMC2 itself has no idea how many times it has been round the loop.

I wonder if a better idea would be a switch on the barfeeder hooked into a G-code digital input?

O100 DO
<stuff>
O100 WHILE [Barfeeder not empty]
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 1.423 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.