Closed MaylisUhart closed 4 years ago
Hi @uhart,
I see two distinct issues here:
We have taken the stance that it is safer to set all of the velocity parameters simultaneously. It is impossible for us to know whether the Orientation Speed we see when exporting is explicitly specified by the user or our default. At this stage my suggestion would be to set the Orientation Speed in the Speed Settings explicitly to have a control over the ORI values. That said, I have less experience programming KUKA robots than other brands so if there is a difference between $VEL={CP 0.25} and $VEL.CP=0.25 then I would be very interested to know.
This is an oversight on our part. We are setting the approximation values but never actually calling them. I will add this back in as an automatic switch when your Blend Settings dictate that an approximation should be performed. There are a couple of caveats to this:
I would be very much interested in your feedback on point 1. Point 2 will be included in an upcoming release.
We have just released an update that should covers the first issue, all settings are now set via the $VEL.XX=XX syntax rather than $VEL={}. _CDIS should also be set on any moves that require blending. This will be improved to switch between _CDIS or _CORI in a future update.
Hi @sebandraos, thank you for the update, I installed it.
Issue 1 : I will test a new program generated with the update on the robot and I come back to you.
Issue 2 : To define the approximation at the beginning of the program, there are 4 variables : $APO.CDIS (in mm) - $APO.CORI (in degree) - $APO.CVEL (in %) - $APO.CPTP (in %). To call the type of approximation, there are also 4 keywords : C_DIS or C_ORI or C_VEL for LIN or LIN_REL movements and C_PTP for PTP movements. So, it would be better to have the possibility to switch between C_DIS or C_ORI or C_VEL or C_PTP in a future update.
You could find more information with the following link : https://thegeekgroup.org/documents/kuka/PROGHBEXPERTE_R41_EN.PDF
I could provide a KRL program with comments if you want ?
Hi,
I generated the program "patch_v0" with the update and I tested it on the robot with some modifications "patch_v1". So, you can compare the both files.
Here, my explanations...
;FOLD DECLARATION INT i ;ENDFOLD
;FOLD INITIALIZATION ... ;ENDFOLD
FOR i=1 TO 6 $VEL_AXIS[i]=20 $ACC_AXIS[i]=20 $ACC_EXTAX[i]=20 ENDFOR
$APO.CDIS=1 $APO.CORI=0.1 $APO.CVEL=100 $APO.CPTP=50
PTP {A1 -148.5945, A2 -103.9916, A3 104.339, A4 90.21172, A5 58.59507, A6 89.59329} C_PTP LIN {X -345.5034, Y -412.3989, Z -1380.263, A 90, B 0, C 180} C_VEL
$VEL.ORI1=572.9578 $VEL.ORI2=572.9578
$TOOL={X 305, Y 0, Z 131, A 0, B 90, C 0} $BASE={X 0, Y 0, Z 0, A 0, B 0, C 0}
Thanks in advance for your help and the update of the post processor. Best regards, Maylis
@uhart This is really useful, thank you. We will take a thorough look at our KUKA export code in the coming weeks and try and get some hands-on time with a robot to test some of these changes. I will update here if we have any questions.
@uhart I have made a few changes to the KRL export now and it's looking better. I have separated the 7 points that you made and endeavoured to resolve each one:
BlendSettings(Position = 1000000m, Orientation = 12 rad) => $APO.CVEL=12 and LIN ... C_VEL
. The vague logic behind this is that a velocity blend could create a massive distance blend (bigger the distance, higher the speed stays) and therefore it's our best guess at what the robot will do. Again, this is a temporary workaround until we add something equivalent into the software.Hi, Sorry for my late response... Thank you for the modifications. Here, my comments on the 7 points :
OK
I think that all the parameters are not taken into account: even if the speed and acceleration joints are set to 30, in the KRL program generated, $ACC_AXIS[1…6] have different values at the beginning and then they are set to 100, $VEL_AXIS[1…6] are set to 100.
C_PTP : The parameter appears at the end of the command line but where can I set the value (50 for example) of $APO.CPTP ? I did not find this parameter in HAL6. C_VEL : The hack works :-)
OK
When I execute the program, an error message appears because of these lines. I have to delete them and then the program runs. $VEL.ORI1 represents swivel velocity and $VEL.ORI2 represents rotational velocity. The both parameters are in °/s and the maximal value is 400.
OK
Hi @uhart ,
@uhart Everything here should be fixed. Please reopen if that's not the case.
Hi Sebastian, I start working on the subject again... sorry for the delay. In fact, i am agree with you, for PTP motion, the parameters $ACC_AXIS[joint] and $VEL_AXIS[joint] are in pourcentage. Could you add a component to set these parameters directly in % please ? Best regards, maylis
Superseded - Please see comment below. New version of the SpeedSettings and AccelerationSettings component coming in an update very soon (possibly before the end of today). You can use the boolean Ratio to switch between giving the percentages as 0-1 or 0-100. Currently defaulting to 0-100 because that's how it's exported so it's WYSIWYG but the option is there.
@uhart These components are now live with a few names changed since the image above. You can use the boolean IsPercent to switch between giving the percentages as 0-100 or 0-1. Currently defaulting to 0-100 because that's how it's exported so it's WYSIWYG but the option is there.
Prerequisites
Description
Hi, I am using HAL6 since 1 week only... (before HAL5). I am encountering some problems to generate the KRL program in the correct format for my robot.
First, the program generated contains the following line : $VEL={CP 0.25,ORI1 572.9578,ORI2 572.9578} but I would like to write : $VEL.CP=0.25
Secondly, I would like that at the end of each mouvement, the command C_VEL or C_DIS or C_PTP be written. For example : LIN {X -148.704,Y 1.481,Z 0,A -90,B 0,C 180} C_VEL
How should I do it ? Thanks in advance for your help. Maylis
EXTENSIONS