Very Very Urgent For My FAT, Please Help Me Out

Step7_aby

Member
Join Date
Feb 2008
Location
Abu Dhabi
Posts
22
Hi Guys please someone help me and take it as ugent requirement for my project, I am using Step-7, CPU 412-2 here and the logic that i have to implement is as follows:

We have here one GPS which will give pulse to PLC at certain time and with each pulse the "milisecond" and "second" has to be reset to 0 and the minute has to be incremented by 1.

I hope i made clear abt what i am looking for?

I had used TOD to get the second and milisecond bit.

Please guide me as soon as possible as i will be having FAT in coming days and its vital for me

I have Attached the Function that i have created and also the Data Block for the referance.

Let me explain you what i felt wrong in the code is that when ever the bit comes it increments the module time by 1 mins and 6 sec which is not acceptable, I am looking for something where whenever the pusle comes function should take the system time and do the above mentioned function i.e the minute increment and sec and milisecond reset.

Please help me soon

Thanks in Advance
 
Hi there
Use OB's to solve your requirement.
OB32 default interval is 1 sec
OB 33 has 500ms
and OB38 has 10ms

Inside these OB(say ob38) you can write something like this:

///everytime this ob is executed that is after every 10ms, value of mw100 will get
///incremented by 10, so mw100 will always has time in millisecond
CLR
A M0.0 ///GPS pulse
jc ini
L mw100
L L#10
+I
T mw100
BE
/////Initialize the mw100 if gps pulse comes
ini: L L#0
T MW100

same thing you can do with 1 second and 1 minute also.
 

Similar Topics

I just ordered a handy programer TOSHIBA HP-100 but i have not the cable to make connection to the cpu PU11A. Please someone help me with the...
Replies
6
Views
2,521
Hi Guys please someone help me and take it as ugent requirement for my project, I am using Step-7, CPU 412-2 here and the logic that i have to...
Replies
0
Views
1,783
To handle the case where incrementing the minute will cause a roll over, Lets say system time = cd:59:ab:xyz when pulse arrives. if xyz < 998...
Replies
0
Views
2,202
hi guys, please help me out from the below mentioned problem as soon as possible as its very urgent for me and the FAT in coming days. I am...
Replies
2
Views
2,761
Hi Guys please someone help me and take it as ugent requirement for my project, I am using Step-7, CPU 412-2 here and the logic that i have to...
Replies
11
Views
4,167
Back
Top Bottom