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 11-13-2011, 07:10 AM
 
Join Date: Aug 2007
Location: uk
Posts: 58
derekBPcnc is on a distinguished road
Skip Signal

Hi All,

I have tested the skip I/P with a simple micro switch and the G31 functions correctly with a simple program... so I'm now writing a macro for a tool setter.

Generally the macro design is within the power of my brain cell, just.... but I'd like to verify that the signal from the probe is going On - Off - On as expected as the tool touches retracts and touches again for the final "read".
If the probe is open / closed at the wrong time, then a #3006=1 (probe fail) would abort the setting routine and flag an alarm.

But,
I can't find in the Fanuc manuals (no surprise there ) how to read the status of the skip signal (or any of the general I/O).

Any help / points would be a great help.
Cheers
Derek.
Reply With Quote

  #2  
Old 11-13-2011, 10:21 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

The skip input cannot be made conditional so it does not show up in the ladder AFAIK.
When writing G31 routines or macro's it is customary to have a protected positioning move, this is a routine that would typically be used to move the probe to initial position in say rapid, IOW, any move of the probe should include a G31.
The standard G31 input is sent from PLC to CNC via the BMI, an optional High speed skip input is available through an add on board and option parameter that directs the high speed G31 skip input directly to the CNC side.
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 11-13-2011, 11:13 AM
 
Join Date: Aug 2007
Location: uk
Posts: 58
derekBPcnc is on a distinguished road

Hi Al,

I've been thumbing through the manual -
It says that the input interface signals 1 to 32 can be read by variables #1000 to #1031.
I'm hoping that the skip x4.7 is connected to one of these i/ps
I haven't got the electrical drawings with me, so I'll have to check when I get to work tomorrow.

I just want to check the probe closes on the back off move...just a bit of error checking realy, or that the tool hasn't mashed the tool setter ;-)

I wasn't sure if i could use a G31 with a G0 - I'll give that a try too.

ATB
Reply With Quote

  #4   Ban this user!
Old 11-13-2011, 01:59 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by derekBPcnc View Post
Hi Al,

I've been thumbing through the manual -
It says that the input interface signals 1 to 32 can be read by variables #1000 to #1031.
I'm hoping that the skip x4.7 is connected to one of these i/ps
I haven't got the electrical drawings with me, so I'll have to check when I get to work tomorrow.

I just want to check the probe closes on the back off move...just a bit of error checking realy, or that the tool hasn't mashed the tool setter ;-)

I wasn't sure if i could use a G31 with a G0 - I'll give that a try too.

ATB

I wasn't sure if i could use a G31 with a G0 - I'll give that a try too.

No you can't. G31 is a one shot command that is terminated by the slide reaching the end point or by the change of state of the switch, and functions similarly to G1. Accordingly, if you want rapid movement in the G31 block, include a fast feed rate.

I just want to check the probe closes on the back off move...just a bit of error checking realy, or that the tool hasn't mashed the tool setter ;-)
You have the logic correctly planned. The switch should be made when the tool/probe is in fresh air. A broken wire etc in the system will therefore fail safe.

Regards,

Bill

Last edited by angelw; 11-13-2011 at 02:14 PM.
Reply With Quote

  #5   Ban this user!
Old 11-15-2011, 07:24 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

There are macro inputs and outputs that you can see with variables in the 1000s, but those are not related to the SKIP input. I suppose you could wire your probe output to BOTH the SKIP input and one of those 16 user macro inputs (Ui0-Ui15), but that may corrupt the latency of the SKIP input. These macro inputs have to be processed in the ladder, so if your ladder doesnt' have them, you may have to modify the ladder as well as wire up the extra input.

I suggest this trick instead: If you want to check if the probe is stuck on, move to a position where you know the probe be off, save the current absolute position in a local variable, then make a very short G31 move to another point where the probe should also be clear. If the SKIP axis position is not the same as the "target" position, then the probe is stuck, and you should generate an alarm. I used to do it this way when we were digitizing with Renishaw MP1 probes. They liked to stick in the "on" position when you move away after touching the part. I believe we even went to the extra effort to "bounce" the probe against the last known part surface, then back away again to center the probe, rather than throw an alarm. When you're touching 10,000 points in a digitizing cycle, you've got to have some way to recover from a stuck probe.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-15-2011, 12:29 PM
 
Join Date: Aug 2007
Location: uk
Posts: 58
derekBPcnc is on a distinguished road

Hi Dan, Bill

Thanks for the replys.

The Fanuc manual says that #1000 to #1031 can be used to read the status of the external inputs.
trying to read anything over #1015 cause a variable out of range error, so ties up with what you say about Ui0 to Ui15.

I thought that the input registers would be mapped to the #1000 variables - obviously not the case (and outputs to # 1100 - #1131 I think).

