StringTablePLCopen 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. - Selects the active string table.

Inputs

TABLE : STRING Name of the Sting Table resource - must be a constant
COL   : STRING Name of the column in the table - must be a constant

Outputs

OK : BOOL      TRUE if OK

Remarks

This function selects a column of a valid String Table resource to become the active string table. The LoadString() function always refers to the active string table.

Arguments must be constant string expressions and must fit to a declared string table and a valid column name within this table.

If you have only one string table with only one column defined in your project, you do not need to call this function as it will be the default string table anyway.

ST Language

OK := StringTable ('MyTable', 'FirstColumn");

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          'MyTable'
StringTable 'First Column'
STClosed "Structured text" A high-level language that is block structured and syntactically resembles Pascal          OK

See also

LoadString