![background image](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-8-1/sysmac-cx-programmer-8-1_operation-manual_744240047.webp)
SFC Programming Example
Section 1-4
31
Editing the SFC Chart for the Unattended Paid Parking Lot
1 Register the required user variables (
carIn
,
ticket
,
ticketOut
,
gateopenLimit
,
gatecloseLimit
,
gateOpen
, and
gateClose
) in the local symbol table.
For details, refer to
1-4-1 Simple Example of an SFC Program
.
In the project workspace, select the
Symbols
item for the SFC program item.
Right-click the symbol table, and select
Insert Symbol
.
Enter the variable name in the
Name
field of the New Symbol dialog, and click
OK
.
2 Create ladder action programs (
A_ticketOut
,
A_gateOpen
,
A_gateClose
) as
Actions
folder in the project workspace.
Select and right-click the
Actions
folder for the SFC program items in the project
workspace, and select
Insert Action
-
Ladder
.
Right-click the inserted action program, select
Properties
, and enter the action
program name.
Right-click the inserted action program, select
Open
, and create the ladder action
program.
Note:
Leave the action program’s
Reset Output at Final Scan
setting at its
default setting of ON (reset). Make the same setting for all of the following
action programs, too.
3 Input the name for Step 1.
Right-click Step 1, and select
Edit Step Name
.
Input Initial into Step 1.
4 Input the transition condition for Step 1.
Right-click the transition after Step 1, and select
Edit Transition Condition
.
Input
carln
as the transition condition.
5 Input the name for Step 2.
Right-click Step 2, and select
Edit Step Name
.
Input
TicketOut
into Step 2.
6 Add an action program to the action in Step 2.
Right-click Step 2, and select
Add Action
-
Existing Action
.
Double-click the right-hand side of the action block, and select
A_ticketOut
from
the combo box.
7 Input the transition condition for Step 2.
Right-click the transition after Step 2, and select
Edit Transition Condition
.
Input
ticket
as the transition condition.
8 Input the name for Step 3.
Right-click Step 3, and select
Edit Step Name
.
Input
OpenGate
into Step 3.
9 Add an action program to the action in Step 3.
Right-click Step 3, and select
Add Action
-
Existing Action
.
Double-click the right-hand side of the action block, and select
A_gateOpen
from
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: ......