Beckhoff Automation GmbH & Co. KG TX1200 — 5.2 Text Editors

Editors Text Editors for the Instruction List and Structured Text The most important commands are found in the context menu (right mouse button or + ). The text editors use the following menu commands in special ways: 'Insert' 'Operator' With this command all of the operators available in the current language are displayed in a dialog box. If one of the operators is selected and the list is closed with OK , then the highlighted operator will be inserted at the present cursor position. 'Insert' 'Operand' With this command all variables in a dialog box are displayed. You can select whether you would like to display a list of the global, the local, or the system variables.

If one of the operands is chosen, and the dialog box is closed with OK , then the highlighted operand will be inserted at the present cursor position. 'Insert' 'Function' With this command all functions will be displayed in a dialog box. You can choose whether to have a list displaying user-defined or standard functions. If one of the functions is selected and the dialog box is closed with OK, then the highlighted function will be inserted at the current cursor position. If the With arguments option was selected in the dialog box, then the necessary input and output variables will also be inserted. 'Insert' 'Functionblock' With this command all function blocks are displayed in a dialog box.

You can choose whether to have a list displaying user-defined or standard function blocks. If one of the function blocks is selected and the dialog box is closed with OK, then the highlighted function block will be inserted at the current cursor position. If the With arguments option was selected in the dialog box, then the necessary input and output variables of the function block will also be inserted. Calling POUs with output parameters The output parameters of a called POU can be directly assigned upon being called in the text languages IL and ST. Example: Output parameter out1 of afbinst is assigned variable a. TX1200 126 Version: 1.3