S7PP Member S Join Date Sep 2010 Location Toronto Posts 134 Aug 29, 2011 #1 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!! Last edited: Aug 29, 2011
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!!
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,698 Aug 29, 2011 #2 Calculate remaining time as follows:
S7PP Member OP S Join Date Sep 2010 Location Toronto Posts 134 Aug 29, 2011 #3 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.
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.
TurpoUrpo Lifetime Supporting Member T Join Date May 2008 Location Switzerland Posts 1,571 Aug 30, 2011 #4 If you do it in ladder, use temps rather than m area.
Jeebs Member J Join Date Feb 2007 Location Leuven Posts 1,059 Aug 30, 2011 #5 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)
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)
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,698 Aug 30, 2011 #6 If you turn off type checking you can enter it as follows. Not recommended though.
S7PP Member OP S Join Date Sep 2010 Location Toronto Posts 134 Aug 30, 2011 #7 I see. Thank you very much!