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 > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 11-24-2003, 08:01 PM
 
Join Date: Jul 2003
Location: Colorado
Posts: 71
Tazzer is on a distinguished road
Unhappy Wierd NC Code and G-Code

I just started working at this granite shope and the current post processor that we are using outputs some codes that I have never seen nor can I find in any books. I was wondering if anyone could possible explain what some of these codes are and how to decipher the NC file?

Also this is a CMS Junior 1.40 with a OASI/10 controller

Here are some of the funky codes that I am not sure about. The actual nc code is below this list!

G79 (I believe this is the Origin)
E190
$ORIG3
E195
M40
M41
CLS
VEN
WOS
UOT
USVAR10
CAMBUT
MSA
UAO
M45
E184
E185

START OF CODE
++++++++++++++++++++++++++++++++++++++++++++
;Program: TEST
;Date: 24-11-2003
(DIF,2,4,13,1,3,1,1)
(CLS,MESSAGGI)
(INP,N2,T!USVAR10(440).19CH,!USVAR10(0).40CH,40,E181)
G00 G79 Z0
G16 X Y
$ORIG3(1)=12.356
E190=12.356
$ORIG3(2)=8
E195=8
$ORIG3(3)=-11.25208
G00 G79 Z0
N0 (IF,E181=1)
T0.0 M6
M5
(CLS,CAMBUT)
(DIS,!USVAR10(480).40CH)
M40
(WOS,$I(34)=1)
(CLS,VEN200)
(UOT,0,X0,Y0,Z-.1)
G00 X11.746Y13.689
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN200)
(UOT,0,X0,Y0,Z-.1)
G00 X23.163Y7.39
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN200)
(UOT,0,X0,Y0,Z-.1)
G00 X38.911Y7.39
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN240)
(UOT,0,X0,Y0,Z0)
G00 X27.256Y14.571
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN240)
(UOT,0,X0,Y0,Z0)
G00 X35.763Y20.474
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN240)
(UOT,0,X0,Y0,Z0)
G00 X19.068Y20.907
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN130)
(UOT,0,X0,Y0,Z0)
G00 X18.513Y13.38
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN130)
(UOT,0,X0,Y0,Z0)
G00 X36.238Y12.908
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(CLS,VEN130)
(UOT,0,X0,Y0,Z0)
G00 X27.256Y21.963
Z-6.14
M40
(WOS,$I(34)=1)
M41
(UOT,0,X0,Y0,Z0)
Z0
(DIS,!USVAR10(160).40CH)
(ENDIF)
G79 X-0 Y55.00
M45
(DAN)
(UPR)
(CLS,SHIFTXY)
(CLS,VEN120)
M40
(WOS,$I(34)=1)
M41
(DIS," SAW_PROFILE ")
G79 G00 Z0
T.0 M6
M5
T2 M6
(UAO,3)
(UOT,3,ZE182)
G90 G00 X27.369 Y-1
Z10.7339 C90
M14 M7 S4500
G90 G09 G01 Z9.1939 F3
Y2 F30
Y17.2534
G00 Z10.7339
X27.4827 Y16.5356 C108
G09 G01 Z9.1939 F3
X27.3261 Y17.0176 F30
G00 Z10.7339
X27.656 Y16.37 C126
G09 G01 Z9.1939 F3
X27.3581 Y16.78 F30
G00 Z10.7339
X27.872 Y16.2661 C144
G09 G01 Z9.1939 F3
X27.462 Y16.564 F30
G00 Z10.7339
X28.1096 Y16.2341 C162
G09 G01 Z9.1939 F3
X27.6276 Y16.3907 F30
G00 Z10.7339
X28.3454 Y16.277 C180
G09 G01 Z9.1939 F3
X1.8386 F30
G00 Z10.7339
X2.5564 Y16.3907 C198
G09 G01 Z9.1939 F3
X2.0744 Y16.2341 F30
G00 Z10.7339
X2.722 Y16.564 C216
G09 G01 Z9.1939 F3
X2.312 Y16.2661 F30
G00 Z10.7339
X2.8259 Y16.78 C234
G09 G01 Z9.1939 F3
X2.528 Y16.37 F30
G00 Z10.7339
X2.8579 Y17.0176 C252
G09 G01 Z9.1939 F3
X2.7013 Y16.5356 F30
G00 Z10.7339
X2.815 Y17.2534 C270
G09 G01 Z9.1939 F3
Y1.7466 F30
G00 Z10.7339
X2.7013 Y2.4644 C288
G09 G01 Z9.1939 F3
X2.8579 Y1.9824 F30
G00 Z10.7339
X2.528 Y2.63 C306
G09 G01 Z9.1939 F3
X2.8259 Y2.22 F30
G00 Z10.7339
X2.312 Y2.7339 C324
G09 G01 Z9.1939 F3
X2.722 Y2.436 F30
G00 Z10.7339
X2.0744 Y2.7659 C342
G09 G01 Z9.1939 F3
X2.5564 Y2.6093 F30
G00 Z10.7339
X1.8386 Y2.723 C360
G09 G01 Z9.1939 F3
X28.3454 F30
G00 Z10.7339
X27.6276 Y2.6093 C18
G09 G01 Z9.1939 F3
X28.1096 Y2.7659 F30
G00 Z10.7339
X27.462 Y2.436 C36
G09 G01 Z9.1939 F3
X27.872 Y2.7339 F30
G00 Z10.7339
X27.3581 Y2.22 C54
G09 G01 Z9.1939 F3
X27.656 Y2.63 F30
G00 Z10.7339
X27.3261 Y1.9824 C72
G09 G01 Z9.1939 F3
X27.4827 Y2.4644 F30
G00 Z10.7339
X27.369 Y1.7466 C90
G09 G01 Z9.1939 F3
Y2 F30
G00 Z10.7339
(DIS," OGEE_EXT Y ROUGH ")
G79 G00 Z0
M5
T0.0 M6
M5
(CLS,CAMBUT)
T.4 M6
G0 G79 Z0
E184=0.026
E185=E184+E183
MSA=E185
(UAO,3)
(UOT,3,ZE182)
G90 G00 X32.592 Y2
Z2.318 C0
M14 M7 S4500
G90 G01 Z0 F25
G42 Y-1
G02 X29.592 Y2 R3
G01 Y9.5 F27
Y17
G03 X28.092 Y18.5 R1.5
G01 X2.092
G03 X0.592 Y17 R1.5
G01 Y2
G03 X2.092 Y0.5 R1.5
G01 X28.092
G03 X29.592 Y2 R1.5
G02 X32.592 Y5 R3 F25
G40 G01 Z1.5
Y2
Z2.318
G00
M45
(DAN)
(UPR)
(DIS," OGEE EXT D1 ")
G79 G00 Z0
M5
T0.0 M6
M5
(CLS,CAMBUT)
T.41 M6
G0 G79 Z0
E184=0.026
E185=E184+E183
MSA=E185
(UAO,3)
(UOT,3,ZE182)
G90 G00 X32.592 Y2
Z2.2065 C0
M14 M7 S4500
G90 G01 Z0 F25
G42 Y-1
G02 X29.592 Y2 R3
G01 Y9.5
Y17
G03 X28.092 Y18.5 R1.5
G01 X2.092
G03 X0.592 Y17 R1.5
G01 Y2
G03 X2.092 Y0.5 R1.5
G01 X28.092
G03 X29.592 Y2 R1.5
G02 X32.592 Y5 R3
G40 G01 Z1.5
Y2
Z2.2065
G00
M45
(DAN)
(UPR)
(DIS," OGEE EXT D3 ")
G79 G00 Z0
M5
T0.0 M6
M5
(CLS,CAMBUT)
T.42 M6
G0 G79 Z0
E184=0.014
E185=E184+E183
MSA=E185
(UAO,3)
(UOT,3,ZE182)
G90 G00 X32.592 Y2
Z2.201 C0
M14 M7 S4500
G90 G01 Z0 F27
G42 Y-1
G02 X29.592 Y2 R3
G01 Y9.5
Y17
G03 X28.092 Y18.5 R1.5
G01 X2.092
G03 X0.592 Y17 R1.5
G01 Y2
G03 X2.092 Y0.5 R1.5
G01 X28.092
G03 X29.592 Y2 R1.5
G02 X32.592 Y5 R3
G40 G01 Z1.5
Y2
Z2.201
G00
M45
(DAN)
(UPR)
(DIS," OGEE EXT D4 ")
G79 G00 Z0
M5
T0.0 M6
M5
(CLS,CAMBUT)
T.43 M6
G0 G79 Z0
E184=0.005
E185=E184+E183
MSA=E185
(UAO,3)
(UOT,3,ZE182)
G90 G00 X32.592 Y2
Z2.158 C0
M14 M7 S4500
G90 G01 Z0 F27
G42 Y-1
G02 X29.592 Y2 R3
G01 Y9.5
Y17
G03 X28.092 Y18.5 R1.5
G01 X2.092
G03 X0.592 Y17 R1.5
G01 Y2
G03 X2.092 Y0.5 R1.5
G01 X28.092
G03 X29.592 Y2 R1.5
G02 X32.592 Y5 R3
G40 G01 Z1.5
Y2
Z2.158
G00
M45
(DAN)
(UPR)
G79 G00 Z0
M05
G79 G00 X0 Y55.118 C0
M5

