CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Oct 19, 2018 4:13 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Odd even no. twinCAT3
PostPosted: Mon Aug 20, 2018 10:26 am 
Offline

Joined: Wed Jul 11, 2018 10:44 am
Posts: 7
Hello!

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

Thank you.


Top
   
PostPosted: Mon Aug 20, 2018 10:38 am 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 253
IsOdd:=(a mod 2)<>1

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


Top
   
PostPosted: Mon Aug 20, 2018 2:51 pm 
Offline

Joined: Wed Jul 11, 2018 10:44 am
Posts: 7
Than you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited