[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN 90 PWDTWATCHDOG TIMERFUN 90 PWDTN : The watchdog time. The range of N is 5~120, unitin 10mS (i.e. 50ms~1.2 sec)• When execution control "EN" = 1 or "EN↑" ( P instruction) transition from 0 to 1, will set the watchdog timeto Nx10ms. If the scan time exceeds this preset time, PLC will shut down and not execute the applicationprogram.• The WDT feature is designed mainly as a safety consideration from the system view for the application. Forexample, if the CPU of PLC is suddenly damaged, and there is no way to execute the program or refresh I/O,then after the WDT time expired, the WDT will automatically switch off all the I/Os, so as to ensure safety. Incertain applications, if the scan time is too long, it may cause safety problems or problems ofnon-conformance with control requirements. This instruction can used to establish the limitation of the scantime that you require.• Once the WDT time has been set it will always be kept, and there is no need to set it again on each scan.Therefore, in practice this instruction should use the P instruction.• Default WDT time is 0.25 sec.• For the operation principles of WDT please refer to the RSWDT(FUN 91) instruction.7-75
Advanced Function InstructionFUN 91 PRSWDTRESET WATCHDOG TIMERFUN 91 PRSWDTThis instruction has no operand.• When execution control "EN" = 1 or "EN↑" ( P instruction), the WDT timer will be reset (i.e. WDT will starttiming again from 0).• The functions of WDT have already been described in FUN90 (WDT instruction).The operation principles of watch dog timer are as follows:The watchdog timer is normally implemented by a hardware one-shot timer (it can not be software,otherwise if CPU fail, the timer becomes ineffective, and safeguards are quite impossible). "One-shot"means that after triggered the timer once, the timing value will immediately be reset to 0 and timing willrestart. If WDT has begun timing, and never triggered it again, then the WDT timing value will continueaccumulating until it reach the preset value of N, at that time WDT will be activated, and PLC will be shutdown. If trigger the WDT once every time before the WDT time N has been reached, then WDT will neverbe activated. PLC can use this feature to ensure the safety of the system. Each time when PLC enters intosystem housekeeping after finished the program scanning and I/O refresh, it will usually trigger WDT once,so if the system functions normally and scan time does not exceed WDT time then WDT is never activated.However, if CPU is damaged and unable to trigger WDT, or the scan time is too long, then there will not beenough time to trigger WDT within the period N, WDT will be activated and will shut off PLC.• In some applications, when you set the WDT time (FUN90) to desire, the scan time of your program in certainsituations may temporarily exceed the preset time of WDT. This situation can be anticipated and allowed for,and you naturally do not wish PLC to shut down for this reason. You can use this instruction to trigger WDTonce and avoid the activation of WDT. This is the main purpose of this instruction.7-76
- Page 132 and 133: Advanced Function InstructionFUN50
- Page 134 and 135: Advanced Function InstructionFUN 52
- Page 136 and 137: Advanced Function InstructionFUN 54
- Page 138 and 139: Advanced Function InstructionFUN55
- Page 140 and 141: Advanced Function InstructionFUN56
- Page 142 and 143: Advanced Function InstructionFUN 58
- Page 144 and 145: Advanced Function InstructionFUN 59
- Page 146 and 147: Advanced Function InstructionFUN 59
- Page 148 and 149: Advanced Function InstructionFUN 61
- Page 150 and 151: Advanced Function InstructionFUN 63
- Page 152 and 153: Advanced Function InstructionFUN 64
- Page 154 and 155: Advanced Function InstructionEND PR
- Page 156 and 157: Advanced Function InstructionFUN 66
- Page 158 and 159: Advanced Function InstructionFUN 68
- Page 160 and 161: Advanced Function InstructionFUN 70
- Page 162 and 163: Advanced Function InstructionFUN 74
- Page 164 and 165: Advanced Function InstructionFUN 76
- Page 166 and 167: Advanced Function InstructionFUN 78
- Page 168 and 169: Advanced Function InstructionFUN 79
- Page 170 and 171: Advanced Function InstructionFUN 81
- Page 172 and 173: Advanced Function InstructionFUN 82
- Page 174 and 175: Advanced Function InstructionFUN 84
- Page 176 and 177: Advanced Function InstructionFUN 86
- Page 178 and 179: Advanced Function InstructionFUN 86
- Page 180 and 181: Advanced Function InstructionFUN89/
- Page 184 and 185: Advanced Function InstructionFUN 92
- Page 186 and 187: Advanced Function InstructionFUN 94
- Page 188 and 189: Advanced Function InstructionFUN 95
- Page 190 and 191: Advanced Function InstructionTable
- Page 192 and 193: Advanced Function InstructionFUN101
- Page 194 and 195: Advanced Function InstructionFUN103
- Page 196 and 197: Advanced Function InstructionFUN105
- Page 198 and 199: Advanced Function InstructionFUN107
- Page 200 and 201: Advanced Function InstructionFUN109
- Page 202 and 203: Advanced Function InstructionFUN110
- Page 204 and 205: Advanced Function InstructionFUN111
- Page 206 and 207: Advanced Function InstructionFUN112
- Page 208 and 209: Advanced Function InstructionFUN114
- Page 210 and 211: Advanced Function InstructionFUN120
- Page 212 and 213: Advanced Function InstructionFUN122
- Page 214 and 215: Advanced Function InstructionFUN124
- Page 216 and 217: Advanced Function InstructionFUN126
- Page 218 and 219: Advanced Function InstructionFUN128
- Page 220 and 221: Advanced Function InstructionFUN130
- Page 222 and 223: Advanced Function InstructionFUN 13
- Page 224 and 225: Advanced Function InstructionFUN141
- Page 226 and 227: Advanced Function InstructionFUN143
- Page 228 and 229: Advanced Function InstructionFUN146
- Page 230 and 231: Advanced Function InstructionFUN 15
Advanced Function <strong>Instruction</strong>FUN 90 PWDTWATCHDOG TIMERFUN 90 PWDTN : The watchdog time. The range of N is 5~120, unitin 10mS (i.e. 50ms~1.2 sec)• When execution control "EN" = 1 or "EN↑" ( P instruction) transition from 0 to 1, will set the watchdog timeto Nx10ms. If the scan time exceeds this preset time, PLC will shut down and not execute the applicationprogram.• The WDT feature is designed mainly as a safety consideration from the system view for the application. Forexample, if the CPU of PLC is suddenly damaged, and there is no way to execute the program or refresh I/O,then after the WDT time expired, the WDT will automatically switch off all the I/Os, so as to ensure safety. Incertain applications, if the scan time is too long, it may cause safety problems or problems ofnon-conformance with control requirements. This instruction can used to establish the limitation of the scantime that you require.• Once the WDT time has been set it will always be kept, and there is no need to set it again on each scan.Therefore, in practice this instruction should use the P instruction.• Default WDT time is 0.25 sec.• For the operation principles of WDT please refer to the RSWDT(FUN 91) instruction.7-75