[?]: weekly timer with cj1m PLC and ns touchpanel

CX-One, CX programmer, NTST, Syswin ....
Post Reply
RockWellMan
Posts: 5
Joined: Wed Jun 23, 2010 5:49 pm

[?]: weekly timer with cj1m PLC and ns touchpanel

Post by RockWellMan » Fri Mar 11, 2011 9:33 am

hi all.
I would like if possible lines of program to create touch-panel programmable weekly timer. With a CJ1M plc, and a touch panel ns.
It is asking too much. I need some examples of timer to get an idea of how do it.
Thanks to all

Homeroid_BL
Posts: 259
Joined: Fri Apr 03, 2009 3:24 pm
Location: Bosnia and Herzegovina

Re: [?]: weekly timer with cj1m PLC and ns touchpanel

Post by Homeroid_BL » Mon Mar 14, 2011 8:17 pm

Hi!
It is not a 'few lines' routine.

Follow these steps to make your onw program:

1. get system time and date and disassemble it to Year Month Day DayOfTheWeek Hour Minute Second (seven data). You will use only 4 data: DayOfTheWeek Hour Minute Second
2. For each event you want to execute only ONCE a week, you will need two data sets( 4 data for start time, 4 data for stop time).
3. Make a dropdown list on NS to choose DayOfTheWeek, and input fileds for Hour, Minute, Second (two of those for one event once a week).

Then make a ladder like this:
IF DayOfTheWeekSTART<DayOfTheWeek<DayOfTheWeekSTOP and HourSTART<Hour<HourSTOP and MinuteSTART<Minute<MinuteSTOP and SecondSTART<Second<SecondSTOP then OUTPUT Ev1WorkingTime

Hope you understand this.
Best regards!

Then you can develop further you application.

RockWellMan
Posts: 5
Joined: Wed Jun 23, 2010 5:49 pm

Re: [?]: weekly timer with cj1m PLC and ns touchpanel

Post by RockWellMan » Mon Mar 21, 2011 11:22 am

Thank you....... Itest this.

Post Reply