![]() | |
| 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
| |||
| |||
Hello Everyone! The machine in question is Doosan H100 6 with FANUC 18iM control - and here's the problem: the block marked below yells "macro format error". IF [#19 LT 0] GOTO991 --> IF [[#19 GT 6.] AND [#19 LT 101.]] GOTO991 <--- IF [#19 GT 148.] GOTO991 The block works just fine with FANUC 6M and 32iM so why not with 18iM? How should the block be written to make it work? |
|
#2
| ||||
| ||||
| some thing to do with the decimal places ?
__________________ *********************************************************** *~~Darwinian Man, though well-behaved, At best is only a monkey shaved!~~* *********************************************************** *__________If you feel inclined to pay for the support you receive__________* *_______Please give to charity http://www.oxfam.org/en/getinvolved_______* *********************************************************** |
|
#4
| ||||
| ||||
| Hello. What you are trying to do is not possible on an 18 (i believe). I just tried it and got the same alarm - even without decimals. IF[#500 AND #501 EQ] GOTO1 => This is ok - example. For what you want to do, you need two separate lines. IF [#19 GT 6.] GOTO1 #3000=1(WHATEVER) N1IF [#19 LT 101.] GOTO990 Never played on a 6M before. Hope this helps.
__________________ The Fanuc Support Center Team www.fanuc-support.com |
|
#5
| |||
| |||
| The block IF [[#19 GT 6.] AND [#19 LT 101.]] GOTO991 didn't work with Fanuc 15M either, but this did: IF[#19 GT 6.] AND[#19 LT 101.] GOTO991 I hope the above works with 18iM too - I can't test this right now. Thank you all for your time! |
| Sponsored Links |
|
#6
| |||
| |||
| AND has two uses: bitwise and Boolean. For some (illogical, in my opinion) reason, Fanuc has made its use as a Boolean function a parameter issue. While bitwise AND would always work, Boolean AND (returning TRUE or FALSE) would work only with appropriate parameter setting. For example, on 0i you have to set 6006#0 (MLG) to 1. Other control versions may have the same or a similar parameter. In fact, this applies to OR and XOR also. |
![]() |
| Tags |
| 18im, fanuc, logical and, macro |
| 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 fanuc ac digital servo amplifiers be run by a controller other than fanuc? | js412000 | Servo Motors and Drives | 5 | 03-09-2011 09:11 AM |
| Need Help!- Fanuc 18iM | BKCOM | Fanuc | 0 | 10-19-2009 07:10 PM |
| Need Help!- Fanuc 18im Post for Alphacam .AMP | James_jester | Post Processor Files | 0 | 04-02-2009 02:28 AM |
| Post Processor for fanuc 18iM for licom alphacam | James_jester | Cincinnati CNC | 0 | 03-31-2009 11:14 AM |