
163
The following one-shot timer may be used to save memory.
00000
TIM 001
00100
00100
001.5 s
TIM 001
#0015
Address
Instruction
Operands
00000
LD
00000
00001
OR
00100
00002
TIM
001
#
0015
00003
AND NOT
TIM
001
00004
OUT
00100
Bits can be programmed to turn ON and OFF at regular intervals while a desig-
nated execution condition is ON by using TIM twice. One TIM functions to turn
ON and OFF a specified bit, i.e., the Completion Flag of this TIM turns the speci-
fied bit ON and OFF. The other TIM functions to control the operation of the first
TIM, i.e., when the first TIM’s Completion Flag goes ON, the second TIM is
started and when the second TIM’s Completion Flag goes ON, the first TIM is
started.
00000 TIM 002
TIM 001
TIM 001
00205
00000
00205
1.5 s
1.0 s
1.5 s
1.0 s
1.5 s
1.0 s
TIM 001
#0010
TIM 002
#0015
Address
Instruction
Operands
00000
LD
00000
00001
AND
TIM
002
00002
TIM
001
#
0010
00003
LD
TIM
001
00004
TIM
002
#
0015
00005
LD
TIM
001
00006
OUT
00205
A simpler but less flexible method of creating a flicker bit is to AND one of the SR
area clock pulse bits with the execution condition that is to be ON when the flick-
er bit is operating. Although this method does not use TIM, it is included here for
comparison. This method is more limited because the ON and OFF times must
be the same and they depend on the clock pulse bits available in the SR area.
In the following example the 1-second clock pulse is used (25502) so that 00206
would be turned ON and OFF every second, i.e., it would be ON for 0.5 seconds
and OFF for 0.5 seconds. Precise timing and the initial status of 00206 would
depend on the status of the clock pulse when 00000 goes ON.
00000 25502
00206
Address
Instruction
Operands
00000
LD
00000
00001
AND
25502
00002
OUT
00206
Example 5:
Flicker Bits
Timer and Counter Instructions
Section 5-14
Содержание SYSMAC C200HE
Страница 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Страница 2: ......
Страница 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 380: ......
Страница 410: ......
Страница 438: ......
Страница 464: ......
Страница 474: ......
Страница 522: ......
Страница 538: ......
Страница 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 554: ......
Страница 560: ......
Страница 584: ......
Страница 585: ......
Страница 586: ...W303 E1 09 ...