![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268292.webp)
253
Timer and Counter Instructions
Section 3-6
Note
1.
If the IOM Hold Bit (A50012) has been turned ON, the status of timer Com-
pletion Flags and PVs will be maintained when the operating mode is
changed.
2.
If the IOM Hold Bit (A50012) has been turned ON and the status of the IOM
Hold Bit itself is protected in the PLC Setup, the status of timer Completion
Flags and PVs will be maintained even when the power is interrupted.
3.
The PV will be set to the SV when TIMH(015)/TIMHX(551) is executed.
When an operating TIMH(015)/TIMHX(551) timer created with a timer number
between 0000 and 2047 is in a jumped program section (JMP(004),
CJMP(510), CJPN(511), JME(005)), the timer’s PV will continue timing. (See
note.) (The jumped TIMH(015)/TIMHX(551) instruction will not be executed,
but the PV will be refreshed every 10 ms and each cycle after all tasks have
been executed.)
Note
With the CS1D CPU Units, the PV will not be refreshed in the above case.
When TIMH(015)/TIMHX(551) 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 a TIMH(015)/TIMHX(551) timer is forced set, its Completion Flag will
be turned ON and its PV will be set to 0000. When a TIMH(015)/TIMHX(551)
timer is forced reset, its Completion Flag will be turned OFF and its PV will be
reset to the SV.
The operation of the = Flag and N Flag depends or the model of CPU Unit.
Refer to
Flags
for details.
The timer’s Completion Flag is refreshed only when TIMH(015)/TIMHX(551)
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.
If online editing is used to overwrite a timer instruction, always reset the Com-
pletion Flag. The timer will not operate properly unless the Completion Flag is
reset.
A TIMH(015)/TIMHX(551) instruction’s PV and Completion Flag can be
refreshed in the following ways depending on the timer number that is used.
Timers Created with Timer Numbers 0000 to 0255
Timers Created with Timer Numbers 0256 to 2047
Timers Created with Timer Numbers 2048 to 4095
Execution of
TIMH(015)/
TIMHX(551)
The Completion Flag is turned ON if the PV is 0000.
The Completion Flag is turned OFF if the PV is not 0000.
10-ms interval
refreshing
The timer’s PV is updated every 10 ms.
Execution of
TIMH(015)/
TIMHX(551)
The PV is updated every time that TIMH(015)/TIMHX(551) is
executed.
The Completion Flag is turned ON if the PV is 0000.
The Completion Flag is turned OFF if the PV is not 0000.
After executing all
tasks
The PV is also updated every cycle at the end of program execu-
tion.
80-ms interval
refreshing
If the cycle time exceeds 80 ms, the timer’s PV is updated every
80 ms.
Execution of
TIMH(015)/
TIMHX(551)
The PV is updated every time that TIMH(015) is executed.
The Completion Flag is turned ON if the PV is 0000.
The Completion Flag is turned OFF if the PV is not 0000.
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...