Hi,
I have a very similar problem working with C5G. There is a main program that includes some counters and one of them needs to be shared with a sub-program. No idea how to define a GLOBAL variable with TP - manuals say that the definition should be
var_name GLOBAL, but that doesn't work (incorrect variable name). I have also tried editing the sub-program and selecting Program -> Variables -> Import -> then choosing the main program and the variable I need - but then an error occurs, saying that the variable doesn't exist (

). What can I do to make it work? The only programming device I can use at the moment is the TP. Is there any other way of editing program code than using IDE?