Amol Kirad Posted December 6, 2016 Report Posted December 6, 2016 hi all, I am facing problem for the time comprision in PLC logic. I want to do shift counting but for 8 hours and their timings are A shift 8:31 to 16:30 B shift 16:31 to 0:30 c shift 0:31 to 8:30 Help me for this. I want to compare against RTC of PLC . RTC has been read using DATERD function of PLC.
Ron_S Posted December 6, 2016 Report Posted December 6, 2016 If A shift register1 = 8 and A shift register 2 = 31 then action. And so on But one word of warning, the plc clock is not very accurate and will drift way off over time.
Amol Kirad Posted December 7, 2016 Author Report Posted December 7, 2016 Yes.Time will vary accordingly but my concern is that I am not able to use the inbuilt instruction of Mitsubishi PLC of time comparison. It is not working well and not giving proper output. Please go through images I need comparison fro Hour and Minute. my requirement is just [[[ Actual time(hour and Minute) > Set time(min) '' & '' Actual time(hour and Minute) < Set time(max) ]]] -------------------------------------(M1000) on ex...... [[[[ 8 : 45 > 8 : 30 '' & '' 8 : 45 < 16 : 30 ]]]] -----------------------------------(M1000) ON. I want to excute this condition in ladder of mistubishi PLC usnig TM>= instruction.
aakash Posted December 7, 2016 Report Posted December 7, 2016 (edited) the datered logic ; they have different memory for hour and minutes ,you have to use them seperately in program check the previous forum already been discussed Edited December 7, 2016 by aakash
Amol Kirad Posted December 7, 2016 Author Report Posted December 7, 2016 well if I use them then it's not going to give me an unregulated result with normal comparison instruction.
Amol Kirad Posted December 7, 2016 Author Report Posted December 7, 2016 Dear akash, which forum you are talking about ?
aakash Posted January 9, 2017 Report Posted January 9, 2017 there is one in download section check it
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now