Siemens call SFB4 in a FB

S7PP

Member
Join Date
Sep 2010
Location
Toronto
Posts
134
Hi Guys,

Please help on this: I called an SFB4 (TON)in a FB,

Do you know how to calculate how much time left?

On the picture, I want the value which is PT-ET=?

How to achieve that?

Thanks!!

Timer1.JPG
 
Last edited:
:D Thanks, I just found out that I may use a slow way to do it, like this.

I forgot STL. My boss said that the customer didn't want STL so he let me forget it. I really did.

Thanks a lot. sometimes I just go nuts.

Timer2.jpg
 
There are 3 'MOVE's too many in your code.
Makes it hard to follow.
Just use the SUB_DI with the temp variables.
Just like L D showed you. (what he wrote can easily be done in a single LAD statement)
 

Similar Topics

Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
660
Hi everyone; Our objective is to drop barcodes into a MySQL database from a Siemens S7 1214C. We've established that there are no drivers for...
Replies
1
Views
882
Hi all, Please bear with me on this one as I try to explain my problem. I am only a beginner with Siemens so please be gentle. This morning we...
Replies
7
Views
7,008
I have recently encountered a problem with a Function Call being know how protected. I cannot not open the Function Call to edit the ladder logic...
Replies
5
Views
7,806
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
22
Views
235
Back
Top Bottom