CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Odd even no. twinCAT3
https://forum.codesys.com/viewtopic.php?f=11&t=9069
Page 1 of 1

Author:  Vijolica555 [ Mon Aug 20, 2018 10:26 am ]
Post subject:  Odd even no. twinCAT3

Hello!

Hot to easy check if the number is n := INT is even no in TwinCAT 3?

Thank you.

Author:  Josep M. Rams [ Mon Aug 20, 2018 10:38 am ]
Post subject:  Re: Odd even no. twinCAT3

IsOdd:=(a mod 2)<>1

Sent from my Moto G (5S) Plus using Tapatalk

Author:  Vijolica555 [ Mon Aug 20, 2018 2:51 pm ]
Post subject:  Re: Odd even no. twinCAT3

Than you!

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/