GonzaloRoldan_ Posted January 31, 2019 Report Share Posted January 31, 2019 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. Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted January 31, 2019 MVP 2021 Report Share Posted January 31, 2019 I don't know the answer to your question, but are you trying to count the grains of sand on Padre Island National Seashore? Quote Link to comment Share on other sites More sharing options...
GonzaloRoldan_ Posted January 31, 2019 Author Report Share Posted January 31, 2019 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: and sometimes the "n" is bigger than 13, so it doesn't fix in 4 bytes. Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted January 31, 2019 MVP 2021 Report Share Posted January 31, 2019 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! 1 Quote Link to comment Share on other sites More sharing options...
GonzaloRoldan_ Posted January 31, 2019 Author Report Share Posted January 31, 2019 Yeah, @Flex727 , it is a combination calculation indeed, but not for a game 😂. I need to calcute how many combinations of working pumps a system has. Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted January 31, 2019 MVP 2021 Report Share Posted January 31, 2019 Cool. Good luck! 1 Quote Link to comment Share on other sites More sharing options...
MVP 2021 kratmel Posted January 31, 2019 MVP 2021 Report Share Posted January 31, 2019 Maybe it is possible to do it "offline" and use static table n х k.??? 1 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.