Omron CS1G/H-CPUxxH Instructions Manual page 246

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Timer and Counter Instructions
Precautions
Example
Unlike most timers, TIML(542)/TIMLX(553) does not use a timer number.
(Timer area PV refreshing is not performed for TIML(542)/TIMLX(553).)
Since the Completion Flag for TIML(542)/TIMLX(553) is in a data area it can
be forced set or forced reset like other bits, but the PV will not change.
The timer's PV is refreshed only when TIML(542)/TIMLX(553) is executed, so
the timer will not operate properly when the cycle time exceeds 100 ms
because the timer increments in 100-ms units.
The timer's Completion Flag is refreshed only when TIML(542)/TIMLX(553) is
executed, so a delay of up to one cycle may be required for the Completion
Flag to be turned ON after the timer times out.
When TIML(542)/TIMLX(553) is in a program section between IL(002) and
ILC(003) and the program section is interlocked, the PV will be reset to the SV
and the Completion Flag will be turned OFF.
When an operating TIML(542)/TIMLX(553) timer is in a program section
between JMP(004) and JME(005) and the program section is jumped, the PV
will retain its previous value. Be sure to take this fact into account when
TIML(542)/TIMLX(553) is programmed between JMP(004) and JME(005).
Be sure that the words specified for the Completion Flag and PV (D1, D2, and
D2+1) are not used in other instructions. If these words are affected by other
instructions, the timer might not time out properly.
When timer input CIO 000000 is ON in the following example, the timer PV (in
D00101 and D00100) will be set to the SV (in D00101 and D00100) and the
PV will begin counting down. The timer Completion Flag (CIO 020000) will be
turned ON when the PV reaches 0000 0000.
When CIO 000000 goes OFF, the timer PV will be reset to the SV and the
Completion Flag will be turned OFF.
Timer input
CIO 000000
Timer PV
(D00101 and D00100)
Timer SV:
(D00201 and D00200)
Timer Completion
Flag
(CIO 020000)
D1: 00200
Timer's PV (LSB)
D2: D00100
Timer's PV (MSB)
D00101
S: D00200
C
0
D00201
Timer Completion
Flag
(CIO 020000)
0
Timer SV:
(100,000 decimal= 10,000 s)
1
0
Section 3-6
225

Advertisement

Table of Contents
loading

Table of Contents