12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

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.

plc basic functions - 15.7<br />

ADD<br />

source A N7:0<br />

source B N7:1<br />

dest. N7:2<br />

ADD<br />

source A 1<br />

source B N7:3<br />

dest. N7:3<br />

SUB<br />

source A N7:1<br />

source B N7:2<br />

dest. N7:4<br />

MULT<br />

source A N7:0<br />

source B N7:1<br />

dest. N7:5<br />

DIV<br />

source A N7:1<br />

source B N7:0<br />

dest. N7:6<br />

NEG<br />

source A N7:4<br />

dest. N7:7<br />

CLR<br />

dest. N7:8<br />

DIV<br />

source A F8:1<br />

source B F8:0<br />

dest. F8:2<br />

addr. before after<br />

N7:0<br />

N7:1<br />

N7:2<br />

N7:3<br />

N7:4<br />

N7:5<br />

N7:6<br />

N7:7<br />

N7:8<br />

F8:0<br />

F8:1<br />

F8:2<br />

F8:3<br />

10<br />

25<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

100<br />

10.0<br />

25.0<br />

0<br />

0<br />

10<br />

25<br />

35<br />

1<br />

-10<br />

250<br />

3<br />

10<br />

0<br />

10.0<br />

25.0<br />

2.5<br />

2.5<br />

Note: recall, integer<br />

values are limited<br />

to ranges between -<br />

32768 <strong>and</strong> 32767,<br />

<strong>and</strong> there are no<br />

fractions.<br />

DIV<br />

source A N7:1<br />

source B N7:0<br />

dest. F8:3<br />

Figure 15.5<br />

Arithmetic Function Example<br />

A list of more advanced functions are given in Figure 15.6. This list includes basic<br />

trigonometry functions, exponents, logarithms <strong>and</strong> a square root function. The last function<br />

CPT will accept an expression <strong>and</strong> perform a complex calculation.

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

Saved successfully!

Ooh no, something went wrong!