![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General CNC (Mill and Lathe) Control Software (NC) General Discussion of CNC (Mill and Lathe) control software here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| I am trying to program an 840c to use conditional statements. I know how to do this with a fanuc, but am new to programming the siemens control. The following is an example with fanuc program any help converting would be appreciated. thanks in advance. N005 R500=1 N010 IF R500 EQ 1 GOTO 20 N015 IF R500 GT 1 GOTO 25 N20 M98 P2 N25 M98 P3 |
|
#3
| |||
| |||
| mmachining, never seen <> used in a program as a quick follow up below is the correct code, N045 R600=1 (INPUT VARIABLE FOR PART NUMBER) R601=1 (1= OUTER RING 80 HOLES) R602=2 (2= INNER RING 60 HOLES) R603=3 (3= TOP OUTER RING 2 HOLES) R604=4 (4= TOP INNER RING) R605=5 (5= BOTTOM OUTER RING) R606=6 (6= BOTTOM INNER RING) N050 @121 R600 R601 K60 N055 L20031 N060 @121 R600 R602 K70 N065 L20032 N070 @121 R600 R603 K80 N075 L20033 N080 @121 R600 R604 K90 N085 L20034 N090 @121 R600 R605 K100 N095 L20035 N100 @121 R600 R606 K110 N105 L20036 N110 M30(END OF PROGRAM) |
|
#4
| |||
| |||
Dear All, Good Morning to u all !!!!!!!!!!!! Pl note that subject machine was ok till yesterday & now we are getting Alarm 3000 1 N400 General Program Error a) Checked SPF 152, which is run on this machine & found N0400 @121 R1917 K1 K0410 In single block, we can see current block Protected cycle SPF 1000 Program Pointer SPF 152 1 SPF 1000 P1 N325 b) Even in case of SPF 151, SPF 101 also we get same error Please advice at maddala.rishikesh@tatamotors.com Best Regards, M. Rishikesh |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |