Jump to content

Addressing global tags inside C functions


Recommended Posts

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
Link to comment
Share on other sites

  • NoamM changed the title to Addressing global tags inside C functions

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

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...