Sign in to follow this  
Followers 0
Greg

Function in Cicode wont work

1 post in this topic

Hi to all, im trying to write Cicode function that represented below, i have problem that i dont get my return, it should be a report to word file but i dont see there any value. this function should work on about 6-10 tags for now im trying to succeed with 1 and nothing. Tag1 comes from PLC(Real), Tag2 is a local variable(STRING). i have tried to display the value of the tags in the report in next ways: {Format_Real(Tag2)} {Tag2} I would be very please and thankfull. STRING FUNCTION Format_Real(REAL Tag2) IF Tag1 < 0.15 THEN Tag2 = "<0.15"; ELSE Tag2 = Tag1; END RETURN Tag2; END Thank in advance, Best Regards, Greg. Edited by Greg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0