09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SetGO Changes the value of a group<br />

of digital output signals<br />

Example<br />

Arguments<br />

SetGO is used to change the value of a group of digital output signals.<br />

SetGO go2, 12;<br />

The signal go2 is set to 12. If go2 comprises 4 signals, e.g. outputs 6-9, outputs<br />

6 and 7 are set to zero, while outputs 8 and 9 are set to one.<br />

SetGO Signal Value<br />

Signal Data type: signalgo<br />

The name of the signal group to be changed.<br />

Value Data type: num<br />

Program execution<br />

The desired value of the signal group (a positive integer).<br />

The permitted value is dependent on the number of signals in the group:<br />

No. of signals Permitted value No. of signals Permitted value<br />

1 0 - 1 9 0 - 511<br />

2 0 - 3 10 0 - 1023<br />

3 0 - 7 11 0 - 2047<br />

4 0 - 15 12 0 - 4095<br />

5 0 - 31 13 0 - 8191<br />

6 0 - 63 14 0 - 16383<br />

7 0 - 127 15 0 - 32767<br />

8 0 - 255 16 0 - 65535<br />

The programmed value is converted to an unsigned binary number. This binary<br />

number is sent on the signal group, with the result that individual signals in the group<br />

are set to 0 or 1. Due to internal delays, the value of the signal may be undefined for a<br />

short period of time.<br />

<strong>RAPID</strong> Reference Manual 8-SetGO-1

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

Saved successfully!

Ooh no, something went wrong!