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 02-16-2009, 08:14 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road
Changing M5i20 Output signals

Ok getting closer to getting this machine working however.

Here is my situation.

I have EstopWrite hooked up to a relay to my amps. So if there is a failure to the system power is stopped to the amps. At least that what the comments are on the mesa_io.hal file tell me. However I am getting no output signal on m5i20.0.out-07. Please if someone has an idea of how I can hook this up correctly it would be appreciated. Or should I connect this to a different output.

Here is the current area of the code that I am trying to modify.

# Connect e-stop write/sense to I/O controller.
#
# The estop from the opto module should be jumpered to one of the
# m5i20 estop pins. This will notify the motion of the estop condition
# and it will zero the DACs and turn off all output even if the PC
# has crashed.
#
newsig EstopSense bit
newsig EstopWrite bit
# create a signal for the estop loopback -- remove for external
#linkpp iocontrol.0.user-enable-out iocontrol.0.emc-enable-in


# use this if you have an external estop switch
#linksp EstopSense <= m5i20.0.estop-in-not
linksp EstopSense <= m5i20.0.in-15-not
linksp EstopSense => iocontrol.0.emc-enable-in
linksp EstopWrite => m5i20.0.out-07
linksp EstopWrite <= iocontrol.0.user-enable-out


Also does anyone know how to invert a output signal on the mesa. I also need to change the spindle output from 3.5v at startup which it is now, to 0v. And then when I run the program my relay can turn on the spindle.

Here is that code from the mesa_io.hal

# Connect spindle fwd/rev to I/O controller.
newsig SpindleFwd bit
linksp SpindleFwd => m5i20.0.out-00
linksp SpindleFwd <= motion.spindle-forward

The current system is running emc2 2.2.8 on Ubuntu 8.04

I hope this makes sense and someone can help.
Reply With Quote

  #2   Ban this user!
Old 02-17-2009, 12:28 PM
 
Join Date: Oct 2008
Location: USA
Posts: 78
DonnieET is on a distinguished road

Hi

I'm fairly new at this too. Are you getting any outputs? I haved a problem with the watchdog not get set the file I started with had watchdog commented out.

On inverting the output is something like this

Setp m5i20.0.out-00.invert 1

Mine is a little different in that I use the 5i23 with a 7i33 and 7i37 card and the hostmot2 driver were you have the orginal hostmot witch I should have used.

Donnie
Reply With Quote

  #3   Ban this user!
Old 02-17-2009, 07:09 PM
 
Join Date: Oct 2006
Location: USA
Posts: 205
123CNC is on a distinguished road
I said STOP!

Bringing back fond memories.

I am not using HOSTMOT2, rather the default (older) EMC 5i20 configuration. To invert an input just add '-not' to the signal.

Here are the modifications I made to make a functional e-stop.

# Connect amp enables to motion controller.
linksp Xenable => m5i20.0.out-03
linksp Yenable => m5i20.0.out-09
linksp Zenable => m5i20.0.out-04

# Connect amp enables to m5i20 dac enables
linksp Xenable => m5i20.0.dac-00-enable
linksp Yenable => m5i20.0.dac-01-enable
linksp Zenable => m5i20.0.dac-02-enable

# use this if you have an external estop switch
linksp EstopSense <= m5i20.0.in-15-not
linksp EstopWrite <= m5i20.0.in-15
linksp EstopSense => iocontrol.0.emc-enable-in
linksp EstopSense => m5i20.0.out-07

I am not using the watchdog.

The amp enables get tied into the internal e-stop logic. I also tie the amp's ac power to the m5i20.0.out-07 signal, physically. The enables only should cover you, but I like to kill power all the way down to life support on an e-stop, i.e. controller only thing alive.

In my case, I don't believe the EstopWrite has any functionality.

This part just didn't make any sense to me,
linksp EstopWrite => m5i20.0.out-07
linksp EstopWrite <= iocontrol.0.user-enable-out


Reply With Quote

  #4   Ban this user!
Old 02-17-2009, 09:26 PM
 
Join Date: Oct 2008
Location: USA
Posts: 78
DonnieET is on a distinguished road
Talking

With Hostmot2 you have no choice on the watchdog, pet it or die.
Reply With Quote

  #5   Ban this user!
Old 02-17-2009, 09:31 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

It's a bummer that first example hostmot2 config had the watchdog commented out in the .hal file... I think that confused lots of folks.

The new hostmot2 configs in 2.3 all have the watchdog working right.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-18-2009, 12:35 AM
 
Join Date: Oct 2006
Location: USA
Posts: 205
123CNC is on a distinguished road
New dog?

