Difference between revisions of "MC-Basic:IDNVALUE"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= Ival |SYNTAX= IdnValue (''<drive address>, <IDN>, <element>'') |AVAILABILITY= All versions |DESCRIPTION= This function is used to read the value of a s…')
 
m (1 revision)
(No difference)

Revision as of 16:09, 13 December 2010

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>)

Availability

All versions

Range

<drive address>: 1 to 254
<IDN>: 1 to 65536
<element>: 1 to 7

Scope

Configuration, Task or Terminal

Limitations

Read-Only. Executed only in SERCOS communication phases 2, 3 and 4.

The IDN must be defined.

Examples

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

See Also