Add new comment
Using above method , I can able to convert Word to Byte . But we can able to read but we can't able to do write operation
Kindly specify your requirement, what do you exactly want to do?
Now I'm working in the programming of AC500 PLC with drives. There I have to extract one 16bit word from the drive. Then in the program , I have to change/update the values .
How do you getting the data from the Drive?Modbus?Analog?
Also, you want to extract a word into 2 bytes and write 2 bytes? or write single bits?clarify pls
I'm getting the data using Profibus.
For ex: I have to take the DI STATUS , a 16 bit --> 1 word from the drive.
Then I have to manipulate the DI's which I required in our process.
I never worked in Profibus.
But if you want to check the DI status from a word the most simple thing is to move the data to a Memory Word (%MW0.0) so that %MX0.0.0 -%MX0.1.7 is the exact same bits for the data.Or else you need to make a new FB for splitting the Word into Bits
By using the above method , it is possible to do read operation . Yes , we need a Functional block to extract a word .Now i am having one FB i.e., UNPACK16 which extract the 16bit from one word and I can able to do write operation.
Why you cant write a memory bit? anyways good to hear your issue is resolved
Thank you for your valuable response