Difference between revisions of "MC-Basic:INPB"
m (Miborich moved page Axystems:MC-Basic:INPB to MC-Basic:INPB: Global renaming of Axystems: namespace into (Main):) |
|||
(One intermediate revision by the same user not shown) | |||
Line 38: | Line 38: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:INPW|INPW]] |
− | [[Category | + | [[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