dintToStr (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

1.00 / 1.00.00


dintToStr will convert a number (DINT) to a string.

 

Input:

v : DINT

Number to convert.

 

Returns: STRING

A string representing the value of v.

 

Declaration:

FUNCTION dintToStr : STRING;
VAR_INPUT
   v : DINT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
VAR
   result : STRING;
END_VAR;
 
PROGRAM test;
 
BEGIN
   ...
   result := dintToStr(v:=12345678);
   // result will contain "12345678" after the call
   ...
END;
 
END_PROGRAM;