Difference between revisions of "MC-Basic:IDNVALUE"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(22 intermediate revisions by 4 users not shown)
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
IdnValue (''<drive address>, <IDN>, <element>, {<ring>}, {<connection>}
+
IdnValue (<''drive address''>, <''IDN''>, <''element''>, {<''ring''>}, {<''connection''>})
'')
+
 
 
|AVAILABILITY= All versions
 
|AVAILABILITY= All versions
{<ring>}, {<connection>}) options - from AMCS 0.4.7.12 for SERCOS III  
+
{<''ring''>}, {<''connection''>}) options - since Version 4.7.12 for SERCOS III  
  
  
Line 14: Line 14:
  
 
Use the IDNSTATE query to read the execution state of a SERCOS procedure executing on the drive.
 
Use the IDNSTATE query to read the execution state of a SERCOS procedure executing on the drive.
 +
  
 
|TYPE=
 
|TYPE=
 
+
<''returned value''>: Long
  
 
|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 36: Line 36:
  
 
|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
 +
*Not supported in EtherCAT system
  
The IDN must be defined.
 
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 54: Line 56:
  
 
|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]]
 +
* [[MC-Basic:IDNVALUEDOUBLE]]
 +
* [[MC-Basic:IDNVALUEARRAY]]
 +
 
 +
[[Category:Obsolete|IDNVALUE]]
  
  
 
}}
 
}}

Latest revision as of 09:19, 22 May 2014

This function is used to read the value of a specified element of an IDN from a specified drive. It should be used when reading an IDN that takes numeric values.

Use the IDNSTATE query to read the execution state of a SERCOS procedure executing on the drive.

Short form

Ival

Syntax

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

Availability

All versions {<ring>}, {<connection>}) options - since Version 4.7.12 for SERCOS III

Type

<returned value>: Long

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
  • Not supported in EtherCAT system

Examples

?IdnValue(1, 189, 7)                                   ‘Get drive position following error

?IDNVALUE (<drive>, <idn>, <element>)

?IDNVALUE (<drive>, <idn>, <element>, <ring>)

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

?IDNVALUE (<drive>, <idn>, <element>, <ring>, <connection>)

See Also