Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Dear team,
I have one query, want to covert binary data from the PLC or OPC 16 bit data word. Is it possible in Kepware using any Advance tag or other driver plugin?
Solved! Go to Solution.
Hello,
Please find below mentioned resolution.
The first one is to configure PLC. If you can go to PLC programming and create a Word tag that's covering the bits you're looking for, You can get the Word value without any further tool. You'll be able to read it with Allen-Bradley driver.
The second solution is to use Advanced Tags and Simulator driver, Below are steps:-
- Create a simulator channel with a 16-bit device.
- Create a Word tag and all its bits. Such as K0 as Word and all bits as Boolean from K0.0 to K0.15
- Create Link Tags for each bit (16 in total). Such as:
-- Link0 is mapping Allen-Bradley Bit0 to K0.0
-- Link1 is mapping Allen-Bradley Bit1 to K0.1 and it goes on until bit15.
Once you have finished all configuration "K0" Word tag will you the value as Word with a range of 0-65535
Regards,
Mohit
Hello,
Please find below mentioned resolution.
The first one is to configure PLC. If you can go to PLC programming and create a Word tag that's covering the bits you're looking for, You can get the Word value without any further tool. You'll be able to read it with Allen-Bradley driver.
The second solution is to use Advanced Tags and Simulator driver, Below are steps:-
- Create a simulator channel with a 16-bit device.
- Create a Word tag and all its bits. Such as K0 as Word and all bits as Boolean from K0.0 to K0.15
- Create Link Tags for each bit (16 in total). Such as:
-- Link0 is mapping Allen-Bradley Bit0 to K0.0
-- Link1 is mapping Allen-Bradley Bit1 to K0.1 and it goes on until bit15.
Once you have finished all configuration "K0" Word tag will you the value as Word with a range of 0-65535
Regards,
Mohit