hapetter
Member
Hi.
I use TwinCAT, but I guess its a general IEC61131-3 question.
So I have a Profibus slave with 16 digital input. I like to link this fysical channels to variables in my PLC program. The 16 digital input are given as 2xUSINT (2bytes)
So my question is:
How to get a bit from a byte? Read hexcode?
If you are familiar with TwinCAT:
Is it possible to link a boolean to a bit in an USINT in system manager? How?
Best Regards
hans
I use TwinCAT, but I guess its a general IEC61131-3 question.
So I have a Profibus slave with 16 digital input. I like to link this fysical channels to variables in my PLC program. The 16 digital input are given as 2xUSINT (2bytes)
So my question is:
How to get a bit from a byte? Read hexcode?
If you are familiar with TwinCAT:
Is it possible to link a boolean to a bit in an USINT in system manager? How?
Best Regards
hans