Difference between revisions of "MC-Basic:WRITEIDNVALUE"

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
m (layout)
Line 10: Line 10:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This command writes the value of a specified element of an IDN to a specified drive. It is used when writing to an IDN that takes numeric values. ''<element>'' is optional. In general, only element 7 is used (default). This command is also used to operate a procedure command. In this case, the value 3 is written to begin the procedure, and the value 0 is written to cancel the procedure once it has completed.
+
This command writes the value of a specified element of an IDN to a specified drive.  
 +
It is used when writing to an IDN that takes numeric values.  
 +
 
 +
''<element>'' is optional. In general, only element 7 is used (default).  
 +
 
 +
This command is also used to operate a procedure command.  
 +
In this case, the value 3 is written to begin the procedure, and the value 0 is written to cancel the procedure once it has completed.
  
 
|TYPE=
 
|TYPE=
Line 33: Line 39:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Write-Only. Executed only in SERCOS communication phases 2, 3 and 4. The IDN must be defined.
+
* Write-Only.  
 +
* Executed only in SERCOS communication phases 2, 3 and 4.  
 +
* The IDN must be defined.
  
 
|EXAMPLE=
 
|EXAMPLE=
WriteIdnValue Drive=2 Idn=159 Value=10000       ‘Set PEMAX on drive<br>
+
<pre>
 +
WriteIdnValue Drive=2 Idn=159 Value=10000       'Set PEMAX on drive
  
WIVal Drive = 1 IDN = 99 Value = 3                     ‘Begin Reset Faults procedure
+
WIVal Drive = 1 IDN = 99 Value = 3              'Begin Reset Faults procedure
 +
</pre>
  
 
|SEE ALSO=
 
|SEE ALSO=

Revision as of 13:08, 19 April 2012

This command writes the value of a specified element of an IDN to a specified drive. It is used when writing to an IDN that takes numeric values.

<element> is optional. In general, only element 7 is used (default).

This command is also used to operate a procedure command. In this case, the value 3 is written to begin the procedure, and the value 0 is written to cancel the procedure once it has completed.

Short form

WIVal

Syntax

WriteIdnValue Drive=<drive>, Idn=<number>, Value=<value>, {Element=<element>}

Availability

All versions

Type

<drive>: Long
<number>: Long
<value>: Long
<element>: Long

Range

<drive>: 1 to 254
<number>: 1 to 65535
<element>: 1 to 7

Default

<element>: 7

Scope

Configuration, Task or Terminal

Limitations

  • Write-Only.
  • Executed only in SERCOS communication phases 2, 3 and 4.
  • The IDN must be defined.

Examples

WriteIdnValue Drive=2 Idn=159 Value=10000       'Set PEMAX on drive

WIVal Drive = 1 IDN = 99 Value = 3              'Begin Reset Faults procedure

See Also