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
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