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

TOPIC: GladeVCP

Re:GladeVCP 20 Set 2011 04:09 #13324

  • psha
  • psha's Avatar
  • OFFLINE
  • Moderator
  • Posts: 107
  • Karma: 22
Count of what? There are no bit-labels but I can hardly imagine use case for them.
For bit pins use leds, for float or number - labels.
The administrator has disabled public write access.

Re:GladeVCP 20 Set 2011 05:14 #13325

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
sorry, didn't explain it too well i guess. i'm trying to use a MDI to call a script counter.(attached)
in pyvcp i have halui.mdi-command-05 pin in the hal configuration. this is connected to
MDI_COMMAND = M123 in my axis. every time emc gets to m123, it increases the count..
i want a pin/signal to show the count.


Thanks
kenneth

This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 20 Set 2011 05:15 by piasdom.
The administrator has disabled public write access.

Re:GladeVCP 20 Set 2011 06:08 #13327

  • psha
  • psha's Avatar
  • OFFLINE
  • Moderator
  • Posts: 107
  • Karma: 22
replace pyvcp.count with gladevcp.hal_label_count in M123
The administrator has disabled public write access.

Re:GladeVCP 20 Set 2011 07:35 #13330

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
THANKS ! that was dumb of me.
but i still get the error about bit and s32/float/u32.



Thanks
kenneth
The administrator has disabled public write access.

Re:GladeVCP 20 Set 2011 09:52 #13332

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
the action MDI prop is named gladevcp.MDI_M124_count and i have the below in my posthal.hal.
gladevcp.M124_count is the name of the hal label in glade. i get the error msg that
pin does not exist. is it possible at ALL to get a bit in glade ?
just yes or no will be fine :)


net MDI_Count conv-bit-u32.2.in == gladevcp.MDI_M124_count
net Count_out conv-bit-u32.2.out == gladevcp.M124_count


Thanks
kenneth
Last Edit: 20 Set 2011 09:57 by piasdom.
The administrator has disabled public write access.

Re:GladeVCP 20 Set 2011 11:12 #13334

  • piasdom
  • piasdom's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 537
  • Karma: 2
well i came up with the below. emc starts and the reset button works
do get error msg when clicking reset during program run. the pins/signals
show in HAL configuration. but it doesn't count M124.


net MDI_Count conv-bit-u32.2.in == halui.mdi-command-06
net Count_out conv-bit-u32.2.out == gladevcp.M124_count
net Reset_count halui.mdi-command-05 gladevcp.Reset_M124



Thanks
kenneth

i change he text template and the difference shows in axis.
Last Edit: 20 Set 2011 11:23 by piasdom.
The administrator has disabled public write access.
Moderators: mhaberler
Time to create page: 1.660 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.