Difference between revisions of "MC-Basic:WRITEIDNVALUE"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "''<value>''" to "<''value''>")
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:WRITEIDNVALUE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 4: Line 5:
  
 
|SYNTAX=
 
|SYNTAX=
WriteIdnValue Drive=''<drive address>'', Idn=''<IDN number>'', Value=<''value''>, {Element=''<IDN element number>''}
+
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>}
 
 
WRITEIDNVALUE Drive=<drive address> IDN=<IDN number> Value=<value {,<value>}> {Element=<IDN element number>} {Ring=<ring number>} {Connection=<connection number>}
 
  
  
 
|AVAILABILITY=
 
|AVAILABILITY=
 
All versions
 
All versions
 +
Since Version 4.7.12 for SERCOS III
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 19: Line 19:
 
It is used when writing to an IDN that takes numeric values.  
 
It is used when writing to an IDN that takes numeric values.  
  
''<element>'' is optional. In general, only element 7 is used (default).  
+
<''element''> is optional. In general, only element 7 is used (default).  
  
 
This command is also used to operate a procedure command.  
 
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.
 
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.
  
{{Note/Important| '''THIS COMMAND IS OBSOLETE'''}}
 
  
 
|TYPE=
 
|TYPE=
''<drive>'': Long<br>
+
<''drive''>: Long<br>
''<IDN number>'': Long<br>
+
<''IDN number''>: Long<br>
 
<''value''>: Long<br>
 
<''value''>: Long<br>
''<IDN element>'': Long
+
<''IDN element''>: Long
''<ring>'': Long
+
<''ring''>: Long
''<connection>'':Long
+
<''connection''>:Long
  
  
 
|RANGE=
 
|RANGE=
''<drive>'': 1 to 254<br>
+
<''drive''>: 1 to 254<br>
''<IDN number>'': 1 to 65535<br>
+
<''IDN number''>: 1 to 65535<br>
''<IDN element>'': 1 to 7
+
<''IDN element''>: 1 to 7 <br>
''<ring>'':1
+
<''ring''>:1 <br>
''<connection>'':0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection)
+
<''connection''>:0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection)
  
  
Line 47: Line 46:
  
 
|DEFAULT=
 
|DEFAULT=
''<element>'': 7
+
<''element''>: 7
  
 
|SCOPE=
 
|SCOPE=
Line 53: Line 52:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
* Write-Only.
+
*Write only
* Executed only in SERCOS communication phases 2, 3 and 4.  
+
*Executed only in SERCOS communication phases 2, 3 and 4.
* The IDN must be defined.
+
*The IDN must be defined
 +
*Not supported in EtherCAT system
  
 
|EXAMPLE=
 
|EXAMPLE=
 
<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
 
+
Since Version 4.7.12 for SERCOS III :
From AMCS 0.4.7.12 for SERCOS III :
 
 
 
 
WriteIdnValue Drive=2 Idn=159 Value=10000 Element= 7 Ring= 1 Connection= 0
 
WriteIdnValue Drive=2 Idn=159 Value=10000 Element= 7 Ring= 1 Connection= 0
 
 
 
</pre>
 
</pre>
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:IDNSTRING|IDNSTRING]]
+
* [[MC-Basic:IDNSTRING|IDNSTRING]]
* [[Axystems:MC-Basic:IDNVALUE|IDNVALUE]]
+
* [[MC-Basic:IDNVALUE|IDNVALUE]]
* [[Axystems:MC-Basic:WRITEIDNSTRING|WRITEIDNSTRING]]
+
* [[MC-Basic:WRITEIDNSTRING|WRITEIDNSTRING]]
  
[[Category:Axystems:Obsolete|WRITEIDNVALUE]]
+
[[Category:Obsolete|WRITEIDNVALUE]]
  
 
}}
 
}}

Latest revision as of 16:59, 2 May 2017

Language: English  • 中文(简体)‎

This command writes the Long Type 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>}


WRITEIDNVALUE Drive=<drive address> IDN=<IDN number> Value=<value {,<value>}> {Element=<IDN element number>} {Ring=<ring number>} {Connection=<connection number>}

Availability

All versions Since Version 4.7.12 for SERCOS III

Type

<drive>: Long
<IDN number>: Long
<value>: Long
<IDN element>: Long <ring>: Long <connection>:Long

Range

<drive>: 1 to 254
<IDN number>: 1 to 65535
<IDN 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
  • Not supported in EtherCAT system

Examples

WriteIdnValue Drive=2 Idn=159 Value=10000       'Set PEMAX on drive
WIVal Drive = 1 IDN = 99 Value = 3              'Begin Reset Faults procedure
Since Version 4.7.12 for SERCOS III :
WriteIdnValue Drive=2 Idn=159 Value=10000 Element= 7 Ring= 1 Connection= 0

See Also