![]() | |
| 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
| |||
| |||
I have this Custom Macro Program in my Miyano TSV-21 Controll Fanuc 0M-A O9003 N50 N100 G65 H81 P800 Q#1000 R1; N150 G65 H81 P800 Q#1004 R1; N200 G91 G28 Z0 M89; N225 G49; N250 G65 H82 P250 Q#1001 R1; N300 M80; N350 G65 H82 P350 Q#1006 R1; N400 G30 Z0; N450 G65 H82 P450 Q#1003 R1; N500 M82; N550 G65 H82 P550 Q#1004 R1; N600 G28 Z0; N650 G65 H82 P650 Q#1002 R1; N700 M81; N750 G65 H82 P750 Q#1005 R1; N800 M99; As we know this is Custom Macro A. First Question : I just wanna know that where can I find the variable "#1000-#1006" in the program which are Input interface variable. Where can I found in the controller? If they located in Diagnostic, please inform me the no. I want to check the status of them. Last Question : "N750 G65 H82 P750 Q#1005 R1;" This line shows us that if #1005 is not equal to 1 jump to N750. If #1005=2 ,this will loop only in this line. Am I right? Thank again for all people that both help and have kindness for me. Best Regards, |
|
#3
| ||||
| ||||
As Sinha stated, store the value of the system variable in a local or common variable, one that's not being used elsewhere, for example #1, and you will be able to see the value of the system variable by observing variable #1 you've used to store its value. Place the following Macro statement before the Macro statement containing the system variable you're interested in. G65 H01 P#1 Q#1000 N100 G65 H81 P800 Q#1000 R1; Regards, Bill Last edited by angelw; 12-08-2010 at 04:56 PM. |
|
#5
| |||
| |||
| G65 P__ Q1000 where: P = the Macro Program Number In the Macro program, the local variable #17 would be assigned the value 1000, or if #1000 is used in conjunction with the address Q, the value of #1000 is passed to #17 in the Macro. #17 will retain its value locally though. The example in Post #3 is User Macro A. User Macro A does not have Local variables, only Common variables; accordingly, the variables are not passed as argumnets. In user Macro A, the G65 indicates a Macro statement and the H specifies the Macro function. Regards, Bill Last edited by angelw; 04-25-2012 at 08:25 AM. |
| Sponsored Links |
![]() |
| 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 |
| Need Help!- Fanuc custom Macro Question???? | ixoxi999 | Fanuc | 9 | 12-08-2011 04:31 AM |
| "difference between Custom Macro A and Custom Macro B" | arulthambi | Parametric Programing | 4 | 10-05-2009 03:34 PM |
| custom macro question | sinha_nsit | G-Code Programing | 28 | 04-18-2009 06:44 AM |
| custom macro | The Metal | Daewoo/Doosan | 2 | 09-28-2006 07:26 AM |