FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
12-04-2023 02:30 PM
Hello,
I have %QB0 8 high bits and %QB1 8 low bits . How can i swap bits %QB0 and %QB1 for requirment positions in a 16-bit value ? after that i need %QB0 and %QB1 in to 16bits . For that, i need help.
Please see attached pictures for your reference.
Thanks in advance.
Solved! Go to Solution.
12-04-2023 03:19 PM - edited 12-04-2023 03:23 PM
Hi Chirag03,
you could for example swap and combine it by assigning it to an array and accessing it with a pointer, like in the screenshot.
Or using the functions from our library CXA_Utilities, see second screenshot.
12-04-2023 04:13 PM
12-04-2023 04:22 PM
Hi,
either use the AT operator, or map it in the dialogue, you cannot do both.
12-05-2023 08:52 AM
Hi ,
Thank you for your reply.
Yes that is true . I only map it in dialogue . But there is still same error. i can not set into the output bytes . i have to set into form of 16 bit .