SPEL_MemIn
Description
Reads a byte of memory IO.
Common Inputs and Outputs
Reference: Function Blocks Common Inputs and Outputs
Inputs
- PortNum
- UINT port number to be read. Port number refers to byte number.
Outputs
- Value
- BYTE value of the port.
Operation
Reference: Function Blocks General Operation
For more details, refer to the following manual:
"SPEL+ Language Reference manual - MemIn Function"
Example
To read port number 0 of memory I/O, run the Function Block as shown below.