udiTimeNow := SysTimeGetMs();
udiTimeDiff := udiTimeNow - udiTimeOld;
// The vector is stored in pixel per millisecond
IF (udiTimeDiff <> 0) THEN
/// on the movement of the object. The new position should be calculated by
/// the derived class.
FUNCTION_BLOCK FB_Board EXTENDS FB_ObjectBase
VAR_INPUT
END_VAR
VAR_OUTPUT
VAR
VAR_TEMP
udiTimeNow : UDINT;
udiTimeDiff : UDINT;
VAR CONSTANT
iWidth : INT := 20;
iHeight : INT := 100;