Jump to content

Recommended Posts

Posted

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.


Posted

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.

Posted

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.

 

time.JPG

Posted (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 by aakash

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...