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 03-02-2009, 06:11 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road
external devices connected to a CNC machine

Kindly bear with me as I am trying to learn interfacing of CNC machines with external devices. I am not even sure if I am asking sensible questions:

What external devices can be connected to a CNC machine?

Are the PMC signals (the so-called, interface signals) passed on to some external relay through an external PLC, or the PMC can directly drive the relay?

Similarly, how are input signals sent to the PMC?

Is the hardware connection through the RS-232C port of the CNC?

Any other relevant information?

Thanks in advance.
Reply With Quote

  #2   Ban this user!
Old 03-02-2009, 08:33 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

This link will give you information about connecting Haas rotary tables to other machines.

http://www.haascnc.com/customer_serv...ry/96-0315.pdf
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #3   Ban this user!
Old 03-02-2009, 08:39 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks.
But the link does not connect.
Reply With Quote

  #4  
Old 03-02-2009, 09:24 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?

I assume you are talking Fanuc?
The communication between the CNC and PMC (PLC) is over an inernal bus called the BMI, Basic Machine Interface.
G registers are used to pass info from PMC to CNC such as operator panel commands, and F Registers are used to pass info from CNC to PMC such as M,S,T codes etc.
The PMC operates like any typical PLC as to programming and I/O.
The results of the PLC logic can be monitored in the on screen Ladder display.
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   Ban this user!
Old 03-02-2009, 09:26 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It worked for me. It's a big pdf and slow to load, but it worked.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-02-2009, 09:45 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by Al_The_Man View Post
I assume you are talking Fanuc?
The communication between the CNC and PMC (PLC) is over an inernal bus called the BMI, Basic Machine Interface.
G registers are used to pass info from PMC to CNC such as operator panel commands, and F Registers are used to pass info from CNC to PMC such as M,S,T codes etc.
The PMC operates like any typical PLC as to programming and I/O.
The results of the PLC logic can be monitored in the on screen Ladder display.
Al.

Thanks.
Yes, I am talking with reference to Fanuc, in terms of system variables for interface signals.
A more specific question (I am not sure if I am not talking non-sense):
Can we operate an external relay through PMC, by sending appropriate signal to the PMC through a macro?
For example, let us assume, I want that when the part count is 100, an external siren be automatically sounded. Is it possible?
Additionally, I may want the part count to be displayed on an external display board. Possible?
Reply With Quote

  #7  
Old 03-02-2009, 09:52 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?

I don't normally get involved in part programming so there may be a function for that, I cannot recall seeing one however.
If it is possible, you may have to change the ladder logic however?
Someone like Dan Fritz may know.
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 03-02-2009, 10:05 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by Al_The_Man View Post
Someone like Dan Fritz may know.
Al.
Can you please pass on the request to Dan Fritz.
The problem is that there is no book which I can refer to. Fanuc manual also does not explain properly. How to learn then? There are many things which have to be learnt from others only.
Reply With Quote

  #9   Ban this user!
Old 03-03-2009, 06:28 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

There are two ways to output data from the part program, which does not involve the PMC or the ladder at all. You can connect an external device to the Fanuc's serial port, then output data to that device using macro commands, like this:

POPEN (opens the serial port)
DPRNT[HELLO] (sends the word "HELLO" to the external device)
PCLOS (closes the serial port)

DPRNT statements can send any text, or any variables to the external device. This would be the best way to connect an external display board. If the display board could accept serial data, you could display a "live count" of the number of parts like this:


O1234 (BEGINNING OF PROGRAM)
#501 = #501 + 1 (INCREMENT COUNTER VARIABLE)
N1
N2 (your program data)
N3
POPEN
DPRNT[#501]
PCLOS
M30

Using a variable in the 500 range makes sense here because the count would remain even if you powered off/on the machine. The operator could manually reset #501 to zero in MDI mode to reset the counter, or you could reset it in the program

Outputting a logic signal to a relay, or to a series of relays) can be done with the user macro output signals. Not all machines have the user macro outputs wired to a terminal strip, so you may have to seek out these signal points on an I/O board connector. Use the Fanuc CONNECTING manual for this. Each model Fanuc control will be a bit different in this regard.

