CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-07-2008, 01:02 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road
M8 still not being red by EMC2

Hey guys, I'm still having this annoying problem that EMC won't read the m8 command. I have a CNC4PC multifunction BOB. Pin 1 in Stepconf is designated for the Coolant. When I "INVERT" the pin, plugging in my pump works. When it's normally set, no invert. It will not read M8. I simply open up my g-code and put in m8 and m9 and resave the file.

I'm not sure how too modify my Hal, All I know is too access stepfconf and change those things around, Pins, etc...

I really need it too work with m8 and m9. I don't like too plug and unplug it.


Please help,


-Jason
Reply With Quote

  #2   Ban this user!
Old 04-07-2008, 01:07 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

post your .hal file.
Reply With Quote

  #3   Ban this user!
Old 04-07-2008, 02:27 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

How do I access my Hal, I don't know where too go.

-Jason
Reply With Quote

  #4   Ban this user!
Old 04-07-2008, 02:45 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

easy way (windows users way )

go to the top menu bar - second menu over is 'Places'

open that up and you get a 'home folder' menu item. This is like a file broweser. It opens in your 'home' directory. (usually your name you setup).

There should be an 'EMC2' directory. Double click and it will open. Under that is usually 2 folders - Configs and NC_files. Double click on the 'Configs' directory. Under that should be a directory with the name of the config you pick from the list. Double click on that and your ini and hal files should be in that directory. Double clicking on either the hal or ini files should open them up in Gedit - a gui file editer. (it might ask you if you want to dispay or run in terminal - you want to display) You can make changes to them and save at this point.

For this purpose - open the hal file up in gedit and paste it here.

sam
Reply With Quote

  #5   Ban this user!
Old 04-07-2008, 04:35 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

Oh thanks! Will do!


-Jason
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-07-2008, 05:30 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

What a freaking pain, I don't have internet access in the shop. So i tried putting my files onto a disk and Linux is being stupid and won't let me, I'll have to try and figure out how too transfer them....Argh


-Jason
Reply With Quote

  #7   Ban this user!
Old 04-08-2008, 12:03 AM
 
Join Date: Jul 2006
Location: United States of America
Posts: 55
kirk_wallace is on a distinguished road

When I don't have a network available, I use a usb flash drive ,which are really inexpensive for usable sizes and sometimes transfer files to my camera.

Kirk, http://www.wallacecompany.com/machine_shop/
Reply With Quote

  #8   Ban this user!
Old 04-08-2008, 07:24 AM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

Wallace, thats what I use too transfer all my g-codes. It won't allow me too send it there!

Or copy it in....

-Jason
Reply With Quote

  #9   Ban this user!
Old 04-08-2008, 07:32 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by kirk_wallace View Post
and sometimes transfer files to my camera.
Write to the camera's memory card via usb? Must try that some time. Very ingeneous.

SpeedsCustom
cd/dvd or floppy? Both [i] should [i] work np. Not saying will work np. Computers can be obstinate beasts.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #10   Ban this user!
Old 04-08-2008, 10:36 AM
 
Join Date: Jul 2006
Location: United States of America
Posts: 55
kirk_wallace is on a distinguished road

So you can open a .hal or .ini file in your "/home/your_home/emc2/configs/your_config" in gedit, as described by samco above? But if you do something like "Save As" to your flash disk, it fails? What is the error message? Try bring up "/home/your_home/emc2/configs/your_config" as before but this time right-click on the .ini file, go to the bottom of the list and select "Properties", then "Permissions". See who is listed as "File owner" and "File Group". Your username should be there and not "root". Also check the "Owner", "Group" and "Others" check marks for "Read", "Write" and "Execute". "Owner" should have a check mark for "Write", all the "Read"'s should be checked. Then check the permissions for your flash drive. You will need to have "Write" permission to your drive. Another way to try this is to bring up a terminal session (Applications, Accessories, Terminal) and change to "root" with "sudo su -". Root has permission to do just about anything, so permission for a file copy should not be a problem. Let us know what error or other messages you get. You are our eyes and we can't help without being able to see.

