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! > CAM Software > SolidCam


SolidCam Discuss SolidCam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-09-2011, 04:57 AM
 
Join Date: Apr 2011
Location: usa
Posts: 2
dynoman8618 is on a distinguished road
Post processor no Feed in Turning

I have been using solid cam for Mill and am now trying to setup for Turn. Everything seems to be working fine except for the output of the feed for turning.
if I go into the tool data for a turning operation and select Feed Units "Inch/Min" It will output an F0 for the feed. See output of gcode below.

G98 G96
G0 X2.157 Z0.078
X2.127
G1 X1.971 F0
Z-0.674
X2.157
G98 G96 S1500
G1 Z-0.596 F0
G0 Z0.102
X2.109
G1 X1.951
Z-0.69
G0 X2.195
Z0.078
X2.157

If I select the Feed Units "Inch/Rev? it will output the correct feed units specified in the feed normal and feed finish dialog box. See below.

G99 G96
G0 X2.157 Z0.078
X2.127
G1 X1.971 F0.05
Z-0.674
X2.157
G99 G96 S1500
G1 Z-0.596 F0.025
G0 Z0.102
X2.109
G1 X1.951
Z-0.69
G0 X2.195
Z0.078
X2.157

When I turn on the tracing it is outputing the feed command from the @line in the post processor which is as follows. This is a Generic FanucOT post which I have only made minor changes to but have not changed any of this section.

@line
if ben2
if work_type eq ROUGH
gcode = 1
{nb, ['G'gcode]}
if process_type eq LONG then
{' X'xpos}
else
{' Z'zpos}
endif
ben2 = false
else
gcode = 1
{nb, ['G'gcode]}
{[' X'xpos], [' Z'zpos]}
endif
else
gcode = 1
{nb, ['G'gcode]}
{[' X'xpos], [' Z'zpos]}
endif

if prev_command eq '@turn_proc' then
change(feed) = TRUE
endif

if feed_unit eq css
if m_feed_flag eq 1
{' F'feed }
m_feed_flag = 0
else
{[' F'feed] }
endif
else
if m_feed_flag eq 1
{' F'feed:'5.0(p)'}
m_feed_flag = 0
else
{[' F'feed:'5.0(p)']}
endif
endif

endp

Not sure what Ben2 is or the m_feed flag is and what this is exactly trying to do but any help would be greatly appreciated.
Reply With Quote

  #2   Ban this user!
Old 09-13-2011, 11:42 PM
 
Join Date: Apr 2011
Location: usa
Posts: 2
dynoman8618 is on a distinguished road
any help would be appreciated.

bump.
Reply With Quote

  #3   Ban this user!
Old 09-14-2011, 01:59 AM
 
Join Date: Oct 2007
Location: United Kingdom
Posts: 393
Brakeman Bob is on a distinguished road

Have you searched through your GPP file file for the variables ben2 and m_feed_flag to see what sets them? If you can't find anything that sets them, try inserting a line to set them to a value and see what difference it makes. I must confess I am at a loss as to what ben2 does and I am surprised that the post works as the "if ben2" statement has no decision logic in it (though on reflection it could be just a logic check meaning "if ben2 equals true do the below").

What changes in the Trace when you set the feed to in/min? This will give you a clue as to what code needs to created in the GPP file to set the options you need.

Why do you want to program in in/min? In my experience, lathes are generally programmed with the feed given in feed per rev (because of the constant surface speed) whilst milling is programmed in feed per min. Does your machine handle feed per rev? In Fanuc I think it is just an M code (M94 or M95 I think) to change from feed per min to feed per rev.
Reply With Quote

  #4   Ban this user!
Old 09-14-2011, 05:37 PM
 
Join Date: Jul 2011
Location: Australia
Posts: 49
Aussie_CNC is on a distinguished road

The easiest way to find out what Ben2 and m_feed_flag are used for is as Bob pointed out - use a text editor and 'find next' to locate all instances of these parameters in the gpp file.

For example, if you search for Ben2, you'll find it's a logical statement (True/False) as defined in @init_post, and is set to true in @turning (turning cycle call). Then when the @line code is called after @turning, the first move is only initiated in X or Z depending on whether it's a 'LONG' or 'FACE' operation. After that, ben2 is set to false, so normal output resumes until another @turning is called.

m_feed_flag is a numeric statement, which is set to 1 in @feed_spin. This is used to force the feedrate after every @feed_spin. If m_feed_flag is 0, the feed is only output if it's changed - that's what the [] brackets mean - only output if value is deemed to have changed, which can be seen as a T (true) or F (false) in the trace against the value. In reality, m_feed_flag could have been a LOGICAL statement, but there's always more than one way to skin a cat ...(that sounds so wrong)

Hope that helps.

To answer your specific question on feed/min and feed/rev, are you using CSS? If you are, then I recommend you use feed/rev, as that value remains the same throughout the rev range, whereas feed/min changes every time the rpm changes. When you use feed/rev, the controller automatically increases feed/min to match rpm.

Hope that makes sense!?
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
Problem- Feed/Speed to avoid chatter in turning OP Driftwood General Metalwork Discussion 2 07-16-2010 02:31 PM
More turning post processor fun. inflateable EdgeCam 7 03-25-2008 10:41 AM
Turning post processor - G74 inflateable EdgeCam 3 03-18-2008 11:51 AM




All times are GMT -5. The time now is 09:45 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