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.24<br />

15.4.3 Series Calculation<br />

Problem: Create a ladder logic program that will start when input A is turned on<br />

<strong>and</strong> calculate the series below. The value of n will start at 1 <strong>and</strong> with each scan of the ladder<br />

logic n will increase until n=100. While the sequence is being incremented, any<br />

change in A will be ignored.<br />

x = 2( n – 1)<br />

A = I:000/00<br />

n=N7:0<br />

x=N7:1<br />

Solution:<br />

A B3:0<br />

A<br />

B3:0<br />

LEQ<br />

Source A N7:0<br />

Source B 100<br />

MOV<br />

Source A 1<br />

Dest. N7:0<br />

B3:0<br />

B3:0<br />

CPT<br />

Dest. N7:1<br />

Expression<br />

2*(N7:0-1)<br />

B3:0<br />

ADD<br />

Source A 1<br />

Source B N7:0<br />

Dest. N7:0<br />

Figure 15.26<br />

A Series Calculation Example

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

Saved successfully!

Ooh no, something went wrong!