Difference between revisions of "MC-Basic:WRITEIDNVALUE"
m (layout) |
|||
Line 4: | Line 4: | ||
|SYNTAX= | |SYNTAX= | ||
− | WriteIdnValue Drive=''<drive>'', Idn=''<number>'', Value=''<value>'', {Element=''<element>''} | + | WriteIdnValue Drive=''<drive address>'', Idn=''<IDN number>'', Value=''<value>'', {Element=''<IDN element number>''} |
+ | |||
+ | |||
+ | From AMCS 0.4.7.12 for SERCOS III : | ||
+ | |||
+ | WRITEIDNVALUE Drive=<drive address> IDN=<IDN number> Value=<value {,<value>}> {Element=<IDN element number>} {Ring=<ring number>} {Connection=<connection number>} | ||
+ | |||
|AVAILABILITY= | |AVAILABILITY= | ||
Line 23: | Line 29: | ||
''<value>'': Long<br> | ''<value>'': Long<br> | ||
''<element>'': Long | ''<element>'': Long | ||
+ | ''<ring>'': Long | ||
+ | ''<connection>'':Long | ||
+ | |||
|RANGE= | |RANGE= | ||
Line 28: | Line 37: | ||
''<number>'': 1 to 65535<br> | ''<number>'': 1 to 65535<br> | ||
''<element>'': 1 to 7 | ''<element>'': 1 to 7 | ||
+ | ''<ring>'':1 | ||
+ | ''<connection>'':0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection) | ||
+ | |||
|UNITS= | |UNITS= | ||
Line 46: | Line 58: | ||
<pre> | <pre> | ||
WriteIdnValue Drive=2 Idn=159 Value=10000 'Set PEMAX on drive | 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 | ||
+ | |||
+ | From AMCS 0.4.7.12 for SERCOS III : | ||
+ | |||
+ | WriteIdnValue Drive=2 Idn=159 Value=10000 Element= 7 Ring= 1 Connection= 0 | ||
+ | |||
+ | |||
</pre> | </pre> | ||
Revision as of 11:03, 29 August 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 address>, Idn=<IDN number>, Value=<value>, {Element=<IDN element number>}
From AMCS 0.4.7.12 for SERCOS III :
WRITEIDNVALUE Drive=<drive address> IDN=<IDN number> Value=<value {,<value>}> {Element=<IDN element number>} {Ring=<ring number>} {Connection=<connection number>}
Availability
All versions
Type
<drive>: Long
<number>: Long
<value>: Long
<element>: Long
<ring>: Long
<connection>:Long
Range
<drive>: 1 to 254
<number>: 1 to 65535
<element>: 1 to 7
<ring>:1
<connection>:0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection)
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 From AMCS 0.4.7.12 for SERCOS III : WriteIdnValue Drive=2 Idn=159 Value=10000 Element= 7 Ring= 1 Connection= 0