15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.2 Network Sequence<br />

5.2.1 General<br />

A <strong>ladder</strong> network includes:<br />

- an optional label and an optional comment,<br />

- an optional grafcet step,<br />

- a test zone,<br />

- an action zone.<br />

5.2.2 Structure of the Test Zone<br />

5.2.2.1 General<br />

Programming in Ladder Language<br />

The test zone occupies the left-hand side of the network.<br />

It is used to enter logical equations.<br />

A logical equation is a combination of contacts in parallel or in series.<br />

A contact is a Boolean resulting from:<br />

- the test of one or more bit variables,<br />

- the test of the rising or falling edge of an input rung,<br />

- the comparison between two numerical expressions.<br />

The test zone includes six rungs on which six contacts can be connected.<br />

The state of the rung on the contact output depends on the state of the rung on the contact input and the result of the test.<br />

If the result is FALSE, the corresponding rung is set to ZERO. Otherwise the rung state is not changed.<br />

Conditional actions are allowed in the test zone. These actions are determined by the state of the input rung and do<br />

not modify the output rung.<br />

It is possible to branch rungs.<br />

A branch is symbolised by a vertical bar.<br />

5.2.2.2 Contacts<br />

There are five types of contacts:<br />

Contact type Description<br />

{,}7 Test for a ONE state of a list of bit variables.<br />

—] [— IF all the bits are ONE, input rung = output rung.<br />

ELSE, the output rung is reset.<br />

{}7 Test for ZERO state of a list of bit variables.<br />

—] / [— IF all the bits are ZERO, output rung = input rung.<br />

ELSE, the output rung is reset.<br />

Detects the rising edge of the input rung (RISING TRIG).<br />

— R_T — Used to store the state of the input rung.<br />

IF the input rung is a ONE and is a ZERO, the output<br />

rung is set to ONE.<br />

ELSE, the output rung is set to ZERO.<br />

= input rung (storage of the input rung).<br />

en-938846/3 5 - 7<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!