Difference between revisions of "MC-Basic:INPW"

From SoftMC-Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
Inpw (''<address>'')
+
Inpw (<''address''>)
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 11: Line 11:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
This command reads the value of a word (16 bits) from the specified I/O space address.
 
This command reads the value of a word (16 bits) from the specified I/O space address.
 
{{Note/Important| '''THIS COMMAND IS OBSOLETE'''}}
 
  
 
|TYPE=
 
|TYPE=
The ''<address>'' must be a Long expression. The function returns a Long value.
+
The <''address''> must be a Long expression. The function returns a Long value.
  
 
|RANGE=
 
|RANGE=
The ''<address>'' must be in the range 0x0 to 0xFFFF.
+
The <''address''> must be in the range 0x0 to 0xFFFF.
  
 
|UNITS=
 
|UNITS=
Line 30: Line 28:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
*Not supported in EtherCAT system
 +
*Read only
 +
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 38: Line 38:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:INPB|INPB]]
+
* [[MC-Basic:INPB|INPB]]
  
[[Category:Axystems:Obsolete|INPW]]
+
[[Category:Obsolete|INPW]]
 
}}
 
}}

Latest revision as of 09:19, 22 May 2014

This command reads the value of a word (16 bits) from the specified I/O space address.

Syntax

Inpw (<address>)

Availability

All versions

Type

The <address> must be a Long expression. The function returns a Long value.

Range

The <address> must be in the range 0x0 to 0xFFFF.

Scope

Task or Terminal

Limitations

  • Not supported in EtherCAT system
  • Read only

Examples

X=inpw (256)                            ‘Read a word and assign its value to variable X

?inpw(256)                                ‘Read a word

See Also