K-IDE support forum
Find all information about Kawasaki's Integrated Development Environment

Local variables

#1 by Lomba1986 , Tue Jun 25, 2024 9:06 am

Dear all,
other idea is a way to see the current value of local variables (.name)

Is already possible and, as usual I don't know how do it, or is not possible on the Kawasaki controller?

Thanks in advance


 
Lomba1986
Posts: 27
Date registered 06.21.2024


RE: Local variables

#2 by cquante , Tue Jun 25, 2024 12:15 pm

Dear Lomba,

as local variables are only defined in the program were they are used, it is not possible to view the contents outside of that program. But I've seen some controller were the local variables are stored in another program and visible in AS code (AS backup). But I don't know how this works and so K-IDE is not able to handle that at the moment.


Christian Quante
Technical Sales
Sales Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany


 
cquante
Posts: 301
Date registered 12.20.2019


RE: Local variables

#3 by Lomba1986 , Thu Jun 27, 2024 8:36 am

Dear CQuante,
maybe I not explain clear my idea, forgive me.

My idea is to see the current value of local variable in real time, inside the inspection list.

Thanks


 
Lomba1986
Posts: 27
Date registered 06.21.2024


RE: Local variables

#4 by Mr.T , Thu Jun 27, 2024 2:56 pm

HI,

as "cquante" says, you cannot read the state of temporary variables (or at least I have not figured out, to date, how to do so) in real time from the controller.

It is possible to enable a system switch ( aux/advance/system switch/p8 LOCAL_VAR_DISP ) that saves in the "AS File" the current state of the variable when the "AS File" is downloaded within the program.


Mr.T  
Mr.T
Posts: 40
Date registered 02.08.2021


RE: Local variables

#5 by cquante , Fri Jun 28, 2024 11:49 am

Dear Lomba,

I understand what you mean but showing the actual state / value of a private variable is impossible by design! Local variables are only valid in the program where they are used. Imagine you have a variable ".i" which stores the counter value in your programs and you use that specific variable in more than one of your programs. If you would like to show the content of the variable, what value would you expect? If you like to see the actual value of a variable, you may choose a global variable or use print / type commands.


Christian Quante
Technical Sales
Sales Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany


The following user say thank you: Mr.T
 
cquante
Posts: 301
Date registered 12.20.2019


RE: Local variables

#6 by Lomba1986 , Sun Jun 30, 2024 3:09 pm

Thanks.

Sorry if I seems arrogant or conceited, but I'm just comparing different system and I would like to know if one operation or functionality that I find that is very useful in another system is possible (and how) or not.

Thanls for your time


 
Lomba1986
Posts: 27
Date registered 06.21.2024


   

Some suggestions
Release note



Xobor Xobor Community Software
Datenschutz