25.07.2014 Views

1756-PM003H-EN-E, SFC and ST Programming Languages ...

1756-PM003H-EN-E, SFC and ST Programming Languages ...

1756-PM003H-EN-E, SFC and ST Programming Languages ...

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.

Design a Sequential Function Chart 4-23<br />

Here are two examples of transitions:<br />

EXAMPLE<br />

You want to:<br />

a. Turn on 2 compressors. When a compressor is on,<br />

the Device1State bit is on.<br />

b. When both compressors are on, go to the next step.<br />

Solution:<br />

Init<br />

Init_Done compressor_1.Device1State = on (1)<br />

<strong>and</strong><br />

EXAMPLE<br />

You want to:<br />

a. Package the product. When the product is in the<br />

package, the package_done bit turns on.<br />

b. Pack the product either 8 per carton or 16 per<br />

carton.<br />

Solution:<br />

Package<br />

carton_8<br />

carton_16<br />

Pack_8<br />

Pack_16<br />

package_done = on (1) <strong>and</strong><br />

carton_size = 8<br />

package_done = on (1) <strong>and</strong><br />

carton_size = 16<br />

To override the state of a transition, see “Force Logic Elements” on<br />

page 13-1.<br />

Publication <strong>1756</strong>-<strong>PM003H</strong>-<strong>EN</strong>-E (excerpt from <strong>1756</strong>-PM001H-<strong>EN</strong>-P) - August 2005

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

Saved successfully!

Ooh no, something went wrong!