GUID_TO_REGSTRING
This function converts a structured GUID variable into a registry GUID string variable (enclosed in curly brackets).
FUNCTION GUID_TO_REGSTRING : STRING(38)
VAR_INPUT
VAR_INPUT
in : GUID;
END_VAR
Return value | Meaning |
---|---|
'{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' | No error (‘x’ is a hexadecimal half-byte) |
'{00000000-0000-0000-0000-000000000000}' | No error, GUID has the initial value (all bytes are zero) |
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.11.0 Build >=2248 | PC or CX (x86, ARM) | TcUtilities.Lib |