Thread: Citect/cicode
View Single Post
Old January 10th, 2012, 07:03 PM   #3
PeterW
Member
Canada

PeterW is offline
 
Join Date: Jun 2006
Location: Edmonton
Posts: 2,515
Are these tags in the tag base? real IO or memory.

CICODE cannot access tags but you can pass and return parameters.

eg

CICODE


INT
FUNCTION
TEST(INT A)

INT X = A;

RETURN X
END

from the graphic page have an instruction, inside a button perahps


FullScale = TEST(NewValue)





Is this what you mean?



edit. Not sure I've answered right, thinking now you may have a string tag with the contents "Full Scale =12", if so then the above maybe still valid as a pointer, instead of INT at the beginning use STRING and the entry argument could be changed to STRING etc.

Last edited by PeterW; January 10th, 2012 at 07:09 PM.
  Reply With Quote