cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to convert 16 bit Word data from PLC or OPC to binary into our Kepware?

BRangi
9-Granite

How to convert 16 bit Word data from PLC or OPC to binary into our Kepware?

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? 

 

ACCEPTED SOLUTION

Accepted Solutions
MKhatri
13-Aquamarine
(To:BRangi)

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

View solution in original post

2 REPLIES 2
MKhatri
13-Aquamarine
(To:BRangi)

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

BRangi
9-Granite
(To:MKhatri)

Hi @MKhatri ,

 

Thank you for the Solution. It works. 

Announcements

Top Tags