Originally Posted by DonnieET View Post
With Hostmot2 you have no choice on the watchdog, pet it or die.


How about, 'my watchdog doesn't bite...that's not MY watchdog.'

The last post sounds like the 'watchdog' Donnie was referring to got hauled to the pound.

I have a 5i23? board waiting in the wings for a future install on another machine, but want to allow others the golden oppurtunity to blaze a new trail. So PLEASE keep us updated with your journeys.
Reply With Quote

  #7   Ban this user!
Old 02-18-2009, 12:43 PM
 
Join Date: Oct 2008
Location: USA
Posts: 78
DonnieET is on a distinguished road
Talking

123CNC

The thing about that watch dog, he was one of the silent type never heard or saw him just felt the bite

Donnie
Reply With Quote

  #8   Ban this user!
Old 02-21-2009, 04:50 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

Ok I have an update

I figured out how to do the invert output

setp m5i20.0.out-00-invert 0 or 1

thanks everyone for the help


so I have all my safety signals working correctly and also the spindle. The problem now is I am not get a PID on the X and Z channels. I have checked and I am just getting a High signal on the X and Z.

I know all my amps are working as I have switched the working y axis to the two other channels and it works.

The only thing I can think of is the mesa 5i20 board has a problem. Mind you I am getting all the other outputs and inputs working on it? If someone knows how I can test the card to see if it is in working order. I know all my settings work as I have had this system working to cutting parts.

Again help is always appreciated
Reply With Quote

  #9   Ban this user!
Old 02-21-2009, 08:39 PM
 
Join Date: Nov 2005
Location: Canada
Posts: 465
chester88 is on a distinguished road

Here is a test panel:
http://wiki.linuxcnc.org/cgi-bin/emc...vcp_Test_Panel
Reply With Quote

  #10   Ban this user!
Old 02-21-2009, 08:55 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

How do you set up the test panel correctly?
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-21-2009, 09:22 PM
 
Join Date: Feb 2008
Location: USA
Posts: 106
PCW_MESA is on a distinguished road

Originally Posted by TZak View Post
Ok I have an update

I figured out how to do the invert output

setp m5i20.0.out-00-invert 0 or 1

thanks everyone for the help


so I have all my safety signals working correctly and also the spindle. The problem now is I am not get a PID on the X and Z channels. I have checked and I am just getting a High signal on the X and Z.

I know all my amps are working as I have switched the working y axis to the two other channels and it works.

The only thing I can think of is the mesa 5i20 board has a problem. Mind you I am getting all the other outputs and inputs working on it? If someone knows how I can test the card to see if it is in working order. I know all my settings work as I have had this system working to cutting parts.

Again help is always appreciated

Our experience is that a failed (damaged by excessive I/O voltage) 5I20 card will almost always completely fail (will not even configure). Having just a few bad I/O bits is possible but really unlikely. If you can configure the card and the majority of I/O works, It is most likely your problem lies elsewhere.

If you can boot DOS or Windows (requires driver installation) on your test computer, we can supply a GPIO or loop-back test program. Or you can send the card back to us for evaluation and repair/replacement if needed.

Another way to check for open/damaged I/O pins is to use a Digital Volt Meter (DVM) that has a diode check function. Unplug the 5I20 card from the PC and remove all 50 pin cables, then with the DVM set to diode-check function, connect the positive DVM lead to 5I20 ground and check each of the I/O pins. They should all have similar voltage drops (~.5v), a bad pin will normally show open or shorted (higher or lower than a diode drop voltage) You are checking the I/O protection diodes in the FPGA
Reply With Quote

  #12   Ban this user!
Old 02-21-2009, 09:49 PM
 
Join Date: Mar 2007
Location: Canada
Posts: 50
TZak is on a distinguished road

if you could let me know how to get a test program that would be great.

I have downloaded the support software on the mesa electronicssite, however Im not exactly sure how to test the board,

I have a spare windows machine that I can check it on I just need to know how to configure the software to test it.

If you could let me know what I need that would be great.

thanks.
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
M5i20 & spindle control albova LinuxCNC (formerly EMC2) 2 05-12-2008 06:00 AM
Help Changing VQC inout/output Moparmatty Haas Visual Quick Code 5 03-12-2008 11:36 AM
Need Help!- Changing Arc Output? Moparmatty Mastercam 6 01-30-2008 08:34 AM
parallel port settings/output signals TMaster Xylotex 6 04-23-2006 11:16 PM
To convert Quadrature Encoder signals to Tachogenerator signals Babar General Electronics Discussion 4 02-21-2006 12:05 AM




All times are GMT -5. The time now is 05:32 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