Try a PLC free — no signup
Type ConversionIntermediateIEC 61131-3

INT_TO_STRING (Integer to String Conversion)

Converts integer value to its decimal string representation for display or logging.

The INT_TO_STRING function converts an integer value to its string (text) representation. This is essential for displaying numeric values on HMI screens, constructing log messages, building communication strings, and creating formatted output. The resulting string contains the decimal representation of the number, including a leading minus sign for negative values.

Parameters

Inputs

NameTypeDescription
ININTInteger value to convert to text

Outputs

NameTypeDescription
OUTSTRINGString representation (e.g., 42 becomes '42')

Structured Text Example

// Build status message
Count_String := INT_TO_STRING(Part_Count);
Status_Msg := CONCAT('Parts produced: ', Count_String);

// Build log entry
Log_Entry := CONCAT('Error code: ', INT_TO_STRING(Error_Code));

Free · no signup to try

Run this block in your browser

Try the instruction on a live rung before you copy it into a project — nothing to install.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad

Platform-Specific Implementation

S

Siemens (TIA Portal)

Use VAL_STRG or INT_TO_STRING in TIA Portal SCL.

AB

Allen-Bradley (Studio 5000)

Use DTOS (DINT to String) instruction in Studio 5000.

C

CODESYS

Use INT_TO_STRING() function in ST.

Common Applications

  • HMI display formatting
  • Log message construction
  • Serial communication strings
  • Report generation
  • Alarm message building

Frequently Asked Questions

What is INT_TO_STRING (Integer to String Conversion) in PLC programming?

Converts integer value to its decimal string representation for display or logging. The INT_TO_STRING function converts an integer value to its string (text) representation. This is essential for displaying numeric values on HMI screens, constructing log messages, building communication strings, and creating formatted output.

What are common applications of INT_TO_STRING (Integer to String Conversion)?

INT_TO_STRING (Integer to String Conversion) is commonly used for: HMI display formatting, Log message construction, Serial communication strings, Report generation, Alarm message building.

How do I use INT_TO_STRING (Integer to String Conversion) in different PLC platforms?

Siemens: Use VAL_STRG or INT_TO_STRING in TIA Portal SCL. Allen-Bradley: Use DTOS (DINT to String) instruction in Studio 5000. CODESYS: Use INT_TO_STRING() function in ST.

Free · no signup to try

Wire this block up and run it

Drop the instruction into a rung, press Run and watch it execute in your browser — then adapt it to your vendor tool.

Try it in your browser — no signup

Opens plcsimulationsoftware.com — same team

Prefer ready-made code? Ladder Logic Pack — $29 on Gumroad