-
I have the following problem.
The handover of the defined parameter is not considered in the subprogram. What could be the reason for it?
;main program
N1 DEF INT PAR_1, PAR_2
N2
N3 PAR_1=4
N4 PAR_2=6
N5
N6 CALL"1_UNTER"
N7
N8 MSG(<<R3)
N9 G4 F5
N10
N11 M02
;subprogram
N1 R3=PAR_1+PAR_2
N2
N3 M17
-
Hello
You have defined the definition in the program but that doesn’t mean it’s also active in the program.
There are two possibilities: either you define it in the UGUD (that’s the easiest way) or in the subprogram with handover of the values for the definitions.
-
Morning
I have quickly entered the program and it worked without problems.
A stupid question but did you load the subprogram? Do you get any kind of error message?
Regards
Nprot
-
Hello everyone
I always use handover variables to handover into the subprogram
MPF
..
..
..
N410 T_5_KR (BWE, POS_X1, POS_Y1, POS_Z, HOHE, DIAMETER, DIRR)
Regards