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. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted January 31, 2019 MVP 2023 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? 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. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted January 31, 2019 MVP 2023 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 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. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted January 31, 2019 MVP 2023 Report Share Posted January 31, 2019 Cool. Good luck! 1 Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted January 31, 2019 MVP 2023 Report Share Posted January 31, 2019 Maybe it is possible to do it "offline" and use static table n х k.??? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now