LoadString

PLCopen motion icon

 Function - Loads a string from the active string table.

Inputs

Input

Data Type

Range

Unit

Default

Description

ID

DINT

 

 

 

ID of the string as declared in the string table.

Outputs

Output

Data Type

Range

Unit

Description

Q

STRING

 

 

Loaded string or empty string in case of error.

Remarks

  • This function loads a string from the active string table and stores it in a STRING variable.
    • The StringTable function is used for selecting the active string table.
  • The ID input (the string item identifier) is an identifier declared within the string table resource.
    • You don't need to define this identifier again - the system does it for you.

FBD Language Example

FFLD Language Example

IL Language Example

Op1: LD         ID
     LoadString
     ST         Q

ST Language Example

Q := LoadString (ID);

See Also

StringTable