REGSTRING_TO_GUID

This function converts a registry GUID string variable (enclosed in curly brackets) into a structured GUID variable.
 Return value
Name  | Type  | Description  | 
|---|---|---|
REGSTRING_TO_GUID  | GUID  | 
  | 
 Inputs
VAR_INPUT
    in : STRING(38);
END_VARName  | Type  | Description  | 
|---|---|---|
in  | STRING(38)  | 
  | 
Return value  | Meaning  | 
|---|---|
'{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'  | No error (‘x’ is a hexadecimal nibble).  | 
'{00000000-0000-0000-0000-000000000000}'  | Conversion failed or GUID has initial value (all bytes are zero)  | 
Requirements
Development environment  | Target platform  | PLC libraries to be integrated (category group)  | 
|---|---|---|
TwinCAT v3.1.0  | PC or CX (x86, x64, Arm®)  | Tc2_Utilities (System)  |