Reports
The profile list line R is used in profile end shape type files, and it provides data for the profile list and profile sketch.
The IND layout files (.ind) determine the fixed layout and content of the profile lists and sketches. This ensures a unified presentation of data in profile lists and sketches for all profile types. See Report Layout.
A fixed way to present profile end data in the profile lists and sketches is not always desired however. For these cases it is possible to use an R line in the profile end type file to specify a different presentation of the end shape in the profile list and sketch. The data in the R line is processed by the relevant IND file, so the general layout of the profile list and sketch will be according to the IND file.
R lines in type files
The R line begins with the R character, followed by several parameters. The following parameters can be included in an R file:
TY | Type | Type designation to be included in the list or robot file. |
R1 | Rvar_1 | First R variable of the end type. It usually specifies the distance of the slanted side in mm in relation to the profile height. |
R2 | Rvar_2 | Second R variable of the end type. |
R3 | Rvar_3 | Third R variable of the end type. |
R4 | Rvar_4 | Fourth R variable of the end type. |
RN | Rvar_N | The range of N is from 1 up to 8. |
Note: The R line data is also exported to robot files that are meant for the R.S. robot. The R.S. robot is the only robot type that uses the data in the R line.
Layout files and R line parameters
The IND layout files use the EERSTE_R[number] and TWEEDE_R[number] variables:
- EERSTE is for the first end type (left side)
- TWEEDE is for the second end type (right side)
If no R line is included in the type file, the R1 variable will be stored in EERSTE_R1 or TWEEDE_R1. Similarly, R2 will be stored in EERSTE_R2 or TWEEDE_R2, and so on.
Changing the end shape presentation
With an R line it is possible specify which R or V variables should be used in the profile list and sketch, and to which EERSTE_R1 to EERSTE_R8 or TWEEDE_R1 to TWEEDE_R8 variables they should be assigned.
Example:
R TY BA R1 _4 R4 _1 V3 _3 R2 r=
TY BA
: The end type is given a type code BA.R1 _4
: The value of R1 is stored in the EERSTE_R4 or TWEEDE_R4 variable.R4 _1
: The value of R4 is stored in the EERSTE_R1 or TWEEDE_R1 variable.V3 _3
: The value of V3 is stored in the EERSTE_R3 or TWEEDE_R3 variable.r=
: An r= code is included for the R2 value. This means that the value of EERSTE_R2 or TWEEDE_R2 will be r=30, in case the value of R2 is 30.
Calculations: The R line allows calculations with the R, V, and H1 variables. For example:
R TY BA R1*H1 _4 R4/H1 _1 V3+H1 _3 R2-H1 r=
R1*H1
: The value of R1 is converted to a distance by multiplying it with the profile height. An angle or interior angle may also be used here (see below). R1 has a default value that is calculated by the program. The value specifies the distance between the end type and the perpendicular to the base of the profile.R4/H1
: The value of R4 is divided by the profile height.V3+H1
: The value of V3 is added to the profile height.R2-H1
: The profile height is subtracted from the value of R2.
R1 as an angle: If R1 is expressed as an angle, R1 is always a distance based on a profile height of 1 mm. The following codes may be used:
R TY BA R1AH1 __
or
R TY BB R1BH1 __
R1AH1
: The distance is converted to an angle expressed in degrees by means of arc tangent. If the angle is 0 degrees, the profile will be cut at right angles. If -10 degrees, the profile will be cut inwards. If +10 degrees, the profile will be cut outwards, which will make it longer.R1BH1
: The distance is converted to an angle expressed in degrees by means of arc tangent, and then 90 degrees is added to the angle. This creates the so-called interior angle, and therefore the angle is always larger than 0 degrees and smaller than 180 degrees. If the interior angle is 80 degrees, for example, the end type will have an acute angle. If the interior angle is 100 degrees, it will have an obtuse angle.
Setting conditions with IF statements
In some cases more than one type designation (TY) is needed for one type file. This is because the end type shape can differ depending on the situation. For example, always using a negative angle in the end type may not be possible due to production reasons. In these cases it is possible to set conditions by using IF statements in the R line. The following IF statements can be used: IFPOS, IFNEG, IFZER.
Example
R TY TG R1*H1 P_ IFNEG ZH IFZER Z R2 _2
If the result from the calculation R1*H1 is positive the type name will be TG. If the result is negative the name will be ZH, and if the result is zero the name will be Z.
The argument P_ after R1*H1 specifies that the calculated value will be positive in all cases.
It is also possible to use P1 or P8 as an argument. The value will be still positive, but the number gives the position in the list. See also the explanation EERSTE_R1, TWEEDE_R1 etc. above.