M30
Reply With Quote

  #2   Ban this user!
Old 11-25-2003, 07:44 AM
 
Join Date: Nov 2003
Location: ETTERS, PA
Posts: 5
HGEYER is on a distinguished road

M40=PROGRAM STOP W/ OPTIONAL PROGRAM RERUN
M41= OPTIONAL STOP W/ OPTIONAL FORMATTED MESSAGE
M45= OUTPUT ASCII CHARACTER TO SERIAL PORT


I'LL CHECK ON SOME OF THE OTHER STUFF.
Reply With Quote

  #3   Ban this user!
Old 11-25-2003, 03:05 PM
 
Join Date: Oct 2003
Location: eugene,oregon
Posts: 3
freemanb is on a distinguished road

At my company we have a CMS 5-axis router and some of the code looks familiar and some of it does not.
G79 ---we use it as an absolute zero command (follwed by one or more axis)
E190---?
$ORIG3---there has to be a table that this command refers to, We use the OSAI/10 on 4 machines. As it is very flexible in regards to configuration of the interface it could be anything, though.
E195
M40---spindle off
M41---spindle on
CLS--call of sub program
VEN
WOS
UOT---temporary origin
USVAR10---user variable
CAMBUT---?
MSA---?
UAO---use absolute origin
M45---?
E184---?
E185---?

