Riff

Modulus function

3 posts in this topic

Hi.

I'm trying to use the MOD function inside a structured text function block, but I don't seem to get the command call correct.
Anyone have an explanation on how to use it?

Share this post


Link to post
Share on other sites

Have you tried the example in the instruction help?

abc:= Dividend MOD Divisor;

abc:= INT#18 MOD INT#5;        Answer will be 3.

Share this post


Link to post
Share on other sites

Yeah, and I tried it again and now it works :-2

Edit: Some ctrl +z action and I see what my error was.. I had a comma on the line that I didn't see..

Edited by Riff

Share this post


Link to post
Share on other sites

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