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

Create successful ePaper yourself

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

plc basic functions - 15.9<br />

given<br />

assign<br />

A<br />

=<br />

A=F8:0<br />

B=F8:1<br />

C=F8:2<br />

D=F8:3<br />

lnB<br />

+ e C acos( D)<br />

LN<br />

SourceA F8:1<br />

Dest. F8:4<br />

XPY<br />

SourceA 2.718<br />

SourceB F8:2<br />

Dest F8:5<br />

ACS<br />

SourceA F8:3<br />

Dest. F8:6<br />

MUL<br />

SourceA F8:5<br />

SourceB F8:6<br />

Dest F8:7<br />

ADD<br />

SourceA F8:4<br />

SourceB F8:7<br />

Dest F8:7<br />

SQR<br />

SourceA F8:7<br />

Dest. F8:0<br />

Figure 15.7<br />

An Equation in Ladder Logic<br />

The same equation in Figure 15.7 could have been implemented with a CPT function<br />

as shown in Figure 15.8. The equation uses the same memory locations chosen in Figure<br />

15.7. The expression is typed directly into the PLC programming software.

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

Saved successfully!

Ooh no, something went wrong!