-

Y_YA_ByteSwap

Image

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

Example

Byte swap for the word 16#04D2, which outputs 16#D204.
Image

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.