Jump to content

Recommended Posts

Hi everyone!

I'm writing a C Function in UniLogic. I would like to use a local variable, bigger than 4 bytes, like a long long int. Is it possible? Because I have no compilations errors, but I think it doesn't work.

Thanks in advance.

Share this post


Link to post
Share on other sites
3 minutes ago, Flex727 said:

I don't know the answer to your question, but are you trying to count the grains of sand on Padre Island National Seashore? :)

Hahaha, something like that!..

No, the real reason is that I need to calculate this: image.png.133ce52c4327c015ed9aa903f613d51d.png and sometimes the "n" is bigger than 13, so it doesn't fix in 4 bytes.

Share this post


Link to post
Share on other sites

That looks like a combination calculation in probability math. If so, my hat is off to you - I would never have thought to try that in a PLC. Wait, are you creating a PLC game? I volunteer to be a beta tester!

Share this post


Link to post
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...