SO - I'll take your advice and use some logic comparing the absolute position before and after skip to make sure the expected move has been made and not 'halted' by a stuck probe (tool setter stylus).
As a side note - I see andthe X4.7 Skip in the PMC maintenance status screen and it toggles when the probe is tripped- I guess that the X4.7 signal is not being passed to the CNC...but it must be for it to process the G31 command ...that's the confusing part.

The other way I was going to try to extract the status of skip signal was to read the whole of the X4 register and process that Byte to extract BIT7 - I think #1032 to #1035 reads the whole register??? IF that can be done in Fanuc (I'm thinking microprocessor register techniques, so might be complete tosh when it comes to CNC

I haven't seen the Renishaw macros, so I dont know how Renishaw error check probe open / stuck to flag an error.

Fun learning if nothing else :-)

ATB
Derek
Reply With Quote

  #7  
Old 11-15-2011, 01:32 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by derekBPcnc View Post
As a side note - I see andthe X4.7 Skip in the PMC maintenance status screen and it toggles when the probe is tripped- I guess that the X4.7 signal is not being passed to the CNC...but it must be for it to process the G31 command ...that's the confusing part.

ATB
Derek
As I mentioned, the PMC skip is passed over to the CNC side via the BMI. Basic Machine Interface, this is the bus that the CNC and PMC talk to each other, normally the PMC and the CNC communicate via G and F registers, it is a while since I implemented a Fanuc ladder, but I believe there is no G register bit available to enabling conditioning the Skip input, the High Speed skip bypasses the BMI/PMC and inputs direct to the CNC.
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

  #8   Ban this user!
Old 11-16-2011, 02:29 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by derekBPcnc View Post
...
The Fanuc manual says that #1000 to #1031 can be used to read the status of the external inputs.
trying to read anything over #1015 cause a variable out of range error, so ties up with what you say about Ui0 to Ui15.

I thought that the input registers would be mapped to the #1000 variables - obviously not the case (and outputs to # 1100 - #1131 I think).

...
#1000 - #1015 and #1032 are defined.
#1016 - #1031 may not be defined.
The same applies to output signals also.
See the attachment for more details.
Attached Files
File Type: pdf interface signals.pdf‎ (31.1 KB, 13 views)
Reply With Quote

  #9   Ban this user!
Old 11-16-2011, 10:48 AM
 
Join Date: Jul 2006
Location: USA
Posts: 58
JMS4287 is on a distinguished road

Originally Posted by Dan Fritz View Post
I suggest this trick instead: If you want to check if the probe is stuck on, move to a position where you know the probe be off, save the current absolute position in a local variable, then make a very short G31 move to another point where the probe should also be clear. If the SKIP axis position is not the same as the "target" position, then the probe is stuck, and you should generate an alarm.
Here's a quick sample prg of that same concept.

O9032(REN FLASH ON)
G98

#2=#5042-#5082
#3=[#2-[.002]]
#4=0
N2
IF[#4GT4]GOTO4
G31Z#3F20.
G4U.1
#6=#5042-#5082
G4U.1
IF[#6LT#2]GOTO5

G0Z#2

M55
G4U.7
M54(M CODE TO TURN PROBE ON)
G4U.7
M55(RESET M CODE)

#4=#4+1
GOTO2
N4
#3000=101(PROBE START UP FAILURE-CHECK BATTERY)
N5
G0Z#2
M99
Reply With Quote

  #10   Ban this user!
Old 11-16-2011, 12:12 PM
 
Join Date: Aug 2007
Location: uk
Posts: 58
derekBPcnc is on a distinguished road

Originally Posted by sinha_nsit View Post
#1000 - #1015 and #1032 are defined.
#1016 - #1031 may not be defined.
The same applies to output signals also.
See the attachment for more details.
Hello Sinha,

Thanks for the info - I'll 'digest' in conjunction with the manual tomorrow when I'm back in the office, as I understand now, that X4.7 skip is not mapped to a user variable.:-(
Another quick question - of the variables in the range #1000 to #1015 - how do I work out the mapping of a specific input (say X2.1) to a particular variable?
-------------------
Hi Dan,
Thanks for the section of code- looks like a plan is forming
I got the MI-8 interface delivered today -so let the real fun commence

ATVB
Derek
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-17-2011, 12:43 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by derekBPcnc View Post
...Another quick question - of the variables in the range #1000 to #1015 - how do I work out the mapping of a specific input (say X2.1) to a particular variable?
Read the attachment which has more detailed information.
Attached Files
File Type: pdf interface signals (details).pdf‎ (97.0 KB, 25 views)
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
New skip in the house latheboy CNCzone Club House 4 08-19-2011 11:30 PM
Newbie- 1.6V-3.0V random signal voltage parallel signal from output – Any advice? cjchands Mach Software (ArtSoft software) 0 11-12-2009 04:36 AM
Fanuc 15M skip signal 67highboy Fanuc 2 09-11-2008 10:13 AM
Block skip function Vern Smith Haas Mills 6 07-31-2007 07:50 AM
Removing the block skip / Shizzlemah Fadal 2 02-17-2006 10:01 AM




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