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  
Old 07-03-2008, 10:03 AM
*Registered User*
 
Join Date: Mar 2006
Location: USA
Posts: 49
ozturbo is on a distinguished road
Assigning pins on mesa 7i37

Hello,
I have what may be a dumb question, I have read through the entire Hal tutorial
and looked at all the configuration files for setting up the Mesa 5i20 but I can't figure out how to assign certain pins to functions. Say I want to have pin 1 and 2 for the estop circuit on the 7i37. How do I do this?
Reply With Quote

  #2   Ban this user!
Old 07-03-2008, 05:59 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

I'm not exactly sure what you're asking, but I'll try to answer.

I assume you're using the m5i20 driver with the Hostmot-4 firmware. The pinouts are given in the EMC2 Integrator Manual, in section 15.5.4. Looks like P3 and P4 have the digital I/O pins.

The physical pins on the connector are mapped to HAL pins. For example, pin 1 on P3 is mapped to the HAL pin called "in-00", and pin 33 on P3 is mapped to "out-00".

Does that help?
Reply With Quote

  #3  
Old 07-03-2008, 06:33 PM
*Registered User*
 
Join Date: Mar 2006
Location: USA
Posts: 49
ozturbo is on a distinguished road

I guess maybe I just have more reading, I kept looking for something like choosing pin 2 on P3 is estop and pin 4 on P3 is x home or something, like how i setup the pins in mach 3.
Reply With Quote

  #4  
Old 07-03-2008, 09:31 PM
*Registered User*
 
Join Date: Mar 2006
Location: USA
Posts: 49
ozturbo is on a distinguished road

Ok so I reread the section you provided, I think I understand better the hal code would be something like this correct? m5i20.1.digital-in-00, if it is correct how would I then make emc recognize this as the estop circuit. Thanks
Reply With Quote

  #5   Ban this user!
Old 07-03-2008, 10:43 PM
Seb Seb is offline
 
Join Date: Jan 2006
Location: USA
Posts: 58
Seb is on a distinguished road

E-stop pins are in section 5.3 of the EMC2 Integrator Manual I pointed you to before. You should read that document and the HAL User Manual cover to cover, it should help you get started.

So for example, if you wanted a digital input pin on the 7i37 to signal an externally-detected E-stop condition to EMC, you'd tell HAL something like this:

net estop m5i20.0.in-00 => iocontrol.emc-enable-in

That assumes the external estop is active high. If the digital input goes low, the emc-enable-in pin will go low and estop emc. Use m5i20.0.in-00-not if the external signal is active low.

Similarly for emc signaling estop out:

net iocontrol.user-enable-out => m5i20.0.out-00

user-enable-out is high when emc (or the emc user) wants the machine to be running, and low when emc wants to estop the machine.

I just noticed that there are some m5i20 pins for estop, but I dont know what they do.

Hope this helps, you might try asking on the emc-users mailing list if you have more questions, it gets more eyeballs than this forum.
Reply With Quote

Sponsored Links
  #6  
Old 07-23-2008, 11:20 AM
*Registered User*
 
Join Date: Mar 2006
Location: USA
Posts: 49
ozturbo is on a distinguished road

Ok, I have one last question, I hope. I wired the estop as the pinout says to in the 5120 file but if I press the button emc doesn't recognize anything happened.
Do i need power in the circuit?
Reply With Quote

  #7   Ban this user!
Old 07-23-2008, 09:51 PM
 
Join Date: Feb 2008
Location: USA
Posts: 106
PCW_MESA is on a distinguished road

Originally Posted by ozturbo View Post
Ok, I have one last question, I hope. I wired the estop as the pinout says to in the 5120 file but if I press the button emc doesn't recognize anything happened.
Do i need power in the circuit?
A couple of things:

The 7I37 inverts input signals so you may need to invert the sense of the input logic (use the .not input)

and yes, the 7I37 inputs sense voltage so you must supply an external voltage (4 to 24 VDC) to the input pins for the input to be detected. Also the 7I37 inputs are polarized, reversed inputs will not work.


Peter Wallace
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
How to Increase Speed with Mesa and EMC TZak LinuxCNC (formerly EMC2) 1 04-01-2008 01:44 AM
Mesa 7i37 output wiring 123CNC LinuxCNC (formerly EMC2) 3 03-05-2008 12:49 PM
Mesa de coodenadas. Mentus Spanish CNCzone 3 12-11-2007 04:34 PM
using VSD-A with mesa anythingio card daedalus Granite Devices 5 11-03-2007 07:08 PM
Mesa 5i20 and EMC daedalus LinuxCNC (formerly EMC2) 6 06-27-2007 02:19 PM




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