SysPortOutW (FUN)

FUNCTION SysPortOutW : RTS_IEC_RESULT

<description>This function writes the specified WORD-value on the certain port address.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysPortOutW

RTS_IEC_RESULT

Input

ulAddress

UDINT

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

usVal

WORD

<param name=”usVal” type=”IN”>Value to be written to the port.</param>