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.

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

<strong>SFC</strong>_<strong>ST</strong>OP Structure<br />

Each stop uses a tag to provide information about the stop element:<br />

If you want to:<br />

determine when the <strong>SFC</strong> is at<br />

the stop<br />

determine the target of an <strong>SFC</strong><br />

Reset (SFR) instruction<br />

determine how many times a<br />

stop has become active<br />

use one tag for the various<br />

status bits of this stop<br />

Then check or set<br />

this member:<br />

Data type:<br />

Details:<br />

X BOOL • When the <strong>SFC</strong> reaches the stop, the X bit turns on.<br />

• The X bit clears if you configure the <strong>SFC</strong>s to restart at the<br />

initial step <strong>and</strong> the controller changes from program to run<br />

mode.<br />

• In a nested <strong>SFC</strong>, the X bit also clears if you configure the<br />

<strong>SFC</strong>s for automatic reset <strong>and</strong> the <strong>SFC</strong> leaves the step that<br />

calls the nested <strong>SFC</strong>.<br />

Reset BOOL An <strong>SFC</strong> Reset (SFR) instruction resets the <strong>SFC</strong> to a step or stop<br />

that the instruction specifies.<br />

• The Reset bit indicates to which step or stop the <strong>SFC</strong> will<br />

go to begin executing again.<br />

• Once the <strong>SFC</strong> executes, the Reset bit clears.<br />

Count DINT This is not a count of scans of the stop.<br />

• The count increments each time the stop becomes active.<br />

• It increments again only after the stop goes inactive <strong>and</strong><br />

then active again.<br />

• The count resets only if you configure the <strong>SFC</strong> to restart at<br />

the initial step. With that configuration, it resets when the<br />

controller changes from program mode to run mode.<br />

Status DINT For this member: Use this bit:<br />

Reset 22<br />

X 31<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!