Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 1033

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
Programming console settings
Name
Watch cycle time
A Cycle Time Too Long error (fatal error) will be registered if the cycle
time exceeds the maximum setting.
Sets the maximum cycle time.
(This setting is valid only when the first setting has been set to 1.)
Note
• The default value for the maximum cycle time is 1,000 ms, although it can be set anywhere from 1 to 40,000 ms in
10-ms units.
• WDT(094) can be used more than once in a cycle. When WDT(094) is executed more than once the cycle time
extensions are added together, although the total must not exceed 40,000 ms. If WDT(094) cannot be executed
again if the cycle has already been extended to 40,000 ms.
Related Auxiliary Area Words and Bits
Name
Cycle Time Too Long Flag
Maximum Cycle Time
Present Cycle Time
Function
WDT(094) extends the maximum cycle time for the cycle in which this instruction is executed. The
watchdog timer setting in the PLC Setup is extended by an interval of T
When it is likely that the cycle time will increase due to a temporary increase in processing data, this
instruction can be used to prevent a cycle time error.
Sample program
0.00
0.01
0.02
Operation of WDT(094)
The default maximum cycle time (1,000 ms) is used in this example.
• When CIO 0.00 turns ON, the first WDT(094) instruction extends the maximum cycle time by 300 ms
(30
10 ms). Thus, the maximum cycle time is 1,300 ms at this point.
• When CIO 0.01 turns ON, the second WDT(094) instruction attempts to extend the maximum cycle
time by another 39,000 ms. Since the new maximum cycle time (40,300 ms) exceeds the upper limit
of 40,000 ms, the extra 300 ms is ignored. As a result, the second WDT(094) instruction actually
extends the maximum cycle time by 38,700 ms.
• When CIO 0.02 turns ON, the third WDT(094) instruction attempts to extend the maximum cycle time
by another 1,000 ms. Since the maximum cycle time has already reached the upper limit of 40,000
ms, the third WDT(094) instruction is not executed.
996
Function
Address
A401.08
ON when the present cycle time exceeds the maximum cycle time (watch cycle time) set in
the PLC Setup. This is a fatal error which causes program execution to stop.
A262 and A263
These words contain the maximum cycle time in 32-bit binary. This value is updated every
cycle.
A264 and A265
These words contain the present cycle time in 32-bit binary. This value is updated every
cycle.
1
2
3
Settings
0: Default setting (1,000 ms)
1: User time setting
0001 to 0FA0
(1 to 40,000 ms, 10-ms units)
Operation
10 ms (0 to 39,990 ms).
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents