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.

Exchanges by Protocol<br />

15.5.4 Setting up the Common Word Service setcomw<br />

Syntax<br />

setcomw(size, activity)<br />

size: Number of bytes allocated to each station.<br />

activity: Station activity with respect to the common words (0: inactive; 1: read/write; 2: read only).<br />

Description<br />

Sets up the common word service.<br />

Operation<br />

Function setcomw(..) must be called in task %INI. If this <strong>function</strong> is not called, the common word service is not active.<br />

The same number of bytes must be allocated to each station in the network. If the value set for a station is incorrect,<br />

this station is ignored by the other stations.<br />

Since the stations can share a maximum of 256 words (512 bytes), the size chosen determines the maximum number<br />

of stations that can use the common word service.<br />

Size per station Max No. of stations Station addresses<br />

8 bytes 64 0 to 0x3F<br />

16 bytes 32 0 to 0x1F<br />

32 bytes 16 0 to 0xF<br />

64 bytes 8 0 to 7<br />

128 bytes 4 0 to 3<br />

An inactive station cannot send common words and cannot read those sent by the other stations.<br />

A station active for read cannot send common words but can read the common words sent by the other stations.<br />

A station active for read/write can send common words and read those sent by the other stations.<br />

The stations declared active for read/write must have the lowest addresses on the network.<br />

The number of common words configured can be less than the maximum authorised per station. This possibility should<br />

be used when the volume of information to be sent is small. Processing of the common words by the automatic <strong>control</strong><br />

<strong>function</strong> is thereby improved.<br />

Return Code<br />

If OK<br />

Code Report message<br />

0x00 Setup OK<br />

en-938846/4 15 - 39<br />

15

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

Saved successfully!

Ooh no, something went wrong!