Amol Kirad

Mitsubishi Time comparison istruction

7 posts in this topic

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
  • well if I use them then it's not going to give me an  unregulated result with normal comparison instruction. 

Share this post


Link to post
Share on other sites

Dear akash,

which forum you are talking about ?

Share this post


Link to post
Share on other sites

there is one in download section check it

 

Share this post


Link to post
Share on other sites

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