on
off
on
off
on
off
Process 10
Process 20
Time chart
on
off
Process 30
on
off
Process 0
Process 11
Process 0
Executing
Cleared
Executing
Cleared
Executing
Cleared
Executing
Cleared
Executing
Cleared
X0
X10
X11
X30
X31
R20
R21
R22
R23
R24
(NSTL 30 )
(CSTP 20 )
X30
(NSTP 0 )
Process 0
(SSTP 0 )
X0
R20
(NSTL 10 )
(SSTP 10 )
X10
Program
(NSTL 20 )
Process 10
(NSTL 11 )
(SSTP 20 )
X11
R21
R22
(SSTP 30 )
R100
(SSTP 11 )
R23
(NSTL 0 )
(STPE )
X31
R24
R100
Process 20
Process 11
Process 30
Basic Instructions
2 − 84
3
Parallel branch merge control of a process
This program triggers multiple processes simultaneously. After each of the branch processes has
completed its work, they merge again before transferring execution to the next process.
Program multiple NSTL instructions for one trigger in a process.
To merge processes, include a flag indicating the state of the other processes in the transfer condition
for the next process.
When they merge and execute the next process, clear all uncleared processes at the same time.
Program example
1) When X0 turns on, process 0 is executed.
2) When X10 turns on, process 0 is cleared and
process 10 and process 20 are executed
simultaneously (Parallel branch control).
3) When X11 turns on, process 10 is cleared and
process 11 is executed.
4) When X30 turns on, process 11 and process 20
are cleared and process 30 is activated. (Merge
control)
・ Clear process 20 with the clear instruction.
・ Clear process 11 and execute process 30.
5) When X31 turns on, process 30 is cleared and
initial process 0 is executed again.
Process 0
X0: on
R20 turns on.
Process 20
R22
turns
on.
Process 30 R24 turns on.
X31: on
Process flowchart
Process 10
R21
turns on.
X11: on
Process 11
R23
turns on.
X30: on