Of course every machine is different but I would assume that the MSA and E codes are some sort of machine compensation (not tool) maybe for spindle length or tool length. Not sure though, hope you figure it out.
Reply With Quote

  #4   Ban this user!
Old 12-08-2003, 11:15 AM
 
Join Date: Dec 2003
Location: New Hartford, CT 06057
Posts: 1
engbob is on a distinguished road
CMS 'weird' codes

Greetings,

I hope this isn't too late to be of use to you.

CMS machines have their own particular codes written in the chipset. They differ according to the controller used, but there are many that are common.

G79 = reference all moves from machine 0,0,0 (hard home)
They provide this code so that you can program a move without having to change any origin shifts.

Anything with "E" is usually a user variable. For example, I program our CMS for making guitar necks. We have three different heel lengths, so the saw blade needs three different depths. I use the same subprogram, but the main program supplies the depth by a variable, for example

(SUPERSHALL HEEL DEPTH)
E35=-1.5
(MID HEEL DEPTH)
E35=-1.875
(FULL HEEL DEPTH)
E35=2.25

It is then called up in the subprogram when the blade cuts:

G01 ZE35

The number after the "E" controls the type of variable allowed (INTEGER; LONG INTEGER; BYTE; REAL; LONGREAL). The range on your example is much higher then our controller uses (Our format is E0 through E30). The manual implies that the format can go beyond E30 to a user assigned maximum, but I've never tried it). Looking at your code, I'm not sure why the post would spit out the variables without user interaction, but then again, I've never had a good CMS post for our machine. I've had to do a lot "by hand".

M45 is a CMS specific code; I'm not sure what yours would be. Our machine uses an Allen-Bradley 8601MC controller, and has two rotating heads. The M45 for ours closes the dust collection gate on the "B" Head. I suspect yours does something different.

VEN, WOS, MSA along with CLS, UOT, UAO are CMS 3-letter commands. I don't have a listing for VEN, WOS or MSA. If you haven't figured them out I can try and find out what they are.

I have been able to at times talk with CMS' former head of programming. (He's a wealth of knowledge, and generious person). I will see if he recognizes anything in your code. It may take time, he is usually on the move.

Hope I was of some help.
__________________
rpm
Reply With Quote

  #5   Ban this user!
Old 12-19-2003, 04:15 PM
 
Join Date: Nov 2003
Location: eagle creek OR
Posts: 2
Okuma is on a distinguished road

Looking for an editor to do code for a old anilam crusader 2 controll anyone have an idea thanks okuma
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-30-2004, 06:27 AM
 
Join Date: Dec 2003
Location: Oregon Alpha
Posts: 7
mach3magee is on a distinguished road

Thats the Swahilee version of CaveMan Cam
__________________
The only thing we have to fear is..

getting sucked into a lathe.
Reply With Quote

  #7   Ban this user!
Old 04-30-2007, 07:34 PM
 
Join Date: Apr 2006
Location: Canada
Posts: 2
chemarius is on a distinguished road

