![background image](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-8-1/sysmac-cx-programmer-8-1_operation-manual_744240049.webp)
Precautions When Creating SFC Programs
Section 1-5
33
1-5
Precautions When Creating SFC Programs
1-5-1
Holding or Resetting an Action’s Outputs
The action’s type determines whether the action’s outputs (see note) are held or reset
when the step goes from active to inactive status.
Note:
In this section, the term “output” refers to the following.
•
For a bit specification, it refers to the specified bit address value in memory.
•
For a ladder program, it refers to the value written in memory by an instruction.
•
For an ST program, it refers to the value written in memory by a statement.
Bit Specification
•
The output is reset when a holding action qualifier (S) is not specified, but a qualifier
such as action qualifier (N) is specified.
•
When a holding action qualifier (S) is specified, the output is held by the action
qualifier’s execution condition even if the step becomes inactive. In this case, the
output can be reset by using a resetting action qualifier (R) and adding a step, as
shown in the following chart.
R
Step 2
Output
Output: Boolean variable
S
Step 1
Output
Ladder Program
With the default setting, the outputs are reset.
If you want to retain the output status, deselect the ladder program’s
Reset Output at
Final Scan
Option (remove the check mark).
Note 1.
When timer instructions are being used and outputs are set to be held (not reset), the
Timer Completion Flags will also be held, and the next time that the same action is
executed, it will start execution with the Timer Completion Flag ON. If you want to reset
the timer Completion Flags separately, include the action flag (see note 2) in the timer
instruction’s input condition by ANDing the flag as a NO condition to reset the timer.
2.
The action flag is ON when the step is active, and OFF when the step is inactive.
The flag is written as
Action_Name.Q
. For details on action flags, refer to the explanation
of
Flags Used to Monitor a Step’s Active Status
in
2-3 Elements of SFC
.
ST Program
With the default setting, the outputs are held.
If you want to reset the outputs, reset the outputs by including an “Action flag = FALSE”
condition (see note) in a statement such as an IF statement.
Note: The action flag is ON when the step is active, and OFF when the step is inactive. The flag
is written as
Action_Name.Q
. For details on action flags, refer to the explanation of
Flags
Used to Monitor a Step’s Active Status
in
2-3 Elements of SFC
.
Summary of Contents for SYSMAC CX-Programmer 8.1
Page 1: ...Operation Manual SFC Programming SYSMAC WS02 CXPC1 V8 CX Programmer Ver 8 1 Cat No W469 E1 04...
Page 2: ...ii CX Programmer Ver 8 1 WS02 CXPC1 V8 Operation Manual SFC Programming Revised February 2009...
Page 16: ......
Page 56: ...Precautions When Creating SFC Programs Section 1 5 40...
Page 118: ...Monitoring Section 4 5 102...
Page 150: ...Index 134...
Page 152: ...Revision History 136...
Page 153: ......
Page 154: ......