Thanks a lot for the fast replies!
Fabian, I'm not that familiar with the MOD command, in fact I'm a (mechanical) field service engineer with some Siemens step 7 and TIA portal (Not SCL languages) program experience. My Robot experience is mainly ABB and even then just some reteaching welds, small I/O changes and moving the robot away when it's in my way..
Fabian is spot on but I like to make sure it's a whole number first. I mean we are relying on operators to enter in the data.
So I would do it with the Mixed Logic command under Registers & just have it as R[2]=((R[1] DIV 1) MOD 2). The DIV 1 command will drop off anything to the right of the decimal.
In the Operator entry menu I can only enter whole numbers, I tried some decimal numbers, but that didn't work. (But indeed, probably some operator can figure a way out to do that )
But it's a good extra to make it operator-proof. Thanks!