Hi,
What is the best/fastest way to check if variable in function is global? If there is not that variable in my function's .dat file thats means variable must be in config.dat and it is global?
Program works correct ofc.
Hi,
What is the best/fastest way to check if variable in function is global? If there is not that variable in my function's .dat file thats means variable must be in config.dat and it is global?
Program works correct ofc.
Connect with WorkVisual and check the variable by right click and choose F12 - Go to declaration or by SmartPad in Individual variable interface. This is the fastest way, in my view, to find the declaration of the variable.
I dont have any pc. How to get into individual varibale interface? I use kr c2
The simplest way would be to make an Archive of the robot, unzip that archive on a PC, then use a tool like BareGrep or Windows Grep to search all the files in the Archive for occurrences of the signal name. When you find the SIGNAL declaration of the signal, that will show you which file it's in, and whether it's Global or not.
Without a PC... you could do the same thing on the robot, in Windows. Open the Windows File Explorer, open the C/KRCROBOTER/KRC/R1/ directory, and use the "search for text in files" option.
close any program (R in SIR is gray) then try to see if you can see the variable in Single Variable Monitor.
if it is found, it is global.