sintToStr (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


sintToStr will convert a number (SINT) to a string.

 

Input:

v : SINT

Number to convert.

 

Returns: STRING

A string representing the value of v.

 

Declaration:

FUNCTION sintToStr : STRING;
VAR_INPUT
  v : SINT;
END_VAR;

 

Example:

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