Difference between revisions of "MC-Basic:WRITEIDNVALUEARRAY"
m (Text replace - "''<element>''" to "<''element''>") |
|||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:WRITEIDNVALUEARRAY}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 8: | Line 9: | ||
|AVAILABILITY= | |AVAILABILITY= | ||
− | + | Since Version 4.7.12 for SERCOS III | |
|DESCRIPTION= | |DESCRIPTION= | ||
Line 17: | Line 18: | ||
<''element''> is optional. In general, only element 7 is used (default). | <''element''> is optional. In general, only element 7 is used (default). | ||
− | |||
− | |||
|TYPE= | |TYPE= | ||
− | '' | + | <''drive''>: Long<br> |
− | '' | + | <''IDN number''>: Long<br> |
<''value''>: Long Type Array name<br> | <''value''>: Long Type Array name<br> | ||
− | '' | + | <''size''>: Long<br> |
− | '' | + | <''IDN element''>: Long<br> |
− | '' | + | <''ring''>: Long<br> |
− | '' | + | <''connection''>:Long<br> |
|RANGE= | |RANGE= | ||
− | '' | + | <''drive''>: 1 to 254<br> |
− | '' | + | <''IDN number''>: 1 to 65535<br> |
− | '' | + | <''IDN element''>: 1 to 7<br> |
− | '' | + | <''size''>: 1 to maximal array element number <br> |
− | '' | + | <''ring''>:1<br> |
− | '' | + | <''connection''>:0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection)<br> |
Line 49: | Line 48: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | * Write | + | * 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 |
− | * The Long | + | * The Long type array must be declared preliminary |
− | * <size> parameter | + | * <''size''> parameter must not be more than maximal number of IDN array elements |
− | + | * Not supported in EtherCAT system | |
|EXAMPLE= | |EXAMPLE= | ||
<pre> | <pre> | ||
− | |||
Example For Bosch Rexroth drive : | Example For Bosch Rexroth drive : | ||
− | |||
-->common shared VelFilterType[10] as long | -->common shared VelFilterType[10] as long | ||
− | |||
− | |||
-->WriteIdnValueArray Drive=ax1.dadd Idn=0x8000+1122 Value=VelFilterType size=4 | -->WriteIdnValueArray Drive=ax1.dadd Idn=0x8000+1122 Value=VelFilterType size=4 | ||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:IDNSTRING|IDNSTRING]] |
− | * [[ | + | * [[MC-Basic:IDNVALUE|IDNVALUE]] |
− | * [[ | + | * [[MC-Basic:WRITEIDNSTRING|WRITEIDNSTRING]] |
− | [[Category | + | [[Category:Obsolete|WRITEIDNVALUEARRAY]] |
}} | }} |
Latest revision as of 17:04, 2 May 2017
Language: | English • 中文(简体) |
---|
This command writes the data from the preliminary declared Long Type Array to a specified element of an IDN to a specified drive. The number of elements to write is limited by <size> parameter. This function works only for IDNs containing more than one Long Type value in array method .
<element> is optional. In general, only element 7 is used (default).
Short form
WIVALA
Syntax
WRITEIDNVALUEARRAY Drive=<drive address> IDN=<IDN number> Value=<long_type_array_name> Size=<array elements number> {Element=<IDN element number>} {Ring=<ring number>} {Connection=<connection number>}
Availability
Since Version 4.7.12 for SERCOS III
Type
<drive>: Long
<IDN number>: Long
<value>: Long Type Array name
<size>: Long
<IDN element>: Long
<ring>: Long
<connection>:Long
Range
<drive>: 1 to 254
<IDN number>: 1 to 65535
<IDN element>: 1 to 7
<size>: 1 to maximal array element number
<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
- The Long type array must be declared preliminary
- <size> parameter must not be more than maximal number of IDN array elements
- Not supported in EtherCAT system
Examples
Example For Bosch Rexroth drive : -->common shared VelFilterType[10] as long -->WriteIdnValueArray Drive=ax1.dadd Idn=0x8000+1122 Value=VelFilterType size=4