![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268868.webp)
829
Subroutines
Section 3-19
and CIO 000100 is turned ON by DIFU(013) when CIO 000001 has gone
from OFF to ON. If CIO 000001 is ON in the same cycle, global subroutine
0001 will be executed again but this time DIFU(013) will not detect the rising
edge of CIO 000001 and CIO 000100 will be turned OFF.
In contrast, the output of a differentiated instruction (DIFU(013) or DIFD(014))
would remain ON if the instruction was executed and the output was turned
ON but the same global subroutine was not called a second time.
In the following example, global subroutine 0001 is executed if CIO 000000 is
ON. Output CIO 000100 is turned ON by DIFU(013) when CIO 000001 has
gone from OFF to ON. If CIO 000000 is OFF in the following cycle, subrou-
tine 0001 will not be executed again and output CIO 000100 will remain ON.
GSBS
1
000000
GSBS
1
000001
GSBN
1
DIFU
000100
000001
GRET
Cyclic task 1
Cyclic task 2
Interrupt task 0
Executed
again
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...