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 > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-31-2007, 02:22 PM
 
Join Date: Aug 2007
Location: US
Age: 33
Posts: 14
Jason812 is on a distinguished road
System Variable for Pallet location

Does anybody know if there is a system variable assigned to the pallet that is in a machine? (Mori SH-500) We had an operator bone a spindle because "A" pallet was in the machine instead of the "B" pallet. I want to write a macro that would read the system variable for the pallet and throw an alarm if the wrong pallet was loaded.

Thanks,

Jason
Reply With Quote

  #2   Ban this user!
Old 10-31-2007, 03:13 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

For the most part... No. You might have a variable that shows a pallet exists, but not which particular pallet. The control (if at all) will track A/B, 1/2 , etc. But its a simple toggle and for reference.

A couple ways to do what you're looking for though. You could identify a variable to use that only looks for pallet numbers. Then, depending on how your pallet change program is written, or how you sequence your operations between multiple pallets, will determine how to set up the variable and integers.

Another way is to use a machine probe. Do you have one? You can install a pin, bore a hole or use a unique feature for each pallet. By probing for the "identifier" first, the machine can confirm that the correct pallet and the correct program is being run.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 11-01-2007, 08:38 AM
 
Join Date: Aug 2007
Location: US
Age: 33
Posts: 14
Jason812 is on a distinguished road

Dang, I figured that since you could see what pallet was in the machine under the Manual APC operation under the Custom menu then it would have a number assigned to it.
Reply With Quote

  #4   Ban this user!
Old 11-01-2007, 11:08 AM
 
Join Date: May 2003
Location: Romeo, MI - USA
Posts: 75
psevin is on a distinguished road

I am fairly certain that this information is present in a data table address (D380?), but not written to a macro variable. In the drawings for a SH500 that I have, X12.0 and X12.1 are the inputs that show when the A or B pallet is in the machine. If you can edit the ladder, you could write these to macro addresses (G54) you could read in a part program.
__________________
Paul Sevin - Ovation Engineering, Inc.
http://www.ovationengineering.com
Reply With Quote

  #5  
Old 11-02-2007, 01:57 PM
*Registered User*
 
Join Date: Nov 2005
Location: USA
Posts: 274
Bluesman is on a distinguished road

Originally Posted by Jason812 View Post
Does anybody know if there is a system variable assigned to the pallet that is in a machine? (Mori SH-500) We had an operator bone a spindle because "A" pallet was in the machine instead of the "B" pallet. I want to write a macro that would read the system variable for the pallet and throw an alarm if the wrong pallet was loaded.

Thanks,

Jason
Try this it is for a 16I but should work on most Fanuc. But the assignables for the pallets are Pallet 1 #1002 Pallet 2 #1003.
These Macros run off the M60 but you could probobly figure out a way to check with just a sub

Bluesman

O9001(PALLET CHANGE V1.3)
(VER 1.3 - FS/16IM,)

IF[#1002EQ1]GOTO1
IF[#1003EQ1]GOTO2
GOTO3
N1
G65P9003
G53
#525=0
#524=0
#520=10000
M99

N2
G65P9002
G53
#525=0
#524=0
#520=10000
M99

N3#3000=10(PALLET CHECK ALARM)
M30

O9002(LOAD PALLET #1)
(VER 1.2 - FS/16IM )
#33=#4003
IF[#1002EQ1]GOTO10
IF[#1003NE1]GOTO20
M11
G91G30Z0.0
G30B0.0
M10
M61(PALLET 1)
N10M11G#33
M99
N20#3000=10(PALLET CHECK ALARM)
M30

O9003(LOAD PALLET #2)
(VER 1.2 - FS/16IM )
#33=#4003
IF[#1003EQ1]GOTO10
IF[#1002NE1]GOTO20
M11
G91G30Z0.0
G30B0.0
M10
M62(PALLET 2)
N10M11G#33
M99
N20#3000=10(PALLET CHECK ALARM)
M30
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-04-2007, 05:49 AM
cnc-king's Avatar  
Join Date: Jul 2003
Location: united states
Posts: 232
cnc-king is on a distinguished road

Originally Posted by Jason812 View Post
Does anybody know if there is a system variable assigned to the pallet that is in a machine? (Mori SH-500) We had an operator bone a spindle because "A" pallet was in the machine instead of the "B" pallet. I want to write a macro that would read the system variable for the pallet and throw an alarm if the wrong pallet was loaded.

Thanks,

Jason
look in your manual each pallet has a code attached to it
eg
M71 pallet A
M72 pallet B

M84 Pallet A
M95 pallet B

eache machine builder uses different pallet recognition codes
__________________
If you can ENVISION it I can make it
Reply With Quote

  #7   Ban this user!
Old 11-04-2007, 02:47 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

I agree with cnc-king, check for and use the M-codes the machine tool builder SHOULD have setup. But also keep in mind what psychomill said. It is possible to take the pallets out of the machine and swap them. Resulting in your pallet ID reversing.
Originally Posted by psychomill View Post
For the most part... No. You might have a variable that shows a pallet exists, but not which particular pallet. The control (if at all) will track A/B, 1/2 , etc. But its a simple toggle and for reference.
In my experience this is what the M-codes go by, not any physical ID of the pallets.

Dale
Reply With Quote

  #8   Ban this user!
Old 11-05-2007, 07:23 AM
 
Join Date: Aug 2007
Location: US
Age: 33
Posts: 14
Jason812 is on a distinguished road

Thanks everybody for the ideas. I went ahead and assigned a variable that is not used to the pallet change sub and then added two G codes for each pallet to be added to the tool safe line, similar to what Bluesman suggested.

Here's what I did, it works:

A pallet #519=1 Parameter #6055=100 G100 code
B pallet #519=2 Parameter #6056=200 G200 code
***********Add the following to the Pallet sub after the M60 before M99
N10
IF[#519 EQ 1]GOTO20
GOTO30

N20
#519=2
GOTO50

N30
IF[#519 EQ 2] GOTO40

N40
#519=1
GOT050
N50

*********** G100 A pallet check
O9015
N10
IF[#519 EQ 1] GOTO 40

N20
IF[#519 NE 1] GOTO30

N30
#3000=1(WRONG PALLET IN MACHINE)
N40
M99

*********** G200 B pallet check
O9016
N10
IF[#519 EQ 2] GOTO 40

N20
IF[#519 NE 2] GOTO30

N30
#3000=1(WRONG PALLET IN MACHINE)
N40
M99
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
System variable for tool in ready position Dana099 Mazak, Mitsubishi, Mazatrol 5 07-20-2007 03:30 PM
Multi pallet machining system...?? REVCAM_Bob General Metalwork Discussion 0 02-08-2007 07:18 PM
System variable for spindle tool Fanuc 15m pieface Fanuc 8 06-01-2006 06:37 AM
Map your location Rekd CNCzone Club House 20 10-20-2005 09:49 PM
location? fastolds Surfcam 11 12-02-2004 01:58 AM




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