Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 10429883, Entry date: 03/18/2002

Copying character strings

  • Entry
  • Associated product(s)

How can I copy strings simply?

Since the system function SFC 20 ("BLKMOV") does not support any character strings, you can proceed as follows:

Using the function FC 2  ("CONCAT") from the IEC functions of the standard library, you actually join two strings. If you leave the second string empty, then only the first string is copied to the desired location (see Figure 1).

Figure 1: Copying character strings with the IEC function "CONCAT"

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit