CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Jun 22, 2017 5:27 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 12, 2017 6:20 am 
Offline

Joined: Mon Feb 02, 2015 7:09 am
Posts: 16
Hi All Best Friend
I intend create counter in Codesys v2.3 in Visualisation
please help me
tankx


Top
   
PostPosted: Wed Apr 12, 2017 5:47 pm 
Offline

Joined: Sat Jul 23, 2016 2:34 pm
Posts: 10
Counters are used in code and have no direct relationship with a visualisation (in the sense in which they are usually referred to in a PLC context, that is).

If your counter is called MyCounter and is a standard CTU, CTD or CTUD then the current value of the counter is available through MyCounter.CV. This value can be displayed in a rectangle shape through use of the Text and Textdisplay properties of the rectangle.

E.g. Let us assume your counter is part of the program PLC_PRG. Then you could set your rectangle's Text to be "%d" (without the quotes) and Textdisplay to refer to PLC_PRG.MyCounter.CV.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 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