RPI & Periodic Event

bodoo23

Member
Join Date
Jan 2018
Location
Athens
Posts
57
I am new in programming. There are two things I am wondering about

1- if we set RPI of a module 20ms and if the scan time is for example 70ms what would happen ? PLC will get values from module in the beginning and process these values in logic but what happen after 20ms when plc get new values from module in the same time scan is going on ? Can it use these values or it will ignore second (2x20ms) values and will use third(3x20ms) values in the second scan(after 70ms)

2-The second question is similar actually. when the period of periodic task is 10ms and scan time is 25ms. are the inputs and outputs used in periodic task being updated in every 10ms or it is like other values and need to be wait for the scan to be completed ? if they are like the values used in continuous tasks and just to be updated before and after scans. What are the advantageous of using periodic tasks ?

I hope my questions were clear since I am not very good at english I might not clarify well. Thanks
 
Welcome to the forum bodoo23! Let me see if I understand correctly. You didn't specify which processor you are using, so I will discuss from the perspective of an A-B Logix based controller (other types may differ).

1. I'm not sure what you mean by scan time - it sounds like you're saying the program takes 70ms to complete a scan. In that case, the data will get updated every 20ms (based on RPI). There is no guarantee when the data will update unless you choose to buffer the input data. For example, I buffer my data at the beginning of each program scan and only use the buffer tags throughout my program. This ensures that the input data is not changing somewhere mid-scan.

2. The advantage of using a periodic task rather than a continuous task is that you know exactly how often the task will execute. Also, continuous task scan time will increase as the size of the program increases but a 10ms periodic task will execute every 10ms even as program size increases. Now if you have a 10ms task that takes 25ms to scan, this will create an error. Periodic task time must be greater than the actual task scan time.

For a good discussion of RPI, RTS and other such settings, check out THIS thread from the forum a few years ago
 
Hi RonJohn. Thanks for answers. As I have known by now PLC first read inputs then process logic and write the outputs and the input values cant be updated in process of logic(It will remain the same value for this cycle even if the value changes during this scan). So now I see my understanding was wrong. If it changes in the mid of scan, it is updated immediately even if it is a physical input ?
Thanks again.
 
If it changes in the mid of scan, it is updated immediately even if it is a physical input ?
This depends on which controller you are using. **If you tell us what you're working with, we can give you a more clear answer.

As I stated initially, my example used an A-B Logix based controller. In these, the inputs update asynchronously to program scan. With an A-B SLC500 or PLC5, the IO updates synchronously at the end of each program scan. For the SLC or PLC5, input buffering was not necessary.
 
This depends on which controller you are using. **If you tell us what you're working with, we can give you a more clear answer.

As I stated initially, my example used an A-B Logix based controller. In these, the inputs update asynchronously to program scan. With an A-B SLC500 or PLC5, the IO updates synchronously at the end of each program scan. For the SLC or PLC5, input buffering was not necessary.

I am working with 1756-L62 plc.
 
OK, so a 1756-L62 will scan the IO asynchronous to (not necessarily in step with) the program scan since that is a ControlLogix processor. For many of us who started our careers with SLC500 or PLC5, this was an adjustment for us also.

I agree with Ron Beaufort that your English is good - much better than my Turkish! Let me encourage you to use the forum search for a lot of useful information and feel free to post questions as we are all learning.
 
Thank you both for answers & kindness. I am really eager to learn and now I feel like I am talking with my friends. It will make me feel free to ask questions. I will keep searching here.
 

Similar Topics

Hi there I am new with this thing and i don't know how to connect Allen Bradley Micrologix 1200 PLC to Raspberry Pi using USB to RS485 in NodeRED...
Replies
3
Views
2,231
Hello all, I am using a temposonic R series linear transducer for positioning of a lower ram on a hydraulic powdered metal press. The transducer...
Replies
7
Views
1,909
Hello Ladies and Gents, I have some PLC to PLC communications using Produce and Consume. The data is not time sensitive, and I really only need...
Replies
16
Views
4,614
I am not very experienced in Rockwell PLCs and have run into a small problem, so I could do with a little bit of help. We have a redundant...
Replies
3
Views
2,469
Dear All , I need help to resolve the issue of the RPI that has been not changing on my configured L35E processor ? it was running since but now...
Replies
2
Views
1,439
Back
Top Bottom