Jump to content

Recommended Posts

Posted

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?

Posted

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? 

 

opcode.PNG

code.PNG

fun.PNG

  • Like 2
Posted

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

 

 

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.