Difference between revisions of "MC-Basic:IDNVALUEARRAYDOUBLE"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{MC-Basic |SHORT FORM= IVALAD |SYNTAX= IdnValueArrayDouble (''<drive address>, <IDN>, <element>, <double_type_array_name>,{<ring>}, {<connection>} '') |AVAILABILITY= from AMC…")
 
 
(17 intermediate revisions by 4 users not shown)
Line 6: Line 6:
 
IdnValueArrayDouble (''<drive address>, <IDN>, <element>, <double_type_array_name>,{<ring>}, {<connection>}
 
IdnValueArrayDouble (''<drive address>, <IDN>, <element>, <double_type_array_name>,{<ring>}, {<connection>}
 
'')  
 
'')  
|AVAILABILITY=  from AMCS 0.4.7.12 for SERCOS III  
+
|AVAILABILITY=  Since Version 4.7.12 for SERCOS III  
  
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This function is used to read the number of IDN values of a specified IDN from a specified drive returned by  the long-type array.  
+
This function works only for IDNs containing more than one Double Type value in array method .
 
 
  
 +
It fills the preliminary declared Double Type Array by IDN data, and returns the number of IDN values introduced into the array.
 +
 
|TYPE=
 
|TYPE=
''<returned value>'': Double Type Array
+
<''returned value''>: Long (the number of IDN values introduced into the array)
  
 
|RANGE=
 
|RANGE=
''<drive address>'': 1 to 254<br>
+
<''drive address''>: 1 to 254<br>
''<IDN>'': 1 to 65536<br>
+
<''IDN''>: 1 to 65536<br>
''<element>'': 1 to 7
+
<''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)
  
 
|UNITS=
 
|UNITS=
Line 33: Line 34:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only. Executed only in SERCOS communication phases 2, 3 and 4.<br>
+
*Read only
 
+
*Executed only in SERCOS communication phases 2, 3 and 4.
The IDN must be defined.
+
*The IDN must be defined
Array must be double-type.
+
*The Double Type Array should be declared preliminary, and its size should be enough to contain the IDN data
All other inputs must be double.
+
*Not supported in EtherCAT system
 +
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 49: Line 51:
 
? IDNVALUEARRAYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>, <ring>, <connection>)
 
? IDNVALUEARRAYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>, <ring>, <connection>)
  
 +
 +
-->common shared DoubleArr[1] as double
 +
 +
-->? IDNVALUEARRAY DOUBLE  (Ax1.dadd, <IDN number>, 7, DoubleArr)
 +
 +
4
 +
 +
-->? DoubleArr [1]
 +
 +
1
 +
 +
-->? DoubleArr [2]
 +
 +
3
 +
 +
-->? DoubleArr [3]
 +
 +
6
 +
 +
-->? DoubleArr [4]
 +
 +
5
  
  
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:IDNSTATE|IDNSTATE]]
+
* [[MC-Basic:IDNSTATE|IDNSTATE]]
* [[Axystems:MC-Basic:WRITEIDNSTRING|WRITEIDNSTRING]]
+
* [[MC-Basic:WRITEIDNSTRING|WRITEIDNSTRING]]
* [[Axystems:MC-Basic:WRITEIDNVALUE|WRITEIDNVALUE]]
+
* [[MC-Basic:WRITEIDNVALUE|WRITEIDNVALUE]]
* [[Axystems:MC-Basic:IDNVALUE|IDNVALUE]]
+
* [[MC-Basic:IDNVALUE|IDNVALUE]]
 
 
  
 +
[[Category:Obsolete|IDNVALUEARRAYDOUBLE]]
 
}}
 
}}

Latest revision as of 09:19, 22 May 2014

This function works only for IDNs containing more than one Double Type value in array method .

It fills the preliminary declared Double Type Array by IDN data, and returns the number of IDN values introduced into the array.

Short form

IVALAD

Syntax

IdnValueArrayDouble (<drive address>, <IDN>, <element>, <double_type_array_name>,{<ring>}, {<connection>} )

Availability

Since Version 4.7.12 for SERCOS III

Type

<returned value>: Long (the number of IDN values introduced into the array)

Range

<drive address>: 1 to 254
<IDN>: 1 to 65536
<element>: 1 to 7
<ring>:1
<connection>:0 to 2 for normal systems (0 = chose automatically, 1 = first AT connection, 2 = first MDT connection)

Scope

Configuration, Task or Terminal

Limitations

  • Read only
  • Executed only in SERCOS communication phases 2, 3 and 4.
  • The IDN must be defined
  • The Double Type Array should be declared preliminary, and its size should be enough to contain the IDN data
  • Not supported in EtherCAT system

Examples

? IDNVALUEARRAYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>)

? IDNVALUEARRAYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>, <ring>)

? IDNVALUEARRYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>, , <connection>) --> Translator note: Ring number is zero

? IDNVALUEARRAYDOUBLE (<drive>, <idn>, <element>, <double_type_array_name>, <ring>, <connection>)


-->common shared DoubleArr[1] as double

-->? IDNVALUEARRAY DOUBLE (Ax1.dadd, <IDN number>, 7, DoubleArr)

4

-->? DoubleArr [1]

1

-->? DoubleArr [2]

3

-->? DoubleArr [3]

6

-->? DoubleArr [4]

5

See Also