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 Problem to run a program with external cycle start

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

TOPIC: Problem to run a program with external cycle start

Re:Problem to run a program with external cycle start 06 Jan 2011 23:54 #6503

  • ioiotutu
  • ioiotutu's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 30
  • Karma: 1
Many thanks.
The administrator has disabled public write access.

Re:Problem to run a program with external cycle start 17 Mai 2011 04:41 #9866

  • czerech
  • czerech's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 1
sorry for digging that topic, but i have queastion about it.

I made remrun button and its work fine. Problem is, that i can in middle of the program start it from beginning.

How i can configure it to, only allow run program when machine end previous one?

regards,
Piotr
The administrator has disabled public write access.

Re:Problem to run a program with external cycle start 23 Mai 2011 10:11 #9999

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4136
  • Thank you received: 141
  • Karma: 130
Possibly with HAL "and2" and "not" functions.
ie, cycle-start <= pyvcp-button AND (NOT program-is-running)
The administrator has disabled public write access.

Re:Problem to run a program with external cycle start 24 Mai 2011 11:22 #10029

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
don't know what a remrun button is but i have this example you
may be able to use. it's a home x axis button. i can only use it while
nothing is running.(thanks BigJohnT) . while my program is
running, i can click it and nothing happens. hope this helps.

xml
<button>
<relief>RAISED</relief>
<halpin>"just-home-x"</halpin>
<text>"Zero X"</text>
<font>('Helvetica',16)</font>
<fg>"midnightblue"</fg>
<bd>2</bd>
</button>

custom_postgui.hal
net home-x-btn and2.0.in0 == pyvcp.just-home-x
net home-x halui.joint.0.home == and2.0.out
net hom-in-man and2.0.in1 halui.mode.is-manual

custom.hal
loadrt and2 count=10
addf and2.0 servo-thread
addf and2.1 servo-thread
addf and2.2 servo-thread
addf and2.3 servo-thread
addf and2.4 servo-thread
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 7.362 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.