If you call fbEPS.setBit() or fbEPS.setDescription() prior to calling fbEPS() with some instance of DUT_EPS, it results in a page fault. This is because setBit and setDescription refer to the eps object that was passed in, and without passing one prior this is a null reference. Beckhoff sort of tries to warn us about this via a cryptic compiler warning, but this is otherwise not warned about in the documentation or in the docstrings.
Expected Behavior
We should have some combination of the following:
Errors instead of page faults
A warning in the docstrings
A warning in the documentation
Context / environment
@NSLentz ran into this while testing out the EPS features.
Current Behavior
If you call
fbEPS.setBit()
orfbEPS.setDescription()
prior to callingfbEPS()
with some instance ofDUT_EPS
, it results in a page fault. This is becausesetBit
andsetDescription
refer to theeps
object that was passed in, and without passing one prior this is a null reference. Beckhoff sort of tries to warn us about this via a cryptic compiler warning, but this is otherwise not warned about in the documentation or in the docstrings.Expected Behavior
We should have some combination of the following:
Context / environment
@NSLentz ran into this while testing out the EPS features.