There are 16 macro output signals and 16 macro input signals. You can read the inputs with a macro statement, and you can output a relay signal with a macro statement. The inputs are called UI0 through UI15 and the outputs are called UO0 through U015. They each correspond to a macro variable in the 1000 range. See your Fanuc operator's manual for more details on how to send data to these outputs. Basically, you can turn on an individual signal with a statement like:

#1100 = 1 (turns on relay UO0)
#1101 = 1 (turns on relay UO1)
#1100 = 0 (turns off relay UO0)
(etc.)

To send a 16-bit binary number using all 16 relays, you can assign a value to variable #1132. The binary equivalent of that number will be output on the 16 relays UO0-UO15.

Reading an input signal is a matter of just looking at the variables #1000 - #1015. These variables correspond to inputs UI0 - UI15. Reading macro variable #1032 gives you the binary value of all 16 inputs.
Reply With Quote

  #10   Ban this user!
Old 03-04-2009, 06:16 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Thanks Dan.
I have understood quite a few things.
Please explain a few points a little bit more. Only you have the answer. I know that if someone very knowledgeable is asked "trivial" questions, he gets irritated. So, kindly bear with me.

The Connection manual which I have, uses X for input and Y for output. I could not find UI0-UI15 and UO0-UO15. It is still not clear to me where the output signals (#1100 series) go, and how these operate an external relay. Similarly, how can we sense the ON/OFF state of an external sensor such as a limit switch? We may want to take some decision based on this information.

What I have understood is, RS-232C port of the CNC machine is not for this purpose. One has to directly connect the external relay / sensor to I/O board of PMC. Are there terminals on I/O board with UI0-UI15 and UO0-UO15 designations?

I also believe that PMC does not have relay outputs. It can only give source type DC outputs. So, external devices cannot be AC type.

Please throw some light on this. It will be a great help.

Thanks for your patience, and looking forward to hear from you.

Sinha
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-04-2009, 06:50 AM
 
Join Date: Sep 2005
Location: USA
Age: 60
Posts: 755
Dan Fritz is on a distinguished road

You must be looking at the connecting manual that only describes the PMC functions, not the "Hardware" connecting manual. On some of the newer controls, Fanuc publishes two types of connection manuals. All the User Macro inputs and outputs are processed by the PMC, but usually they are just passed through to some corresponding hardware inputs and outputs. If your machine's ladder does not include these signals, then maybe your machine tool builder never anticipated their use and left them out.

The type of input is usually +24vdc. Outputs can be one of several types, depending on the model of CNC control and the I/O board you have. Older Fanuc 5, 6, and 7 models had IC reed relays (contact closures). Later controls had a +24vdc voltage output. Some Fanuc I/O boards also have "open collector" outputs where the signal is pulled to ground when it's on. You've never mentioned what model control and what I/O board you have.

If you need to connect AC devices, I suggest you connect a solid-state relay to the Fanuc output, and use that to drive your AC device.

If you tell me the model control, maybe one of the forum members can send you the correct hardware connection manual.

The RS232 port on the Fanuc can be used for any purpose you like. We've connected indexers that accept RS232 commands, we've connected computers to collect touch-probe data for digitizing, we've tied in DNC systems with barcode readers, and we've attached printers for collecting probing data. I'm sure other forum members have done lots of imaginative things with the serial ports as well. You asked about a "Display board", and I was thinking of a display board with a serial input. That would certainly be possible.

Generally speaking, you will need to use the serial port to pass DATA to another device, and you can use the User Macro signals to pass digital (on/off) or binary or BCD data to another device.
Reply With Quote

  #12   Ban this user!
Old 03-04-2009, 07:28 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

My control is 0i Mate TC.
Any comment specific to this model?
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
Need Help!- Z axis is connected but not getting any results functionbikes Hobbycnc (Products) 0 02-26-2009 04:28 PM
Wow, these measuring devices are WAY cheap.. can I trust them? squale General Metalwork Discussion 11 11-22-2007 05:12 AM
Info on Eastern Air Devices ??stepper?? mpmarino Stepper Motors and Drives 5 11-30-2006 10:59 AM
Wrong side of circle is connected. rocky GibbsCAM 3 08-23-2006 09:31 PM
Looking for info on K2 Devices and EZ router Trexler Signs CNCzone Club House 0 08-23-2006 10:08 AM




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