Difference between revisions of "MC-Basic:WDINIT"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ''<watch dog variable>'' = WDInit(''<wd cycles>'') |AVAILABILITY= All versions |DESCRIPTION= This command is used to attach a task to the wat…')
 
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:WDINIT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This command is used to attach a task to the watch dog mechanism. The command enables the watch dog to be triggered if a task does not service it within a specified time interval. WDINIT returns a value into an MC-defined variable. The watch dog cycle time is specified as a parameter, in units of the watch dog cycle time (20msec). The watch dog begins to Terminal the task after it is serviced for the first time using WDCYCLE. Using the watch dog Terminal mechanism from the command line enables a host program to be attached to the watch dog mechanism.
+
This command is used to attach a task to the watch dog mechanism. The command enables the watch dog to be triggered if a task does not service it within a specified time interval. WDINIT returns a value into an spoftMC-defined variable. The watch dog cycle time is specified as a parameter, in units of the watch dog cycle time (20msec). The watch dog begins to Terminal the task after it is serviced for the first time using WDCYCLE. Using the watch dog Terminal mechanism from the command line enables a host program to be attached to the watch dog mechanism.
  
 
|TYPE=
 
|TYPE=
''<watch dog variable>'': Long<br>
+
<''watch dog variable''>: Long<br>
''<wd cycles>'': Long
+
<''wd cycles''>: Long
  
 
|RANGE=
 
|RANGE=
''<wd cycles>'': 1 to MaxLong
+
<''wd cycles''>: 1 to MaxLong
  
 
|UNITS=
 
|UNITS=
Line 29: Line 30:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Write-Only
+
*Write only
 +
*Not supported in EtherCAT system
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 35: Line 37:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:WDCYCLE|WDCYCLE]]
+
* [[MC-Basic:WDCYCLE|WDCYCLE]]
* [[Axystems:MC-Basic:WDDELETE|WDDELETE]]
+
* [[MC-Basic:WDDELETE|WDDELETE]]
 
 
  
 +
[[Category:Obsolete|WDINIT]]
 
}}
 
}}

Latest revision as of 16:32, 2 May 2017

Language: English  • 中文(简体)‎

This command is used to attach a task to the watch dog mechanism. The command enables the watch dog to be triggered if a task does not service it within a specified time interval. WDINIT returns a value into an spoftMC-defined variable. The watch dog cycle time is specified as a parameter, in units of the watch dog cycle time (20msec). The watch dog begins to Terminal the task after it is serviced for the first time using WDCYCLE. Using the watch dog Terminal mechanism from the command line enables a host program to be attached to the watch dog mechanism.

Syntax

<watch dog variable> = WDInit(<wd cycles>)

Availability

All versions

Type

<watch dog variable>: Long
<wd cycles>: Long

Range

<wd cycles>: 1 to MaxLong

Scope

Task or Terminal

Limitations

  • Write only
  • Not supported in EtherCAT system

Examples

My_Var = WDInit(5)                                  ‘WD Terminal at 100 msec

See Also