![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268327.webp)
288
Timer and Counter Instructions
Section 3-6
Example 4:
One-shot Bit
A TIM timer can be combined with OUT or OUT NOT to control how long a
particular bit is ON or OFF. In this example, CIO 000204 will be ON for 1.5
seconds (the SV of T0001) after CIO 000000 goes ON.
Example 4:
Flicker Bit
The following program examples show two ways to create flicker bits. The
second example just mimics a clock pulse.
Two TIM Instructions
Two TIM timers can be combined to make a bit turn ON and OFF at regular
intervals while the execution condition is ON. In this example, CIO 000205 will
be OFF for 1.0 second and then ON for 1.5 seconds as long as CIO 000000 is
ON.
CIO 000000
CIO 000500
5.0 s
3.0 s
000000 LD
000000
000001 TIM
0001
#0050
000002 LD
000500
000003 AND
NOT 000000
000004 TIM
0002
#0030
000005 LD
T0001
000006 LD
T0002
000007 KEEP(011) 000500
Instruction Operands
Address
000000 LD
000000
000001 LD
001000
000002 AND
NOT 010000
000003 OR
000000
000004 OUT
001000
000005 LD
001000
000006 TIM
0001
#0015
000007 LD
T0001
000008 OUT
010000
000009 LD
001000
000010 AND
NOT 010000
000011 OUT
000204
CIO 000000
CIO 000204
1.5 s
1.5 s
Instruction Operands
Address
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...