CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-13-2011, 10:18 PM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road
How to Make values of X,Y,Z as 0.000 on Absolute page

Hi,

I want to make the values of X,Y,Z as 0.000 on absolute page through a macro program.

Is it possible to do such thing ?
I probably think that its possible because some parameters may be keeping track of X,Y,Z values. If we assign the parameter value to Zero, then automatically the Values of X, Y, Z will be assigned to zero.

Does anyone knows about the parameter which keeps track of X,Y,Z Values ?

Thanks
Ashish
Reply With Quote

  #2   Ban this user!
Old 10-14-2011, 12:44 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

Hi,

Searched some books and finally got the variable which tracks values on Absolute page. They are -
#5041 - X axis
#5042 - Y axis
#5043 - Z axis.

I also made a macro program to assign the values to 0.0.
G90 G54 G80
#5041=0.0
M30

But it doesnt works. The value of X axis (on absolute page) remains unchanged.....:-(


I think that these variable are READ ONLY & user is not allow to change the values.


Thanks
Reply With Quote

  #3   Ban this user!
Old 10-14-2011, 01:44 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,314
dcoupar is on a distinguished road

What model control is this?
Reply With Quote

  #4   Ban this user!
Old 10-14-2011, 03:46 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

Mitsubhishi M64 Control
Reply With Quote

  #5   Ban this user!
Old 10-14-2011, 03:55 AM
ksc ksc is offline
 
Join Date: Oct 2007
Location: canada
Posts: 8
ksc is on a distinguished road
try this

G90G10L2P1X0.0Y0.0Z0.0;
G11;

this should zero your g54 work offset, I have never tried it with the variable # in the formula but it may work.
might look like this.

G90G10#5041=0.0;
G11;

BE SURE TO INCLUDE G11, shuts data setting off!!!!!!!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-14-2011, 07:29 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

The following codes work absolutely fine. The workoffset is set to Zero properly.
G90G10L2P1X0.0Y0.0Z0.0;
G11;



But if the following codes are commanded that alarm (ILLEGAL ADDRESS ERROR) is generated.
G90G10#5041=0.0;
G11;


Need help
Reply With Quote

  #7   Ban this user!
Old 10-14-2011, 08:56 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,314
dcoupar is on a distinguished road

Originally Posted by Ashish B View Post
The following codes work absolutely fine. The workoffset is set to Zero properly.
G90G10L2P1X0.0Y0.0Z0.0;
G11;



But if the following codes are commanded that alarm (ILLEGAL ADDRESS ERROR) is generated.
G90G10#5041=0.0;
G11;


Need help

A couple of things:

#5041 is READ ONLY.

G11 is not required for setting work coordinates with G10. It is required for Program Parameter Input with G10 L50 or tool life management data setting G10 L3.

What exactly are you trying to accomplish?
Reply With Quote

  #8   Ban this user!
Old 10-14-2011, 09:41 AM
 
Join Date: May 2007
Location: US
Posts: 779
Andre' B is on a distinguished road

If you want to set the work offsets without using G10 the variable numbers for the standard 6 generally are.
I do not remember any machine/control where they are at a different location.
The extended offsets and tool offsets are not as well defined.

Code:
     X axis Y axis Z axis 4th    etc.
G54  #5221  #5222  #5223  #5224
G55  #5241  #5242  #5243  #5244
G56  #5261  #5262  #5263  #5264
G57  #5281  #5282  #5283  #5284
G58  #5301  #5302  #5303  #5304
G59  #5321  #5322  #5323  #5324

EXT  #5201  #5202  #5203  #5204
The EXT work offset is basically added to the values in the normal work offsets. So if you put a 1.0 in #5201 you move all the work offsets 1 inch in the X axis.

Last edited by Andre' B; 10-14-2011 at 09:48 AM. Reason: Added the external work offset
Reply With Quote

  #9   Ban this user!
Old 10-14-2011, 10:01 PM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

Hi,

Thanks for your prompt responses.

I actually don't need to enter G54 work offsets through a program.

I am actually looking forward to zero out X,Y,Z axis (on Absolute page) of machine screen.

Thanks
Ashish
Reply With Quote

  #10   Ban this user!
Old 10-15-2011, 02:57 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,314
dcoupar is on a distinguished road

Originally Posted by Ashish B View Post
Hi,

Thanks for your prompt responses.

I actually don't need to enter G54 work offsets through a program.

I am actually looking forward to zero out X,Y,Z axis (on Absolute page) of machine screen.

Thanks
Ashish
WHY???
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-16-2011, 07:11 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Your absolute values will read 0(zero) on your absolute page if you program our G54-G59(which ever you are using) and then program X0Y0Z0. Other then that there is nothing you can do with these. As Dave asked....."what are you trying to do" and why???? As I am sure you know your absolute values are nothing more then what you specify as your origin and what position you are from that.

Stevo
Reply With Quote

  #12   Ban this user!
Old 10-19-2011, 12:15 AM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

Hi,
Thanks for your reply.

I am looking forward to keep track of certain values (when m/c is working) & hence wanted to make the Absolute screen as X0Y0Z0.

Thanks
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do we get absolute to Zero?? Fine01 Fanuc 1 10-23-2007 08:55 AM
Absolute zero of the CNC Machine. Evolution VIII DIY-CNC Router Table Machines 7 06-16-2007 11:43 PM
Display Absolute on tool offset page billm Fanuc 0 02-14-2007 02:12 PM
Arrow, Page Up & Page Down Keys - Rhino Video Tutorial Robert Schutz Rhino 3D 0 04-25-2006 10:09 AM
NC reading tool length from offset page, not data page..? RMagnusson Mazak, Mitsubishi, Mazatrol 1 03-21-2006 04:07 PM




All times are GMT -5. The time now is 01:05 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361