UsintAssertions
Short summary
This class provides assert statements for unsigned short integers (USINT)
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractAssertion | IUsintAssertions |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
valueIsEqualTo
- Parameters:
currentValue(USINT): current value to checkexpectedValue(USINT): expected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is equal to the expected value…
valueIsEven
- Parameters:
currentValue(USINT): current value to checkmessage(Tc2_System.T_MaxString): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is even…
valueIsGreaterThan
- Parameters:
currentValue(USINT): current value to checklessValue(USINT): less than lower limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than the less value…
valueIsInRangeOf
- Parameters:
lowerLimit(USINT): lower limit for the current valuecurrentValue(USINT): current value to checkupperLimit(USINT): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is inside a limit…
valueIsLessThan
- Parameters:
currentValue(USINT): current value to checkgreaterValue(USINT): greater than upper limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than the greater value…
valueIsMax
- Parameters:
currentValue(USINT): current value to checkmaximumValue(USINT): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than or equal to the maximum value…
valueIsMin
- Parameters:
currentValue(USINT): current value to checkminimumValue(USINT): lower limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than or equal to the minimum value…
valueIsNotEqualTo
- Parameters:
currentValue(USINT): current value to checkunexpectedValue(USINT): unexpected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is not equal to the unexpected value…
valueIsOdd
- Parameters:
currentValue(USINT): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is odd…
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL UsintAssertions EXTENDS AbstractAssertion IMPLEMENTS IUsintAssertions
VAR
END_VAR
VAR CONSTANT
LSB_MASK :USINT := 1;
END_VAR