Byte to bit conversion in RobotStudio

Hello,

I am using OPC smart component in RobotStudio to receive digital signals from an OPC server. This works fine although the number of signals that can be used in the OPC smart component seems to be limited. Now, my idea is not to transmit single bits but bytes. Therefore I need to do a byte to bit conversion in RobotStudio so that I can use the single bits in my program.
Does anyone know how I can do this? Maybe by using group inputs?

Thank you
Kind regards,

Jonas

I don’t know anything about OPC SC but:
You can use BitCheck(data,bit) if you want to check a bit in a num value.

something like:

PROC testGroupe()
CONST num bitNo:=3;
VAR num tmp;
VAR bool bBitCheck;

tmp:=giTestGroupe;
bBitCheck:=BitCheck(tmp,bitNo);
endproc

Ehm is it only my view that is filled with code?

No, it’s been happening all over the forum for a quite a while…

Thank you for your answer!
I can see the html code as well…
I’ve hoped that there is a smart component for getting single bits of a byte but I will try your solution.

Best regards,
Jonas