UniProgramer123 Posted February 10, 2021 Report Share Posted February 10, 2021 Hi, I have been looking into the c function programming of Unilogic. Can I address global tags of the solution inside the c function? If yes, is there a way to get for example System: "RTC time.Seconds" and other tags that might include 'space' char? Quote Link to comment Share on other sites More sharing options...
AlexUT Posted February 10, 2021 Report Share Posted February 10, 2021 Transfer it as Function Input. Quote Link to comment Share on other sites More sharing options...
UniProgramer123 Posted February 10, 2021 Author Report Share Posted February 10, 2021 So, the answer is no then? I noticed that if I do "Show structed text" in ladder I get a _op_op version of the tag. If I use this code, for example System: "RTC time.Seconds" in the C function I can call and use it and it appears to work. Am I breaking things by calling this code in C function? 2 Quote Link to comment Share on other sites More sharing options...
DanT Posted February 11, 2021 Report Share Posted February 11, 2021 Hi; If you download the UniStream Examples .zip file, there are several examples of how to import and use global variables within C Functions. The Examples .zip file is just below the UniStream Download on the Unitronics Website. DanT Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.