Hi to all,
before execution of a third line of the subprogram O7015 an alarm appears - PS0004 INVALID BREAK POINT OF WORDS. I really don't know where is the problem.
Maybe a wrong use of OR function.
I tried also:
IF[#600EQ2OR3]THEN[#654=44.2]
and the same alarm appears.
AND function is working well.
The controller is DOOSAN Fanuc i Series
Maybe someone knows how to solve this problem?
Thanks
Tomaz
%
O3840 ( MAIN PROGRAM )
#600=1
#601=4
#602=40.
#603=100.
#604=2.5
#605=39.
#608=1500
#609=0.2
#607=1.
#606=2.
M98P7015
M53
G28 U0.
G30 W0.
...
...
%
O7015 ( SUBPROGRAM )
IF[[#600EQ1]AND[#602EQ38.]]THEN[#654=37.9]
IF[[#600EQ1]AND[#602EQ40.]]THEN[#654=39.9]
IF[[#600EQ2]OR[#600EQ3]]THEN[#654=44.2]
IF[#600EQ3]THEN[#654=44.2]
IF[[#600EQ4]AND[#602EQ38.]]THEN[#654=45.9]
IF[[#600EQ4]AND[#602EQ40.]]THEN[#654=47.9]
IF[[#601EQ1]OR[#601EQ4]OR[#601EQ5]]THEN[#650=36.9]
IF[[#601EQ2]OR[#601EQ3]]THEN[#650=46.9]AND[#656=2]
IF[#601EQ1]THEN[#651=108.]AND[#655=42.785]AND[#656=2]AND[#660=31.25]
IF[#601EQ2]THEN[#651=110.]AND[#660=31.75]
IF[#601EQ3]THEN[#651=79.]AND[#660=9.5]
IF[#601EQ4]THEN[#651=82.]AND[#655=29.785]AND[#656=2]AND[#660=25.]
IF[#601EQ5]THEN[#651=52.]AND[#655=14.285]AND[#656=1]AND[#660=8.]
#652=[#651-18.]
#653=[#651-[#650+6.1]]
#657=#652/#656
IF[#656EQ1]THEN[#658=2]
IF[#656EQ2]THEN[#658=1]
#659=8
#661=65.
IF[#601EQ5]THEN[#661=60.]
IF[[#600NE1]OR[#600NE2]OR[#600NE3]OR[#600NE4]]GOTO1001
IF[[#601NE1]OR[#601NE2]OR[#601NE3]OR[#601NE4]OR[#601NE5]]GOTO1002
IF[[#602NE38.]OR[#602NE40.]]GOTO1003
IF[#605GT#654]GOTO1004
M99
before execution of a third line of the subprogram O7015 an alarm appears - PS0004 INVALID BREAK POINT OF WORDS. I really don't know where is the problem.
Maybe a wrong use of OR function.
I tried also:
IF[#600EQ2OR3]THEN[#654=44.2]
and the same alarm appears.
AND function is working well.
The controller is DOOSAN Fanuc i Series
Maybe someone knows how to solve this problem?
Thanks
Tomaz
%
O3840 ( MAIN PROGRAM )
#600=1
#601=4
#602=40.
#603=100.
#604=2.5
#605=39.
#608=1500
#609=0.2
#607=1.
#606=2.
M98P7015
M53
G28 U0.
G30 W0.
...
...
%
O7015 ( SUBPROGRAM )
IF[[#600EQ1]AND[#602EQ38.]]THEN[#654=37.9]
IF[[#600EQ1]AND[#602EQ40.]]THEN[#654=39.9]
IF[[#600EQ2]OR[#600EQ3]]THEN[#654=44.2]
IF[#600EQ3]THEN[#654=44.2]
IF[[#600EQ4]AND[#602EQ38.]]THEN[#654=45.9]
IF[[#600EQ4]AND[#602EQ40.]]THEN[#654=47.9]
IF[[#601EQ1]OR[#601EQ4]OR[#601EQ5]]THEN[#650=36.9]
IF[[#601EQ2]OR[#601EQ3]]THEN[#650=46.9]AND[#656=2]
IF[#601EQ1]THEN[#651=108.]AND[#655=42.785]AND[#656=2]AND[#660=31.25]
IF[#601EQ2]THEN[#651=110.]AND[#660=31.75]
IF[#601EQ3]THEN[#651=79.]AND[#660=9.5]
IF[#601EQ4]THEN[#651=82.]AND[#655=29.785]AND[#656=2]AND[#660=25.]
IF[#601EQ5]THEN[#651=52.]AND[#655=14.285]AND[#656=1]AND[#660=8.]
#652=[#651-18.]
#653=[#651-[#650+6.1]]
#657=#652/#656
IF[#656EQ1]THEN[#658=2]
IF[#656EQ2]THEN[#658=1]
#659=8
#661=65.
IF[#601EQ5]THEN[#661=60.]
IF[[#600NE1]OR[#600NE2]OR[#600NE3]OR[#600NE4]]GOTO1001
IF[[#601NE1]OR[#601NE2]OR[#601NE3]OR[#601NE4]OR[#601NE5]]GOTO1002
IF[[#602NE38.]OR[#602NE40.]]GOTO1003
IF[#605GT#654]GOTO1004
M99