beautypg.com

Action – Watlow LogicPro User Manual

Page 94

background image

Chapter 7: Sequential Function Charts

LogicPro User’s Guide

78

Watlow Anafaze

Doc.# 28002-00 Rev 3.00

Action

The

[Action Tool]

allows you to associate Actions with a

particular Step in the program window

.

You can associate zero or more Actions with each Step. A
Step with zero associated Actions is considered a Wait
function. The Step is waiting for a successor Transition
condition to become true. An Action can be a collection of
rungs in Ladder language, a Sequential Function Chart or a
Function Block Diagram. The scope of the declaration of an
Action is local to the program organization unit containing the
declaration.

Like variables, Action names can be any combination of
letters and digits as long as the first character is a letter. Spaces
are not allowed, so use an underscore ( _ ) to separate words.
Actions are case-sensitive, so

STATUS_LIGHT_ON

is

different than

status_light_on

. When naming Actions,

choose a name that is self-explanatory.

NOTE!

C/C++ keywords (such as if, else, or while) cannot
be used as a name.

Actions can be stored (S) or Unstored (N) after execution. An
N or S appearing in the first cell of the action object indicates
this attribute. Stored Actions keep the values of variables for
the next time the step is active. Unstored Actions reinitialize
variable values each time the step with which they are
associated becomes active.

To add Actions:

1.

Select the

[Action]

tool.

2.

Click on the Step to which you want to add Actions. The

Add Action

dialog box appears.

3.

Enter the name of the Action you want you want to add
to the Step.

4.

Select

Stored

or

Unstored

.

5.

Click

[OK]

. The Action name now appears next to the

Step with which it is associated in the Program.

To add content to the Action, double-click on the name of the
Action. A Program window appears. This allows you to
program the Action in any of the three programming
languages.