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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-04-2005, 08:55 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road
turret encoder

I've attached two files:

1) a picture of the turret encoder on my Hardinge CHNC
2) the Electrical print of the encoder.

I've not seen or dealt with a device that looks like this before.

I need to get turret position into Camsoft. Looking at this print, is it as simple as connecting A B C D to four inputs on the Opto 22 board? Then decode position as four bits of base 2? (I'm curious; there's eight turret locations - 3 bits would be enough) Assuming this encoder is still working, that is.

Or should I replace this device with something else? What? FWIW, I'm using a 1840 Galil card and have an extra axis available for the turret. I'm out of inputs and would prefer to use an encoder. But the only was I see this working would require homing the turret on every startup.

Karl
Attached Thumbnails
Click image for larger version

Name:	encoder print.JPG‎
Views:	127
Size:	43.3 KB
ID:	12503   Click image for larger version

Name:	encoder pic.JPG‎
Views:	158
Size:	48.1 KB
ID:	12504  
Reply With Quote

  #2  
Old 12-04-2005, 09:48 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,532
Al_The_Man is on a distinguished road
Buy me a Beer?

It looks like eight hall effect ic's , but the picture is blurry, normally four bits would give you up to 16 inputs, so you should be able to decode a binary pattern from them for 8 positions, they may already have pull up resistors, but you may have to reverse engineer the electronics to find out what type of output the sensors have, for interfacing to the opto's.
You would not need to home with this arrangement, with an encoder you would have to.
BTW have you used the Galil general inputs? these can be used on 5v or 24v isolated inputs.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 12-04-2005, 09:59 AM
 
Join Date: Apr 2005
Location: usa
Posts: 51
Carlo Rechi is on a distinguished road

Mr. Karl,

To me I dont understand this encoder so much. I think this is not a normal encoder from the wiring. The encoder is ABCD bits like an old time optical eye counter. Al said this would be 16 bits. This is right. You need all 16 bits not just use a few cause the binary pattern would not be the same.

I have seen binary bit macros and turret routines in the Camsoft system that would work but I dont know if I can post these from their books cause it said copyright. I have asked Camsoft for many routines and help before and they have been very nice to me. You should ask if they have something like this.

If you are out of inputs you can find a cheap encoder for about $100 I think.

Carlo
Reply With Quote

  #4  
Old 12-04-2005, 10:11 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,532
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by Carlo Rechi
Mr. Karl,

To me I dont understand this encoder so much. I think this is not a normal encoder from the wiring. The encoder is ABCD bits like an old time optical eye counter. Al said this would be 16 bits. This is right. You need all 16 bits not just use a few cause the binary pattern would not be the same.

Carlo
Actually 3 bits would give you 8 positions, but they probabally made it 4 bits to avoid using all zero's as a position, because this could mis-interpreted when zero occurs between sensors.
So you would only use 0001 to 1000 (8), there is probabally a binary decoder ic that you may have to hook into.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5  
Old 12-04-2005, 11:06 AM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 530
HillBilly is on a distinguished road

Alot of these had two sensors for each tool location. The first was the decel switch and the second was the stop sensor. They would only index in one direction if this is the case.

Darek
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-04-2005, 11:22 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Originally Posted by HillBilly
Alot of these had two sensors for each tool location. The first was the decel switch and the second was the stop sensor. They would only index in one direction if this is the case.

Darek
This makes sence. Its an air motor and I can see two solenoids for fast and slow. Now it would be REAL NICE TO index both ways. Is this possible with an air motor system?

Originally Posted by Al_The_Man
It looks like eight hall effect ic's , but the picture is blurry, normally four bits would give you up to 16 inputs, so you should be able to decode a binary pattern from them for 8 positions, they may already have pull up resistors, but you may have to reverse engineer the electronics to find out what type of output the sensors have, for interfacing to the opto's.
Al.
I gave you all the info I have. What sort of reverse engineering should I do? Just put a VOA meter on on an output?

Encoders are a cheap item, should I just jerk this thing?

Karl
Reply With Quote

  #7   Ban this user!
Old 12-04-2005, 12:57 PM
Evodyne's Avatar  
Join Date: Dec 2004
Location: USA
Posts: 518
Evodyne is on a distinguished road

Karl,

I think you are right on the money. With a cheap logic proble from Radio Shack you can determine the coding.

Without knowing any better, I'm thinking about Hillbilly's comments about a slowdown and stop: the board might still use all four bits as follows:

