![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| Is there a way to assign a system parameter value to a custom macro variable in Fanuc OiMD ? Just giving #101 = #3120 (example) does not work and raises an alarm on the machine. I know there is some method to do this so may be gurus out here could help ![]() Thanks a lot |
|
#3
| |||
| |||
|
I was just giving an example when i said 3120. There is a specific method to be followed to assign a system variable value to a common variable. This can be any system variable. I was wondering whether anyone here could throw some light on that. |
|
#4
| |||
| |||
| #4001 is a system variable that is common for most, if not all, controls; it holds the value of the current model Group 1 "G" code. Try the following program and check the value of #100 when the program stops at M00. The resulting value in #100 should be 1. Regards, Bill % G91 G01 X0.0 #100 = #4001 M00 M30 % Last edited by angelw; 01-12-2012 at 06:16 AM. |
|
#5
| ||||
| ||||
|
I'm confused. The TITLE of your original post is "Is there a way to assign a system parameter value to a custom macro variable in Fanuc 0iMD?" Am I the only one who searched high and low to see what Parameter 3120 was? If I'd have known you wanted to assign a system variable to a custom macro variable... |
| Sponsored Links |
|
#6
| |||
| |||
No, I thought the same, but then the OP started writing about System Variables in post #3, and therefore considered the terminology in the title was incorrect. Regards, Bill |
|
#7
| |||
| |||
| Hi All, Sorry for the confusion regarding the title. It should have been system variable and i mentioned it as system parameter. Confusion also seems to have been created by me giving an example of #3120. I was only giving an example. Anyways as everyone here said, my Syntax was correct but the # was not present on the specific machine. I was looking for values in #1032 - #1035. I could get these on one machine but on the other machine it raised an alarm stating it was out of range and i got confused. Finally i discovered that this range was not existing on that particular machine and i did have problem with my Syntax or method ! Thanks again for chipping in with your answers and suggestions. |
![]() |
| 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 |
| macro system variable for Z axis load? | fordav11 | Parametric Programing | 4 | 11-30-2011 06:50 PM |
| Need Help!- Fanuc Custom Macro | acrisius00 | Coding | 0 | 02-11-2011 11:02 AM |
| Fanuc 18i custom macro B | djmcdaris | Fanuc | 17 | 03-10-2009 01:58 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 |