585,927 active members*
3,876 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    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

  2. #2
    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.

  3. #3
    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

  4. #4
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •