Y_YA_ByteSwap
Functionality to swap the upper and lower bytes of a word.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | EN | BOOL | The function will continue to execute every scan while EN is held high and there are no errors. |
FALSE |
| V | WordIn | WORD | Input word | WORD#0 |
| VAR_OUTPUT | ||||
| B | ENO | BOOL | TRUE if EN is TRUE and the function is executing normally. ENO will become FALSE if an internal error occurs. If EN becomes FALSE, ENO becomes FALSE and the function output is maintained at the last state. | |
| V | OUT | WORD | Output word | |