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.

Analogue Inputs/Outputs<br />

9.3 Write an Analogue Output anao<br />

Syntax<br />

anao(cch, woutput)<br />

cch: Output address encoded on one byte.<br />

woutput: Signed integer on 16 bits to be written.<br />

Operation<br />

Writes DAC channel ch of card c.<br />

Detail of argument «cch»<br />

Card location<br />

Channel number<br />

Bit 7 Bit 0<br />

Refer to the Installation and Commissioning Manual for the card location on the system bus.<br />

The values 0 to 7 correspond to the channel numbers of the eight input registers or eight output registers.<br />

Example: Spindle speed <strong>programming</strong> <strong>control</strong>led by the PLC<br />

Read the miscellaneous <strong>function</strong> of the group (M3 or M4) specifying the spindle direction of rotation:<br />

- M03_g = 1:clockwise<br />

- M04_g = 1:counterclockwise<br />

Read the spindle speed modulus (VITBRb). Its value ranges from 0 (zero speed) to 0x7FFF (maximum speed).<br />

Send the DAC the signed encoded value on 16 bits. The sign depends on the spindle servo-drive wiring and the<br />

miscellaneous <strong>function</strong> of the group:<br />

- If the value is positive or zero, ANAO(cch, VITBRb),<br />

- If the value is strictly negative, ANAO(cch, ~VITBRb).<br />

Return code<br />

If OK<br />

0<br />

Error<br />

1: Card absent.<br />

2: Card parameter error.<br />

3: Channel parameter error.<br />

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

9

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

Saved successfully!

Ooh no, something went wrong!