CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Aug 21, 2017 8:31 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jul 14, 2016 2:30 pm 
Offline

Joined: Mon Apr 28, 2014 7:05 pm
Posts: 80
Hi,

Is it possible to write to a variable of type TIME without converting.
If I use a rectangle with %d, it will display 1000 (meaning T#1S).
But if I try to write to it, it does not work.
I would like to be able to write 2000 and then my variable would be set to T#2S.
I know I can do it by converting in the program but I was thinking that if it can read correctly it would be possible to write also.

Thank you.


Top
   
PostPosted: Thu Dec 15, 2016 7:02 pm 
Offline

Joined: Mon Apr 28, 2014 7:05 pm
Posts: 80
Is this possible or not?


Top
   
PostPosted: Fri Dec 16, 2016 4:48 am 
Offline
Frequent User
Frequent User

Joined: Fri Sep 02, 2011 8:02 pm
Posts: 240
I believe you have to enter T#2000ms or T#2s. Just like you have it in the code. I always just convert a number to time in the code.


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: nuko and 1 guest


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