Difference between revisions of "MC-Basic:INPB"

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
Inpb (''<address>'')
+
Inpb (<''address''>)
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 11: Line 11:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
This command reads the value of a byte at the specified I/O space address.
 
This command reads the value of a byte at the specified I/O space address.
 +
  
 
|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 28: Line 29:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only
+
*Read only
 +
*Not supported in EtherCAT system
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 36: Line 38:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:INPW|INPW]]
+
* [[MC-Basic:INPW|INPW]]
 
 
  
 +
[[Category:Obsolete|INPB]]
 
}}
 
}}

Latest revision as of 09:19, 22 May 2014

This command reads the value of a byte at the specified I/O space address.

Syntax

Inpb (<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

  • Read only
  • Not supported in EtherCAT system

Examples

X=inpb (256)                            ‘read a byte and assign its value to variable X

?inpb(256)                                 ‘Read a byte

See Also