Simple example
2.4 Create program
STEP 7 Basic V10.5
36 Getting Started, 12/2009, A5E02651459-01
The representation of this programming language is based on circuit diagrams, i.e. each
LAD program of a block is divided into networks, each of which consists of one power rail
and at least one rung.
A network can be extended by adding additional rungs. You can use branches to program
parallel connections in the specific rungs. Rungs and networks are executed from top to
bottom and from left to right.
LAD instructions
You create the actual contents of the program using the LAD instructions that are available
in the "Instructions" task card of the user interface. There are three different types of LAD
instructions:
● Contacts: You can use contacts to create or interrupt a current-carrying connection
between two elements. In such cases the elements can be the LAD program elements or
the edges of the power rail. The current is relayed from left to right. You can use contacts
to query the signal state or the value of an operand and control it depending on the result
of the current flow.
● Coils: You use the coils to modify binary operands. Coils can set or reset a binary
operand depending on the signal state of the result of logic operation.
● Boxes: Boxes are LAD elements with complex functions. The empty box is an exception.
You can use the empty box as a placeholder in which you can select the required
operation.
In the "Instructions" task card you can find various variations of contacts, coils and boxes
that are sorted into various folders depending on their function. Most LAD instructions must
be supplied with tags.
The following figure shows an example of a programmed LAD network:
5
&RQWDFW &RQWDFW &RLO
&RLO
&RLO
$GGHGYDOXH
$GGHGYDOXH
6XP
(1
,1
,1
(12
287
(1
,QW
① Power rail
② Rung
③ Branch
④ Contact
⑤ Coil
⑥ Box
Comments to this Manuals