AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Rslogix 5000 sample program4/28/2023 ![]() ![]() ![]() LES(DateTimeAct,3)ADD(DateTimeAct,12,Zeller.m)CPT(Zeller.K,(DateTimeAct-1)MOD 100)CPT(Zeller.J,(DateTimeAct-1)/100) ĬPT(Zeller.DayofWeek,(Zeller.q+(13*(Zeller.m+1)/5)+Zeller.K+(Zeller.K/4)+(Zeller.J/4)-(2*Zeller.J)+6)MOD 7) ĮQU(DateTimeAct,3)GEQ(DateTimeAct,8)LEQ(DateTimeAct,14)EQU(DateTimeAct,2)EQU(Zeller.DayofWeek,0)MOV(1,ApplyDST)SSV(WallC lockTime,ApplyDST,ApplyDST)GSV(WallClockTime,Loc alDateTime,DateTimeAct) ĮQU(DateTimeAct,11)LEQ(DateTimeAct,7)LEQ(DateTimeAct,2)EQU(Zeller. MOV(DateTimeAct,Zeller.q)MOV(DateTimeAct,Zeller.m)MOD(DateTimeAct,100,Zeller.K)DIV(DateTimeAct,100,Zeller.J) GSV(WallClockTime,LocalDateTime,DateTimeAct) Configure CIP Safety I/O Modules via RSLogix 5000 Software. The I use the last two lines to automatically change the time when Daylight Saving Time begins and ends. The examples and diagrams in this manual are included solely for illustrative purposes. It is a simplified version of Zellers formula. ![]()
0 Comments
Read More
Leave a Reply. |