![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268298.webp)
259
Timer and Counter Instructions
Section 3-6
Description
When the timer input is OFF, the timer specified by N is reset, i.e., the timer’s
Completion Flag is turned OFF.
When the timer input goes from OFF to ON, TIMU(541)/TIMUX(556) starts
decrementing the PV. If the set value is reached while the timer input is ON,
the timer’s Completion Flag will be turned ON (the timer times out).
The status of the timer’s Completion Flag will be maintained after the timer
times out. To restart the timer, the timer input must be turned OFF and then
ON again.
Read this timer’s Completion Flag only. The timer’s PV is used by the system,
so it cannot be read.
Flags
Precautions
Timer numbers are shared with other timer instructions. If two timers share
the same timer number, but are not used simultaneously, a duplication error
will be generated when the program is checked, but the timers will operate
normally. Timers which share the same timer number will not operate properly
if they are used simultaneously.
The timer PV cannot be read.
The Completion Flag is updated only when TIMU(541)/TIMUX(556) is exe-
cuted. The Completion Flag can thus be delayed by up to one cycle time from
the actual set value.
The timer will not operate properly when the cycle time exceeds 100 ms.
Timers will be reset or paused in the following cases. (When a timer is reset,
its PV is reset to the SV and its Completion Flag is turned OFF.)
Indirect DM/EM
addresses in BCD
---
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
BCD:
#0000 to 9999 (BCD)
“&” cannot be used.
Binary:
&0 to &65535 (decimal)
#0000 to #FFFF (hex)
Data Registers
---
DR0 to DR15
Index Registers
---
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
Area
N
S
Name
Label
Operation
Error Flag
ER
ON if timer number N is indirectly addressed through an
Index Register but the address in the Index Register is not
the address of a timer’s Completion Flag or PV.
ON if in BCD mode and S does not contain BCD data.
OFF in all other cases.
Equals Flag
=
Unchanged
Negative Flag
N
Unchanged
Condition
Completion Flag
Operating mode changed from RUN or MONITOR mode
to PROGRAM mode or vice versa. (See note 1.)
OFF
Power supply interrupted and reset (See note 2.)
OFF
Содержание 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...