SysPortInW (FUN)

FUNCTION SysPortInW : WORD

<description>This function reads the current WORD-value at the given port address.</description> <result><p>RESULT: Input port value that was read.</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysPortInW

WORD

Input

ulAddress

UDINT

<param name=”ulAddress” type=”IN”>Port address</param>

pResult

POINTER TO RTS_IEC_RESULT

<param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>