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 Thu Feb 27, 2020 8:33 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Nov 07, 2012 9:26 pm 
Offline

Joined: Mon Aug 16, 2010 4:29 am
Posts: 12
I know that through TaskConfiguration I can configure or Monitor when i'm online the task cycle ( average, time... in micro sec ). How can I get those informations through program ?


Top
   
PostPosted: Thu Nov 08, 2012 10:26 am 
Offline
Frequent User
Frequent User

Joined: Fri Mar 09, 2012 5:08 am
Posts: 103
Hi,

Use SysIECTaskGetInfo function of type BOOL from SysLibIECTasks.lib to get the information of an IEC task.

Have a GOOD DAY

:)


Top
   
PostPosted: Mon Nov 12, 2012 8:30 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 987
use a time() and when same routine is done again (main loop subtracte newtime with oldtime.

_________________
shooter@home.nl
computer shooter
paul deelen
jacob van wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
skype shooter paul.deelen
phone +31736139136


Top
   
PostPosted: Fri Nov 23, 2012 12:13 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3637
Hi,
you could use the implcit generated instance which is used by SyslibTaskinfo.lib

_callTask+'Name of the Task'

Example:
Your Task is called ErsteTask then use _callTaskErsteTask

cu
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 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