SPEL_OutW

Description

Sets an output word to a given value.

Common Inputs and Outputs

Reference: Function Blocks Common Inputs and Outputs

Inputs

PortNum
UINT desired output port number.
OutData
WORD desired output port value.

Operation

Reference: Function Blocks General Operation

For more details, refer to the following manual:

"SPEL+ Language Reference manual – OutW Statement"

Example

To set port number 0 with value of 99, run the Function Block as shown below.