3 2 1 0
2 2 2 2
1 Slowdown 0 0 0 0
1 Stop 0 0 0 1
2 Slowdown 0 0 1 0
2 Stop 0 0 1 1
3 Slowdown 0 1 0 0
3 Stop 0 1 0 1
4 Slowdown 0 1 1 0
4 Stop 0 1 1 1
5 Slowdown 1 0 0 0
5 Stop 1 0 0 1
6 Slowdown 1 0 1 0
6 Stop 1 0 1 1
7 Slowdown 1 1 0 0
7 Stop 1 1 0 1
8 Slowdown 1 1 1 0
8 Stop 1 1 1 1

Good luck. Let us know what you find out.

Evodyne

Crud: my formatting went away-but from the sound of it you understand the truth table anyway.
Reply With Quote

  #8  
Old 12-04-2005, 02:51 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,532
Al_The_Man is on a distinguished road
Buy me a Beer?

The turrets with slow down that I have seen like Mazak etc, use 2 sets of reed switches per location, in the photo it looks like there is 8 hall effect ic's which for an 8 position turret may not offer slow down, unless the method use was to detect one-position-away in order to activate slow down.
If you can trace the four ABCD code lines back to whatever IC is driving them, It should be possible to tell what interface is neccessary to hook up to the Galil.
If it was working well before, it may be worth resurecting it.
But if you go with an encoder, get a 360 pulse/rev which Galil reads as 1440 so you can divide by an even number of pulses.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.

Last edited by Al_The_Man; 12-04-2005 at 03:13 PM.
Reply With Quote

  #9   Ban this user!
Old 12-05-2005, 11:59 AM
 
Join Date: Apr 2003
Location: United States
Posts: 279
camsoft is on a distinguished road

Hello Karl,

If you can find some spare inputs the current version has a binary decoder routine that we can give you. The front office should give us permission to send it to you today.

To cut cost there are also 2 new devices and 1 not so new low cost device listed in our price list, downloadable from the home page for reading a spare digital encoder or adding more optically isolated I/O if needed. These items are not meant for high speed but would fit the application perfectly in your case since you're low on inputs. If you change to an encoder and don't have a spare connection we could make the Hand Wheel Device read quad pulses for positioning like a digital encoder.

Standalone Digital Input/Output units - Provides 14 Inputs or Outputs. Uses simple RS232 commands. $159

Standalone Hand Wheel Pulse Counter unit- Reads digital quad handwheel pulses through RS232 box. $159

Optically Isolated Spare Relay Racks. Provides Isolation and Noise Guard (Qty 4 $35) - (Qty 16 $120)

Al is correct the binary bit pattern only need 4 bits. Another point Al mentions is that on this type of device the bits may or may not change to zero or some odd value in-between turret rotations. Also what Evodyne suggest would be great if it was designed for slow and stop bit patterns.

You could purchase a probe or simply view and record to a file the bit patterns on the Digital I/O panel in Diagnostics in real-time to see what device really does. If this was the case our binary turret logic routine could easily have a table to accommodate this. There are so many options, besides what has been mentioned already. The most common variety we see is the type that the binary bits would only be used for position confirmation and not monitored while the turret is moving. Instead there are prox sensors or digital I/O counters that count the turret positions as they go. This may then require more I/O points. If this is the case we would recommend a modern digital encoder be used instead of I/O. A real encoder would be monitored in real-time quickly and precisely and be less money than buying our Standalone Digital Input/Output unit.

Since you can see the two solenoids on the air motor and if you have 2 spare outputs then we can show you how to modify the turret logic to toggle between fast and slow mode as well as logic to calculate turret positions for clockwise and counter clockwise tool changing if the air solenoid device will permit us to reverse directions physically.

Tech Support
CamSoft Corp.
951-674-8100
support@camsoftcorp.com
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #10   Ban this user!
Old 12-05-2005, 12:12 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Thanks for all the help. You guys are the best.

Karl
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-08-2005, 08:03 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

I accidently discovered something that makes NO SENCE to me.

All the I/O on this machine is 12 VDC. So that's what I tried on this encoder, no joy. Doing something else, I switched the hall effect limit switches to 5 VDC and now the encoder works. WTF????

I guess I'll take my bit of luck. But are there any theories as to why this might happen? The wires run in the same cable, but as far as I know, are electrically separate.

Karl
Reply With Quote

  #12  
Old 12-08-2005, 12:09 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,532
Al_The_Man is on a distinguished road
Buy me a Beer?

If the IC's on the board have a number it should be possible to tell if they are TTL (5v) or CMOS (12v).
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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