SysPortIn (FUN)

FUNCTION SysPortIn : BYTE

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

InOut:

Scope

Name

Type

Comment

Return

SysPortIn

BYTE

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>