![]() | |
| 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 |
|
#2
| |||
| |||
Have you tried: #500=ROUND[#5021] Never had to do this but it should work. #500=ROUND[#5003] WOULD BE FOR CURRENT Z POSITION #501=ROUND[#5002] WOULD BE FOR CURRENT Y POSITION #502=ROUND[#5001] WOULD BE FOR CURRENT X POSITION |
|
#5
| |||
| |||
| What you need to do is pull the number you are looking for, (#5021-#5024) for instance, into a variable (#500 = #5021). Then multiply that variable by 10, 100, 1000, 10000 depending on how far out you want to round. I.E. #500 = #500 * 1000. This will get you to the digit you want to round to. Then perform the ROUND command on that variable (#500 = [ROUND#500] ). And then divide by the number you previously multiplied by (#500 = #500 / 1000). |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |