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