How calculate time scan softPLC [message #1735119] |
Wed, 15 June 2016 12:03  |
Eclipse User |
|
|
|
Hi,
I'm trying the use of 4DIAC for an University project, for the first time.
In particular, I use this environment to move an automated warehouse.
I ask, Can I calculate the time scan of my program? If yes, how?
Thanks.
Best regards
Michele
|
|
|
|
|
|
Re: How calculate time scan softPLC [message #1735306 is a reply to message #1735262] |
Fri, 17 June 2016 05:06   |
Eclipse User |
|
|
|
Good morning Alois Zoitl,
and thanks for the precious answers.
I mean the time scan in the PLC's processing cycle (sush as it indicate in photo).
Particurarly,I would calculate time scan of my program, decentralized on more machine (pc desktop and portable, sush as in photo), to understand what are the time game and to compare it with the response time that I expect.
In short, I would do an analysis of this type.
Quote:
If you need to get the elapsed time you can use the function TIME() in an algorithm which will give you the time elapsed since the FORTE was started.
How is this function? I don't find it in typelibrary of 4DIAC.
Quote:
If you need higher accuracy a better approach would be to write an function block which is reading the system time from the operating system and translates it into a TIME_OF_DAY date type.
For the second approach, more accurate, I would use Windows 7 64bit to run FORTE (on both systems).
Furthermore, I see the FB E_TimeStamp and E_StopWatch. I think that this second FB can help me,in particular, for my work.
But, I ask advises to you all
Best regards,
Michele
[Updated on: Fri, 17 June 2016 05:21] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04610 seconds