PathElem_ClearTriggers (FUN) ¶ FUNCTION PathElem_ClearTriggers InOut: Scope Name Type Inout pe PathElem
PathElem_SetLenOrig (FUN) ¶ FUNCTION PathElem_SetLenOrig : BOOL InOut: Scope Name Type Return PathElem_SetLenOrig BOOL Inout pe PathElem Input lenOrig LREAL
PathElem_SetLoad (FUN) ¶ FUNCTION PathElem_SetLoad InOut: Scope Name Type Inout pe PathElem Inout Const load SMDYN.DynLoad
PathElem_SetSegment (FUN) ¶ FUNCTION PathElem_SetSegment InOut: Scope Name Type Inout pe PathElem Input nSegment SegmentId
PathElem_SetTransition (FUN) ¶ FUNCTION PathElem_SetTransition InOut: Scope Name Type Inout pe PathElem Input value BOOL
PathQueue (FB) ¶ FUNCTION_BLOCK FINAL PathQueue A fifo queue of path elements (of type PathElem). Not task safe since the removal of elements and the update of ds0 are not atomic. Methods: AddChecksum Append Capacity CutAfter CutBefore DisableCaching EnableCaching Full GetDS0 GetFromEnd GetFromStart Init IsEmpty NumElems RemoveAll RemoveFirst RemoveLast SetDS0 SetPointer SpaceElemFunsLeft SpaceElemsLeft SpaceTracesLeft SplitAt StartCycle Update Structure: AddChecksum (Method) Append (Method) Capacity (Method) CutAfter (Method) CutBefore (Method) DisableCaching (Method) EnableCaching (Method) Full (Method) GetDS0 (Method) GetFromEnd (Method) GetFromStart (Method) Init (Method) IsEmpty (Method) NumElems (Method) RemoveAll (Method) RemoveFirst (Method) RemoveLast (Method) SetDS0 (Method) SetPointer (Method) SpaceElemFunsLeft (Method) SpaceElemsLeft (Method) SpaceTracesLeft (Method) SplitAt (Method) StartCycle (Method) Update (Method)
PathQueue.AddChecksum (METH) ¶ METHOD FINAL AddChecksum InOut: Scope Name Type Inout crc32 SMRB.SMC_FB_CRC32
PathQueue.GetFromEnd (METH) ¶ METHOD FINAL GetFromEnd : POINTER TO PathElem Returns a pointer to the n-last element if the queue is at least n elements, otherwise 0. The pointer is valid until the next call to RemoveFirst. Only to be called safely from the writing task, or when it is made sure that no elements are removed concurrently. InOut: Scope Name Type Input n UDINT Return GetFromEnd POINTER TO PathElem
PathQueue.GetFromStart (METH) ¶ METHOD FINAL GetFromStart : POINTER TO PathElem Returns a pointer to the n-th element if the queue is at least n elements, otherwise 0. The pointer is valid until the next call to RemoveFirst. Only to be called safely from the reading task, or when it is made sure that no elements are removed concurrently. InOut: Scope Name Type Input n UDINT Return GetFromStart POINTER TO PathElem
PathQueue.RemoveAll (METH) ¶ METHOD FINAL RemoveAll : SMC_ERROR Removes all movements of the queue and resets the end of data flag. Invalidates the pointer returned by a prior call to GetFirst. Only safe to be called from the consumer task. Clears dS0 and dS1. InOut: Scope Name Type Return RemoveAll SMC_ERROR