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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.9 %S Common Word Variables<br />

When the CNC is connected to MAPWAY or ETHWAY networks, it allows access to the common words of the<br />

Telemecanique TSX PLCs. The set of common words forms a data base shared by the stations of a network in which<br />

each station can be a TSX PLC or a numerical <strong>control</strong>.<br />

The stations included in the common word service share a common memory of 256 words x 16 bits.<br />

Depending on the configuration, each station is allocated from 4 to 64 common words (accessible for write) of the<br />

common memory. It has read-only access to the words assigned to the other stations.<br />

3.9.1 Variable Update<br />

The %S variables are updated automatically by the system at the rate of sequential task %TS0, without action by the<br />

user programme.<br />

At the start of %TS0, the automatic <strong>control</strong> <strong>function</strong> reads all the common words updated in the other stations in the<br />

interface associated with the network processor.<br />

At the end of %TS0, the automatic <strong>control</strong> <strong>function</strong> writes the common words of its station in the interface associated<br />

with the network processor.<br />

The network <strong>control</strong>ler compares these values with the values sent before. It only sends a frame if at least one of the<br />

values has been updated or after 30 RTC cycles if it has not transmitted since.<br />

3.9.2 Setting up the Common Words<br />

Setting up consists of:<br />

- defining the network and station numbers in machine parameter P100 (see Parameter Manual),<br />

- <strong>programming</strong> the station activity and the number of common words per station in task %INI by calling <strong>function</strong><br />

setcomw(..).<br />

3 - 68 en-938846/8

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

Saved successfully!

Ooh no, something went wrong!