GlobalConstants ¶ Constants (GVL)
Constants (GVL) ¶ InOut: Name Type Initial Comment gc_FIRST_MULTICAST_IP UDINT 16#E0000000 First Multicast IP is 224.0.0.0 gc_LAST_MULTICAST_IP UDINT 16#EFFFFFFF Last Multicast IP is 239.255.255.255
Param (PARAMS) ¶ InOut: Scope Name Type Initial Comment Constant gc_udiTaskRWPriority UDINT 240 gc_udiTaskOpenerPriority UDINT gc_udiTaskRWPriority old default value240, now using 1 task, ;
Structs ¶ IP_ADDR (Struct)
IP_ADDR (STRUCT) ¶ TYPE IP_ADDR : STRUCT InOut: Name Type sAddr STRING(80)
GetSupplierVersion (FUN) ¶ FUNCTION GetSupplierVersion : WORD InOut: Scope Name Type Return GetSupplierVersion WORD
VersionConstants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_byVersion BYTE 1 gc_byVersion_1 BYTE 0
ARRAY and MemoryBlock ¶ Compare (Function) FindBlock (Function) FindByte (Function)
Compare (FUN) ¶ FUNCTION Compare : UINT Function compares “MemoryBlockA” with “MemoryBlockB”. Up to “uiNumberOfBytes” will be compared. Example: abyMemoryBlockA : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ; abyMemoryBlockB : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 0 , 4 , 5 , 6 , 7 , 8 , 9 ; -> MEM.Compare ( ADR ( abyMemoryBlockA ), ADR ( abyMemoryBlockB ), 10 ) = 4 InOut: Scope Name Type Comment Return Compare UINT function return 0 if the blocks are identical. If they are different then function returns the first position that differ Input pMemoryBlockA POINTER TO BYTE address of MemoryBlockA pMemoryBlockB POINTER TO BYTE address of MemoryBlockB uiNumberOfBytes UINT number of bytes to compare
FindBlock (FUN) ¶ FUNCTION FindBlock : UINT Function looks for the first occurence of “MemoryBlockB” within “MemoryBlockA”. Example: abyMemoryBlockA : ARRAY [0..9] OF BYTE := 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ; abyMemoryBlockB : ARRAY [0..2] OF BYTE := 6 , 7 , 8 ; -> MEM.FindBlock ( ADR ( abyMemoryBlockA ), 10 , ADR ( abyMemoryBlockB ), 3 ) = 7 InOut: Scope Name Type Comment Return FindBlock UINT function returns 0, if “MemoryBlockB” cannot be found. Otherwise the function returns the position of the first occurence Input pMemoryBlockA POINTER TO BYTE address of MemoryBlockA uiLengthBlockA UINT length of MemoryBlockA in byte pMemoryBlockB POINTER TO BYTE address of MemoryBlockB uiLengthBlockB UINT length of MemoryBlockB in byte