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.

2.3 Structure of a Ladder Module - Elementary Sequences<br />

Structure of an Application<br />

A <strong>ladder</strong> module is a succession of elementary sequences. The number of sequences in a module is limited to 100.<br />

The sequence is the basic entry and compilation unit. There are three types of elementary sequences:<br />

- the sequence used for entry of a table of numerical constants,<br />

- the sequence used for entry of one of more character strings,<br />

- the sequence used for entry of a network of contacts and coils.<br />

2.4 Elements Common to All Types of Sequences<br />

Each sequence includes the following common elements:<br />

- sequence header,<br />

- grafcet step.<br />

2.5 Table of Constants Sequence<br />

2.5.1 General<br />

This type of sequence contains a data table that is processed by a buffer handling <strong>function</strong>.<br />

This sequence includes:<br />

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

- an optional grafcet step,<br />

- an associated %Vxx.L or %Yxx.L variable that contains the table start address,<br />

- a sequence of numerical values in which each value occupies a long word.<br />

Each table can contain up to 500 values.<br />

The number of tables that a module can contain is limited by the maximum module size and the number of sequences<br />

which must be less than 100.<br />

2.5.2 Using a Table<br />

Tables are accessed by the table start address contained in a %Vxx.L or %Yxx.L variable using <strong>function</strong>s of the type<br />

cpyb(..), cpyl(..), print(..), etc.<br />

The values of a table can be accessed directly by the pointers (e.g. %Yxx -> n.L).<br />

2.5.3 Initialising a Table<br />

A table is initialised when the monitor loads variable %Vxx.L or %Yxx.L with the table start address.<br />

A table sequence must therefore have been executed once by the system before being able to be used by a <strong>ladder</strong><br />

sequence in the programme.<br />

en-938846/3 2 - 15<br />

2

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

Saved successfully!

Ooh no, something went wrong!