LoadStringPLCopen motion icon

FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Load a string from the active string table.

Inputs

ID: DINT   ID of the string as declared in the string table

Outputs

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 into a STRING variable. The StringTable() function is used for selecting the active string table.

The "ID" input (the string item identifier) is an identifier such as declared within the string table resource. You don't need to "define" again this identifier. The system does it for you.

ST Language

Q := LoadString (ID);

FBD Language

FFLD Language

IL Language:

Op1: LDClosed "Ladder diagram" Ladder logic is a method of drawing electrical logic schematics. It is now a very popular graphical language for programming Programmable Logic Controllers (PLCs). It was originally invented to describe logic made from relays. The name is based on the observation that programs in this language resemble ladders, with two vertical "rails" and a series of horizontal "rungs" between them         ID
     LoadString
     ST         Q

See also

StringTable