VLID

PLCopen 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. - Get the identifier (ID) of an embedded list of variables.

Inputs

Input

Data Type

Range

Unit

Default

Description

FILE

STRING

 

 

 

Pathname of the list file (.SPL or .TXT) - must be a constant value.

Outputs

Output

Data Type

Range

Unit

Description

ID

DINT

 

 

ID of the list - to be passed to other blocks.

Remarks

  • This function is used to create an Identifier (ID) or ListID for a list of application variables that are typically stored on the development PC.
  • The list of application variables:
    • is a simple .TXT file.
    • can contain only one variable name per line
    • can be only global variables
  • This function's ID output can be used as an input to LogFileCSV.
    • It defines the application variables whose present value is recorded each time LogFileCSV is executed.

  • List files are read at compiling time and are embedded into the downloaded application code.
    This implies that a modification performed in the list file after downloading is not taken into account by the application.

FBD Language

FFLD Language

  • The function is executed only if EN is TRUE.

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   'MyFile.txt'
VLID COL
ST   ListID

ST Language

ID := VLID ('MyFile.spl');