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! > MetalWorking Machines > Okuma


Okuma Discuss Okuma machines here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-05-2009, 09:32 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road
Detecting TSC switch=ON

Hi All,
I have a Okuma MA600HB with a OSP-E100M controller.
Have been trying to get a program running that will detect if the Thru-Spindle Coolant switch is ON or OFF.
Looking at the Electrical book I can see an entry in the table listing the "Operation Panel Output List" call opOHLL.
Using the I/O Monitor and searching for the above output, I can see that I am looking at the appropriate signal (turns on and off as the button changes state).
The code listed in the manual shows ID106 Bit 2 as being the item I am looking for. In the box for this item it also states "Oil Hole opOHLL (OUT041)"
On the I/O Monitor there is two states mentioned, Logical and physical.
The data on the Logical condition is:
ADDR 003 Bit 2 (as in Address Zero Zero Three)
Physical Information is:
ADDR 006 Bit 2

I have tried detecting the state of this bit by using the following code:
IF [VORD[1062] EQ 0] N...
This gave no alarm, nor did it work.
Trying:
IF [VORD[1049] EQ 0] N...
Gave the same results... nada!
Trying this:
IF [VORD[opOHLL] EQ 0] N...
gave an alarm in respect to the fact that it did not like the use of opOHLL.

Can anyone tell me what code I need in order to check the state of this switch?
Thanks
Brian.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 04-07-2009, 07:04 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road

Finally solved the problem, with some help from Okuma Australia!

Ended up looking at the IO monitor on the system and searching for the "opOHLL" keyword. When displaying this value, you can choose to display either the Logical or Physical address of the data.

For some reason, you need to use the Logical address information and not the Physical address.

The Logical address of the button was Address 003 Bit 2... so translating into a VORD command I was able to use the following:

OCLRS
(CLEAR THRU SPINDLE COOLANT)
(SETUP AS M209)
M132 (IGNORE SINGLE BLOCK)
IF [VORD[0032] EQ 0] NM9 (DETECT IF THRU SPINDLE COOLANT IS ON)
M9 (TURN OFF MAIN COOLANT)
M339 (CLEAR THRU SPINDLE)
G4 F10.0 (WAIT FOR 10 SECONDS)
NM9 M9 (TURN OFF M339)
M133
RTS

Saving this file as a Library file (*.LIB) and linking to the M209 command, I can now get an appropriate coolant off, where if no thru spindle coolant is used, a simple M9 is used or a flush of the spindle is used when Thru Spindle Coolant has been on.

Now to just replace all the M9's in all the programs with M209 and whoohoo off we go!
Brian.

Last edited by broby; 04-08-2009 at 06:50 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 04-08-2009, 09:07 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Hi Brian

Sorry couldn't assist with your prob.
noticing you have a horz. pallet machine
and just sharing this
OKUMA MA40 HA variables post #6

the .ZIP attachment ( similar to your M209 , you may wish to poach other items for your .LIB file )

PS.
I suppose it has the turn-cut function as well ? half your luck !

I assume Noel helped with the coolant issue ???

Cheers
Steve
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 04-08-2009, 09:55 AM
Algirdas's Avatar  
Join Date: Mar 2009
Location: Lithuania
Posts: 819
Algirdas is on a distinguished road

reading and wondering ... why You need to check status of command given by You? in that case You can use separate variable, equal to coolant switched condition.
Please, explain, how it happens, that You need to check if coolant through spindle is on?
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 04-08-2009, 07:04 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road

Hi Steve,
No Noel did not assist me on this occasion... I spoke to Matt D. instead. NW can be a hard person to get hold of, being a man in demand all the time!
Took a couple of goes to get the correct format of the VORD command correct, as availability of the machine was limited to early first thing in the mornings only.
Do not have the Turn Cut function on this machine... unfortunately!
Looks like it would be a great bit of functionality.

Algirdas,
The reason for wanting to detect the state of the button is so that all M9 commands can be replaced with the M209 custom macro command. Thus any time the coolant is turned off, the spindle will be cleared as appropriate. If the external coolant is on, then no air thru the spindle is used, only when coolant is going thru the spindle is there a need to use air thru the spindle to clear it.
If I use internal air all the time, it can build up pressure behind the tool in the spindle and cause problems. (when a solid pull stud is used).

In the past if a tool is in the spindle for a long time, doing much work, and has a solid pull stud and thru coolant is, or has been active, it can cause the tool to become jammed in the spindle... not good!

Setting, or passing in a variable to a routine would not work either, as the button is either ON or OFF! If the button is ON and M209 is used, then spindle will be cleared automatically.

Hope that clears up the reason.
Regards
Brian.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-10-2009, 07:40 AM
Algirdas's Avatar  
Join Date: Mar 2009
Location: Lithuania
Posts: 819
Algirdas is on a distinguished road

many thanks for detailed explanation - I did never knew that. I'd never saw solid pull stud either
And, of course - button on the panel !
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 04-10-2009, 09:06 AM
Superman's Avatar  
Join Date: Dec 2008
Location: Krypton
Age: 51
Posts: 1,504
Superman is on a distinguished road
Buy me a Beer?

Originally Posted by Algirdas View Post
many thanks for detailed explanation - I did never knew that. I'd never saw solid pull stud either
And, of course - button on the panel !
Hey Al,
There is not many "solid" pull studs, he's implying that thru coolant can't be used
And, of course - button on the panel !
and if you find this button - let me know, I'd like to "see" it too.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 04-10-2009, 11:31 AM
Algirdas's Avatar  
Join Date: Mar 2009
Location: Lithuania
Posts: 819
Algirdas is on a distinguished road

and if you find this button - let me know, I'd like to "see" it too
according Mr.broby:
would not work either, as the button is either ON or OFF!
I believe, there is a button. I'll check on MB-500H next month
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 04-11-2009, 09:32 AM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road

When refering to a "Solid" pull stud, I mean a pull stud that has no hole through the centre for thru spindle coolant.
Our old MC600H did not have thru spindle coolant and therefor no need to buy hollow pullstuds.
Tweet this Post!Share on Facebook
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Laser for detecting cracks aceofbase Mechanical Calculations/Engineering Design 3 09-19-2006 09:32 AM
limit switch and home switch setup Runner4404spd General Electronics Discussion 0 12-15-2005 08:58 AM
Is it possible to use the home switch as the limit switch as well? Darc Mach Software (ArtSoft software) 2 10-23-2005 01:50 AM
Limit Switch / Home Switch in Software Sanghera General Electronics Discussion 6 11-01-2004 06:58 PM




All times are GMT -5. The time now is 05:11 AM.





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