VKRC glue functions - parameter tables, Genau and comments
Three functions in the menu VKRC » More help to keep glue programs (VW standard KL) in order:
English DReS - Glue Programs - Renumber Parameter Tables, Set Genau and CD in Seconds (YouTube, English)
Deutsch DReS - Klebeprogramme - Parametertafeln neu nummerieren, Genau und CD in Sekunden setzen (YouTube, Deutsch)
Menu VKRC » More with the glue functions.
The functions work in Folge and UP programs opened in the VKRC editor. They support up to three glue controllers KL1, KL2 and KL3. At the end a window shows what was changed. The program is not saved - check the changes and save the file yourself. The changes cannot be reverted with Undo (the editor clears the undo history after changing the point data); to discard them, close or reload the file without saving.

▲ Rules of the VW standard used by the functions


▲ Renumber the glue Schaltpunkt

The function searches the program for the parameter table commands BS binXX ( EIN ) = n of the selected glue controllers and gives them consecutive numbers. Only the number is changed - the switching distance, the delay time and the rest of the line stay as they are.

Dialog Enumerate glue Schaltpunkt - KL1 with bin11, start value 2 proposed from TECH3 KL ... Parametertafel=1 before the seam, comment Parametersatz.
Result after a new point with BS bin11 ( EIN ) = 30 was inserted in the middle of the seam: 92 parameter table commands found, 63 renumbered (31 … 93), 57 comments corrected and 10 missing comments added.
FieldMeaning
KL1 / KL2 / KL3glue controllers whose parameter tables are renumbered
binXXbinary output with the parameter table number of this controller. Default: bin11 for KL1, bin9 for KL2, bin7 for KL3. Check the I/O assignment of your robot - e.g. in the KS26 standard KL2 and KL3 use bin12 and bin13. The values are saved in the settings and used also by Add comment for Schaltpunkt. The same output cannot be selected for two controllers.
From point ... toonly parameter table commands of points with these point numbers are changed (e.g. one seam of a program with several seams)
Start valuenumber of the first parameter table command. The editor proposes the number of the parameter table set before the first BS command + 1 (for bin11 ( EIN ) = 1 it proposes 2), so the numbering continues without a gap.
None / Add comment / Modify commentoptional comment above every point with a parameter table command, see Comments
Comment texttext of the comment; the parameter table number is added at the end. The keyword __KLNO__ is replaced by KL1, KL2 or KL3.

Example - KL1, start value 2:

Before:
KLIN VB=250[mm/s] Genau=50[mm] ACC=100% RobWzg=1 Base=1 SPSTrig=0[1/100s]
   BS bin11 ( EIN ) = 7 Schaltpkt: 5 [mm]: -50[ms]
KLIN VB=250[mm/s] Genau=50[mm] ACC=100% RobWzg=1 Base=1 SPSTrig=0[1/100s]
   BS bin11 ( EIN ) = 5 Schaltpkt: 0 [mm]: -50[ms]

After:
KLIN VB=250[mm/s] Genau=50[mm] ACC=100% RobWzg=1 Base=1 SPSTrig=0[1/100s]
   BS bin11 ( EIN ) = 2 Schaltpkt: 5 [mm]: -50[ms]
KLIN VB=250[mm/s] Genau=50[mm] ACC=100% RobWzg=1 Base=1 SPSTrig=0[1/100s]
   BS bin11 ( EIN ) = 3 Schaltpkt: 0 [mm]: -50[ms]


▲ Set Genau for the glue points

The function calculates Genau of every KLIN and KCIR point in the program:

Genau [mm] = VB [mm/s] / divisor


The result is always rounded to an integer value, because the Genau parameter accepts only integers. With the default divisor 5 (1/5 of the speed) VB=70[mm/s] gives Genau=14[mm] and VB=250[mm/s] gives Genau=50[mm].

Dialog Set Genau for the glue points - divisor 5, working points with Genau=0.
Result: Genau changed in 121 KLIN points - VB=250[mm/s] with Genau 40, 10, 5 or 1 mm → Genau=50[mm].
FieldMeaning
Genau [mm] = VB [mm/s] /divisor, 1 ... 100, default 5
For working points (where Makro or UP is called) set Genau parameter to 0 a KLIN / KCIR point that calls a makro or a subprogram in its subfolds (SPSMAKROxx = ..., UPxx = ..., REPEAT UP / MAKRO) gets Genau=0[mm]. Without this option these points get the calculated value too.

The divisor and the option are saved in the settings. Only the Genau value in the point line changes; for a KCIR motion the value is stored for both points of the arc. Other motions (PTP, LIN, CIRC, ...) are not changed. Points without a Genau parameter or without point data are skipped and counted in the summary.

▲ Add comment for Schaltpunkt

The function writes a comment above every point with a parameter table command, e.g.:

-- KL1 Schaltpunkt 5 --
KLIN VB=250[mm/s] Genau=50[mm] ACC=100% RobWzg=1 Base=1 SPSTrig=0[1/100s]
   BS bin11 ( EIN ) = 5 Schaltpkt: 5 [mm]: -50[ms]


Dialog Add comment to glue point.
Called after the renumbering: all 92 comments are already present - nothing is added twice.
In the dialog enter the comment text (__KLNO__ is replaced by KL1, KL2 or KL3), select the glue controllers and check their binary outputs (the same settings as in Renumber the glue Schaltpunkt). The number in the comment is the number of the parameter table command of the point.

▲ Comments


▲ See also