This functionality is only available for certain module packages.

You are here: Reference > Text generator > Methods for PLC discipline

Methods for PLC discipline

Method Description Example result in Step7 syntax
Comment The comment to the relevant object. //Clamps the workpiece
Call Generates a block call for the POU CALL"Axis","XAxis"(Release:="KoRelease")
<VAR-TYP>VariableDeclaration Creates the declaration for the relevant variable type. This method is used, if no variables of that type are declared in the template.
Variables types are:
  • Temp
  • Input
  • Output
  • InOut
  • Local
  • Global
  • External
VAR_TEMP
SwitchAhead:BOOL;
END_VAR
<VAR-TYP>Variables Declares the variables of the relevant variable type. This method is used, if variables of that type are already declared in the template.
Variables types are:
  • Temp
  • Input
  • Output
  • InOut
  • Local
  • Global
  • External
SwitchAhead:BOOL;