Professional Documents
Culture Documents
CoDeSys V 3.x
SysPort.library
CONTENT
1 OVERVIEW 1
2 LIBRARY MODULES 2
2.1 SysPortIn 2
2.2 SysPortInD 2
2.3 SysPortInW 2
2.4 SysPortOut 2
2.5 SysPortOutD 3
2.6 SysPortOutW 3
CHANGE HISTORY 4
libdoc_e.dot / V1.0
1 Overview
Please regard: It depends on the target system, which system libraries can be used in the application program.
This library can be used to communicate with external hardware devices via their port
addresses; e.g. realtime clock, graphic controller etc. The port addresses can accessed
reading and writing. The execution is synchronous.
SysPortIn
SysPortInD
SysPortInW
SysPortOut
SysPortOutD
SysPortOutW
libdoc_e.dot / V1.0
2 Library modules
2.1 SysPortIn
This function reads the current BYTE-value at the given port address.
2.2 SysPortInD
This function reads the current UDINT-value at the given port address.
2.3 SysPortInW
This function reads the current UDINT-value at the given port address.
2.4 SysPortOut
This function writes the specified BYTE-value on the certain port address.
The return value of type UDINT returns the error code of the operation.
Input Variable Data type Description
2.5 SysPortOutD
This function writes the specified UDINT-value on the certain port address.
The return value of type UDINT returns the error code of the operation.
Input Variable Data type Description
2.6 SysPortOutW
This function writes the specified WORD-value on the certain port address.
The return value of type UDINT returns the error code of the operation.
Input Variable Data type Description
Change History
Version Description Date