Step Instructions
0001 (SW1)
0002 (SW2)
0003 (SW3)
0004 (SW4)
Example 2: Branching
Execution
Weight scale
The program for this process, shown below, utilizes the most basic type of
step programming: each step is completed by a unique SNXT(09) that starts
the next step. Each step starts when the switch that indicates the previous
step has been completed turns ON.
SNXT(09) 1000
STEP(08) 1000
Process A
SNXT(09) 1001
STEP(08) 1001
Process B
SNXT(09) 1002
STEP(08) 1002
Process C
SNXT(09) 1003
The following process requires that a product is processed in one of two
ways, depending on its weight, before it is printed. The printing process is the
same regardless of which of the first processes is used. Various sensors are
positioned to signal when processes are to start and end.
SW A1
SW B1
Process A
Address
started.
0000
0001
0002
Process A
Address
reset.
0100
Process B
started.
0101
0102
Process
Address
B reset.
0200
Process C
started.
0201
0202
Process C
Address
reset.
0300
0301
STEP(08)
0302
Process A
Process B
SW B2
Section 5-18
Instruction
Operands
LD
0001
SNXT(09)
1000
STEP(08)
1000
Instruction
Operands
LD
0002
SNXT(09)
1001
STEP(08)
1001
Instruction
Operands
LD
0003
SNXT(09)
1002
STEP(08)
1002
Instruction
Operands
LD
0004
SNXT(09)
1003
STEP(08)
1003
Printer
SW A2
SW D
Process C
131