![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| Can someone please advice me how to read PMC-parameter "D-type" in a NC-progamme? It´s for a Fanuc 31i. I would like to use this external bit information in a macro, calculating variables. Thank you! |
|
#3
| |||
| |||
| Thank you, I have got an answer from another source. It turns out to be readable by using "G340 Fn. An. Qn. ;" Where: "F" specifies numbers of bytes: F0.=bit, F1.=1byte, F2.=2bytes, F4.=4bytes "A" specifies adress: A0.=R, A1=D, A2=C, A3=K, A4=X, A5=Y, A6=F, A7=G "Q" specifies adress number e.g. G340 F0. A0. Q128.3 ; Reads status of R128 bit 3 G340 F2. A1. Q80. ; Reads status of D80 (2 bytes) The value is written to macro variable #100 which can be used in the NC-programs. Hope this will be useful to other programmers as well. /Ingmar |
|
#7
| |||
| |||
| In this case we thought of using some externaly set D-parameters as a code for calling up different machining programs from a network. There is a robot loading the machine with different articles and it can set these parameters externaly. Then we can call the requested program with this code. G340 A F Q M198 P#100 M30 There are naturally a lot of other examples one can think of using different status of parameters, e.g. jump in programs depending on situation. |
|
#8
| ||||
| ||||
| Sounds extremely complicated. I'm already up to 100 variables just to automatically time shifts and cycle processes...on one machine. Would it be simpler to program another robot with a large whip attachment to whip the robots in question until they get their act together? ![]() DP |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can we read the current status of a parameter | sinha_nsit | Fanuc | 12 | 12-07-2009 06:44 AM |
| Need Help!- How do I read the value of an F-type parameter into a macro variable? | Jan d. | Mazak, Mitsubishi, Mazatrol | 24 | 02-17-2009 10:47 PM |
| 3d scanner cad/cam programme | paul h | General CAD Discussion | 2 | 11-25-2008 04:23 PM |
| slotting programme | davedoubleu | Haas Mills | 3 | 09-27-2007 02:42 PM |
| plc programme | mohd khalid | PIC Programing / Design | 1 | 05-07-2007 03:36 PM |