G79 -SETS PROGRAMMING IN ABSOLUTE REFERENCE TO MACHINE HOME POSITION
E190 -PARAMETER#190
$ORIG3 -FUNCTION
E195 -PARAMETER#195
M40 -DEACTIVATE SPINDLE RANGE / SPINDLE RANGE RESET
M41 -SPINDLE RANGE
CLS -CALL A SUBROUTINE / SUBPROGRAM
VEN -"VEN200" SUBPROGRAM'S NAME
WOS -WAIT ON SIGNAL / WAIT UNTIL THE CONDITION IS
SATISFIED
UOT -USE TEMPORARY ORIGIN / UOT=UTO COMPATIBILITY
BETWEEN 10 SERIES & 8600 SERIES
!USVAR10 -USER VARIABLE
CAMBUT -CAMBUT SUBPROGRAM'S NAME
MSA -MACHINING STOCK ALLOWANCE / MSA=UOV
UAO -USE ABSOLUTE ORIGIN
M45 -AUTOMATIC SPINDLE RANGE CHANGE
E184 -PARAMETER#184
E185 -PARAMETER#185
INP -INPUT
G16 -DEFINED INTERPOLATION PLANE
DIS -DISPLAYING A VARIABLE
DAN -DEFINE AXIS NAME
UPR -USE PLANE ROTATED

Hope this helps
Reply With Quote

  #8   Ban this user!
Old 01-16-2009, 12:24 PM
 
Join Date: Jan 2009
Location: UK
Posts: 2
jo-jo is on a distinguished road

I am programming a 12 year old CMS Router with an Allen Bradley controller. Does anyone know what G795, G796 & G798 do?
Reply With Quote

  #9   Ban this user!
Old 06-21-2010, 02:36 PM
 
Join Date: May 2009
Location: USA
Posts: 4
CMSGlassGuy is on a distinguished road

WOS = Wait on signal. Waits until targeted bit in an input or output module equals specified value.
Example:
(WOS,@SX=1)
Addresses of various bits in the input/output modules can be determined with the help of the Programming Manuals + Schematic.
WOS can cause a duel process control to hang up, so it is often better to use a conditional loop instead:
"LOOP"
(GTO,RUN,$I(36)=0)
(GTO,LOOP)
"RUN"

MSA = Make stock allowance. This can be a positive or negative number that directly and temporarily modifies the active tool radius compensation value. Can be used to create rough, repeat or clean-up passes while keeping an accurate tool measurement in the offset table. Can be placed anywhere before tool radius comp is activated and will effect every tool until cancelled.
Example:
MSA=.01
Cancel with:
MSA=0


G*** (G305, G523, etc) are a range of subroutine and canned cycle names that can be run directly as G codes, thus avoiding the uses of the (CLS, ***) command. The G*** subroutines are a text file that can also be used by the machine logic and can perform any programming language function or repetitious task. Opening the file in a text editor is the only sure way of determining what it does. Never open a program file with any kind of editor that inserts format characters (use notepad or wordpad vs. MS office products)

VEN*** is not a command, it is the name of a subroutine used by Glass and Stone machines to display the name and dimensions of various vacuum accessories as the locations are pointed out by the machine. There is a VEN160, VEN200... named and edited for each accessory.

Many CMS machines use subroutines or resident files to manage proprietary functions that are typically external to the control. They may contain any programming language accepted by the control.
Reply With Quote

  #10   Ban this user!
Old 01-09-2012, 05:52 AM
 
Join Date: Jan 2012
Location: Serbia
Posts: 2
Marko Kostic is on a distinguished road
I need help!

I really need help guys!
The company where I started to work has "Monopost CMS model: CN/9R2 RG, serial No.:560", but no user manual fot it. It is quite an old machine...
I saw that you mentioned earlier CMS, so I'm asking if anyone has a *.pdf instructions for its use or if you know where I can find it.
I'm new in programming the machines and help would welcome.
Thank You

Last edited by Marko Kostic; 01-09-2012 at 07:23 AM.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-09-2012, 01:07 PM
 
Join Date: Jul 2007
Location: USA
Posts: 134
Excelmachine is on a distinguished road

Originally Posted by Marko Kostic View Post
I really need help guys!
The company where I started to work has "Monopost CMS model: CN/9R2 RG, serial No.:560", but no user manual fot it. It is quite an old machine...
I saw that you mentioned earlier CMS, so I'm asking if anyone has a *.pdf instructions for its use or if you know where I can find it.
I'm new in programming the machines and help would welcome.
Thank You
Marko:
Try posting your question here, Machinery Manuals & Brochures - CNCzone.com-The Largest Machinist Community on the net! . That might have more visitors that can answer your question. Good luck.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM
parametric programming Karl_T CamSoft Products 21 05-24-2005 02:58 PM
G CODE programing mold tech G-Code Programing 2 01-31-2005 12:48 PM
I need sample G code program bunalmis G-Code Programing 1 08-24-2004 03:50 AM
Getting The Most Out of CNCzone's Posting Features CNCadmin CNCzone.com FAQ 0 03-01-2003 11:08 PM




All times are GMT -5. The time now is 05:54 PM.





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