TcUnit icon indicating copy to clipboard operation
TcUnit copied to clipboard

Easy approach to test FBs with delayed output

Open Navid-Mashayekh opened this issue 2 years ago • 0 comments

As you know in PLC world it is very common that we have function blocks which react to some inputs after some delay. To be able to test these FBs usually we need to use another TON in the test suite, pass the reference of it to the test method and pend the assertions and finish to this timer. Most PLC programs are full of TONs and TOFs and doing this procedure for every test is quite time consuming! In this update ( PR: #179 ) a function called "AWAIT_ASSERTIONS( AwaitTime : TIME ) is added to be used before writing assertions in test methods.

Navid-Mashayekh avatar Feb 07 '22 12:02 Navid-Mashayekh