EasyManua.ls Logo

Allen-Bradley ControlLogix 1756 - PROGRAM Example; Defining a Task

Allen-Bradley ControlLogix 1756
173 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM084F-EN-P - July 2002
Creating a Complete Import/Export File 3-33
PROGRAM example
PROGRAM Prg1 (Main := RoutineB, Description := "I $’am$’" "
$0034 a $"program$"")
TAG
st11 : DINT (RADIX := Decimal, ProduceCount := 0) := 2;
st12 : BOOL (RADIX := Binary, ProduceCount := 0) :=
2#00000000;
END_TAG
ROUTINE RoutineA
JSR(_2_LADDER, 0);
END_ROUTINE
ROUTINE RoutineB
RC: "$L ** ;MORE $";STUFF" do not include "more";
xic(st11) ote(st12);
END_ROUTINE
END_PROGRAM
Defining a Task
The maximum number of tasks depends on the of controller:
A TASK component follows this structure:
TASK <
task_name
> [
Attributes
]
<
program_name
>;
END_TASK
Controller: Maximum Number of Tasks:
ControlLogix 32
SoftLogix5800 32
FlexLogix 8
CompactLogix (L20, L30) 4
DriveLogix 4
Spare Allen-Bradley Parts

Table of Contents

Related product manuals