5/21/2010 7:26 AM | |
Posts: 2348 Rating:
|
Place you FB code here if it's possible - otherwise it's hard to say exactly what's wrong:^) |
5/21/2010 8:47 AM | |
Posts: 7 Rating:
|
Ive attached a code of FB2 and FB4 using FB2, all in LAD. Thanks Mac AttachmentFB4 using FB2.zip (492 Downloads) |
5/21/2010 8:57 AM | |
Posts: 7 Rating:
|
Sorry there was a mistake Ive exchangesd start time with stop time, anyway it hasnt solve a problem. Mac |
5/21/2010 9:02 AM | |
Joined: 10/7/2005 Last visit: 9/26/2025 Posts: 3049 Rating:
|
Hello fikos I presume that "#TEMP2" is indeed a TEMP variable of the FB, is this correct? If so, it will be the cause of your problem as your code does NOT initialise "#TEMP2". The"golden rule" for TEMP variables is that you MUSTinitialise them (write to them) before a read access takes place (they "loose" their values between Block calls). Since you have already anFB, the solution is to simply make "#TEMP2"a STAT variable. I hope this helps |
Cheers |
|
This contribution was helpful to
3 thankful Users |
5/21/2010 10:41 AM | |
Posts: 7 Rating:
|
Done |
5/30/2018 2:14 PM | |
Joined: 3/11/2018 Last visit: 4/28/2025 Posts: 17 Rating:
|
many thanks for you . |
Follow us on