Kirk, http://www.wallacecompany.com/machine_shop/
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-08-2008, 07:05 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

I'm working on this, give me like a day, I'm dealing with so many other things. I'll try and copy too a CD if the USB flash don't work.

It says error, cannot copy too device, it is a READY only???



-Jason
Reply With Quote

  #12   Ban this user!
Old 04-09-2008, 02:20 PM
SpeedsCustom's Avatar  
Join Date: Sep 2006
Location: US
Posts: 1,462
SpeedsCustom is on a distinguished road

Ok Now Were set:
PHP Code:
# Generated by stepconf at Mon Apr  7 18:14:08 2008
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt 
[EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg
=0x378
setp parport.0
.reset-time 4000
loadrt stepgen step_type
=0,0,0
loadrt charge_pump
net estop
-out charge-pump.enable <= iocontrol.0.user-enable-out
loadrt pwmgen output_type
=0

addf parport.0
.read base-thread
addf stepgen
.make-pulses base-thread
addf charge
-pump base-thread
addf pwmgen
.make-pulses base-thread
addf parport.0
.write base-thread
addf parport.0
.reset base-thread

addf stepgen
.capture-position servo-thread
addf motion
-command-handler servo-thread
addf motion
-controller servo-thread
addf stepgen
.update-freq servo-thread
addf pwmgen
.update servo-thread

net spindle
-cmd <= motion.spindle-speed-in => pwmgen.0.value
net spindle
-enable <= motion.spindle-on => pwmgen.0.enable
net spindle
-pwm <= pwmgen.0.pwm
setp pwmgen.0
.pwm-freq 100.0
setp pwmgen.0
.scale 1166.66666667
setp pwmgen.0
.offset -133.333333333

setp parport.0
.pin-01-out-invert 1
net coolant
-flood => parport.0.pin-01-out
net xstep 
=> parport.0.pin-02-out
setp parport.0
.pin-02-out-reset 1
net xdir 
=> parport.0.pin-03-out
net ystep 
=> parport.0.pin-04-out
setp parport.0
.pin-04-out-reset 1
setp parport.0
.pin-05-out-invert 1
net ydir 
=> parport.0.pin-05-out
net zstep 
=> parport.0.pin-06-out
setp parport.0
.pin-06-out-reset 1
setp parport.0
.pin-07-out-invert 1
net zdir 
=> parport.0.pin-07-out
net astep 
=> parport.0.pin-08-out
setp parport.0
.pin-08-out-reset 1
net adir 
=> parport.0.pin-09-out
net estop
-out => parport.0.pin-14-out
net spindle
-pwm => parport.0.pin-16-out
net charge
-pump => parport.0.pin-17-out


setp stepgen.0
.position-scale [AXIS_0]SCALE
setp stepgen.0
.steplen 1
setp stepgen.0
.stepspace 0
setp stepgen.0
.dirhold 45300
setp stepgen.0
.dirsetup 45300
setp stepgen.0
.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos
-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos
-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep 
<= stepgen.0.step
net xdir 
<= stepgen.0.dir
net xenable axis.0
.amp-enable-out => stepgen.0.enable

setp stepgen.1
.position-scale [AXIS_1]SCALE
setp stepgen.1
.steplen 1
setp stepgen.1
.stepspace 0
setp stepgen.1
.dirhold 45300
setp stepgen.1
.dirsetup 45300
setp stepgen.1
.maxaccel [AXIS_1]STEPGEN_MAXACCEL
net ypos
-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos
-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net ystep 
<= stepgen.1.step
net ydir 
<= stepgen.1.dir
net yenable axis.1
.amp-enable-out => stepgen.1.enable

setp stepgen.2
.position-scale [AXIS_2]SCALE
setp stepgen.2
.steplen 1
setp stepgen.2
.stepspace 0
setp stepgen.2
.dirhold 45300
setp stepgen.2
.dirsetup 45300
setp stepgen.2
.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos
-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos
-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep 
<= stepgen.2.step
net zdir 
<= stepgen.2.dir
net zenable axis.2
.amp-enable-out => stepgen.2.enable

net estop
-out <= iocontrol.0.user-enable-out
net estop
-out => iocontrol.0.emc-enable-in

loadusr 
-W hal_manualtoolchange
net tool
-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool
-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool
-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool
-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared 


PHP Code:
# Generated by stepconf at Mon Apr  7 18:14:08 2008
# If you make changes to this file, they will be
# overwritten when you run stepconf again

[EMC]
MACHINE Taig
NML_FILE 
emc.nml
DEBUG 
0

[DISPLAY]
DISPLAY axis
POSITION_OFFSET 
RELATIVE
POSITION_FEEDBACK 
ACTUAL
MAX_FEED_OVERRIDE 
1.2
INTRO_GRAPHIC 
emc2.gif
INTRO_TIME 
5
PROGRAM_PREFIX 
= /home/speedscustom/emc2/nc_files
INCREMENTS 
.1in .05in .01in .005in .001in .0005in .0001in
PYVCP 
panel.xml

[TASK]
TASK milltask
CYCLE_TIME 
0.010

[RS274NGC]
PARAMETER_FILE emc.var

[
EMCMOT]
EMCMOT motmod
SHMEM_KEY 
111
COMM_TIMEOUT 
1.0
COMM_WAIT 
0.010
BASE_PERIOD 
100000
SERVO_PERIOD 
1000000

[HAL]
HALFILE Taig.hal
HALFILE 
custom.hal
POSTGUI_HALFILE 
custom_postgui.hal

[TRAJ]
AXES 3
COORDINATES 
X Y Z
LINEAR_UNITS 
inch
ANGULAR_UNITS 
degree
CYCLE_TIME 
0.010
DEFAULT_VELOCITY 
0.10
MAX_LINEAR_VELOCITY 
0.30

[EMCIO]
EMCIO io
CYCLE_TIME 
0.100
TOOL_TABLE 
tool.tbl

[AXIS_0]
TYPE LINEAR
HOME 
5.98
MAX_VELOCITY 
0.3
MAX_ACCELERATION 
30.0
STEPGEN_MAXACCEL 
31.5
SCALE 
4000.0
FERROR 
0.05
MIN_FERROR 
0.01
MIN_LIMIT 
0.1
MAX_LIMIT 
11.9
HOME_OFFSET 
5.98

[AXIS_1]
TYPE LINEAR
HOME 
3.0
MAX_VELOCITY 
0.3
MAX_ACCELERATION 
30.0
STEPGEN_MAXACCEL 
31.5
SCALE 
4000.0
FERROR 
0.05
MIN_FERROR 
0.01
MIN_LIMIT 
0.1
MAX_LIMIT 
6.0
HOME_OFFSET 
3.0

[AXIS_2]
TYPE LINEAR
HOME 
0.25
MAX_VELOCITY 
0.2
MAX_ACCELERATION 
25.0
STEPGEN_MAXACCEL 
26.25
SCALE 
4000.0
FERROR 
0.05
MIN_FERROR 
0.01
MIN_LIMIT 
= -6.0
MAX_LIMIT 
0.26
HOME_OFFSET 
0.25 


Now this should be good! Thanks for helping!
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EMC2 to diy CNC dakiller322 LinuxCNC (formerly EMC2) 11 10-05-2007 12:16 AM
How to install EMC2 cut more LinuxCNC (formerly EMC2) 11 07-18-2007 08:19 AM
Emc2 sdantonio Mach Mill 2 02-05-2007 02:26 PM
emc2 -hal*? essa LinuxCNC (formerly EMC2) 3 05-27-2006 12:06 PM
emc2 heilcnc LinuxCNC (formerly EMC2) 2 05-23-2006 05:03 PM




All times are GMT -5. The time now is 03:02 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361