Bachelor thesis - Scan time.

Grande84

Member
Join Date
Mar 2014
Location
Norway
Posts
1
Hello.

I am writing a bachelor thesis on my university, where I need to recode an existing code to make the scan time be faster. I have written all sections in ST (not ladder). I need to find out how much time each section use, and the total scan time. How can I find that out? (I am using Unity xl, btw.)

Thanks.
 
On Allen Bradley PLC's, you can see the processor scan data such as average, min, and max scan times. I assume it is the same for Modicon. I would assume that you can disable portions of the program to check each section one by one and then re-enable all sections to get the total scan time.
 
Last edited:
Generally speaking your plc scan time will be made up of code execution and "housekeeping" (the plc handling tasks NOT directly related to code execution). The easiest way to determine what is what is to run only what you are interested in.

Allow the plc to scan with only one very simple instruction in it, an unconditional output for example. At that point the total scan time is for housekeeping and is a hard number you cannot get below. After that, conditionally execute your logic sections using the program control tools available to you, be that selective routine calls or simple program jumps. The total scan time minus the housekeeping time is your section scan time. Do this for all your program sections to find individual scan times. If you run into a resolution issue with your scan time reporting Steve Bailey's time over number of scans idea works well.

Keith
 
The scan time is available by clicking on the cpu in the configuration section of the project and selecting the animation tab. There are also some status words that may help
%SW27 system overhead time
%SW30 master task execution time
Make sure you do a rebuild all between changes as this will give a better indication of effect of your changes
 

Similar Topics

We are working on an automatic system for pressure testing and flushing of hydraulic tubes. We are using an Omron PLC with Cx-one. There will be...
Replies
18
Views
4,404
how can i change n time resolution in fx1s-20mt .. we need t k144000 plzz help me
Replies
7
Views
3,861
Hi all, Getting ready to graduate and need to print my thesis on 24 pound 100% cotton paper. I have got ink-jet and color laser available. I...
Replies
5
Views
2,010
Hello please suggest me any plc related MSC thesis topic .which convers both software and hardware part of the plc. thanks
Replies
0
Views
2,284
Hi everyone, I'm trying to simulate any program in control expert and see a register in Modscan32 or any software to do that (Like ModbusPoll). I...
Replies
0
Views
94
Back
Top Bottom