Quick Start Owner's manual
Table Of Contents
- 1756-QS001E-EN-P, Logix5000 Controllers Quick Start
- Summary of Changes
- Table of Contents
- 1 - Program and Test a Simple Project
- What You Need
- Before You Begin
- Follow These Steps
- Create a Project for the Controller
- Add Your I/O Modules
- Look at Your I/O Data
- Ladder Logic
- Enter a Function Block Diagram
- Assign Alias Tags for Your Devices
- Establish a Serial Connection to the Controller
- Download a Project to the Controller
- Select the Operating Mode of the Controller
- 2 - Organize a Project
- 3 - Program Add-On Instructions
- What You Need
- Follow These Steps
- Insert an Add-On Instruction
- Copy an Add-On Instruction Definition
- Import an Add-On Instruction Definition
- Access a Parameter That Is Not Visible
- Monitor or Change the Value of a Parameter of an Add-On Instruction
- View the Logic of an Add-On Instruction
- Edit and Monitor an Add-On Instruction
- Update an Add-On Instruction to a Newer Revision
- 4 - Program an Equipment Phase
- 5 - Program a Project Offline
- 6 - Document a Project
- 7 - Go Online to the Controller
- 8 - Program a Project Online
- 9 - Troubleshoot the Controller
- Index
- Back Cover

Publication 1756-QS001E-EN-P - October 2009 107
Document a Project Chapter 6
Comments in Structured Text
To make your structured text easier to interpret, add comments. Comments:
• let you use plain language to describe how your structured text works.
• download to the controller and upload from the controller.
• do not affect the execution of the structured text.
Follow these steps to add comments to your structured text.
Here is an example.
To add a comment Use one of these formats
On a single line //comment
(*comment*)
/*comment*/
At the end of a line of structured text
Within a line of structured text (*comment*)
/*comment*/
That spans more than one line (*start of comment . . . end of
comment*)
/*start of comment . . . end of
comment*/
Format Example
//comment At the beginning of a line
//Check conveyor belt direction
IF conveyor_direction THEN...
At the end of a line
ELSE //If conveyor isn’t moving, set alarm light
light := 1;
END_IF;
(*comment*) Sugar.Inlet[:=]1;(*open the inlet*)
IF Sugar.Low (*low level LS*)& Sugar.High (*high level
LS*)THEN...
(*Controls the speed of the recirculation pump. The
speed depends on the temperature in the tank.*)
IF tank.temp > 200 THEN...
/*comment*/ Sugar.Inlet:=0;/*close the inlet*/
IF bar_code=65 /*A*/ THEN...
/*Gets the number of elements in the Inventory array
and stores the value in the Inventory_Items tag*/
SIZE(Inventory,0,Inventory_Items);