LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX is reading my PLC values as decimal but they're BCD

Solved!
Go to solution
I have a Koyo PLC sold by Automation Direct.  All of the values from the PLC are BCD, but in the Measurement and Automation Explorer, they are read as Decimal values.  Does anyone know of a way to convert them, either through OPC server or in MAX so that I may read my values as they are?  The Citadel Database is useless to me without proper values.  Lookout offers the option to ad ":b" to your tags to read them in as BCD.  Does LabVIEW and it's tools offer a similar method?
0 Kudos
Message 1 of 5
(3,180 Views)
Solution
Accepted by topic author Orion HE

Your opc server program should have a specific format for reading BCD data. Here is some info from kepware.

http://www.kepware.com/KEP_KB/default.asp?ToDo=view&questId=426&catId=59

 

In the kepware opc server program there is an option to specify how the word is interpreted. Here is the help file info.

DL-450 Addressing

Data Types (Defaults are shown in bold.)

 

Memory Type

Reference

Data Types

I/O

X,Y,GX,GY

Boolean

Devices

C,SP,T,CT,S

Boolean

Data Words

V

Boolean, Word, Short, DWord, Long, LBCD, Float, String,
BCD (default for Timers and Counters only)

Message 2 of 5
(3,156 Views)
That is awesome of you, thanks for the help.  Now that I know I can change them, I need to find out how to change them all, rather than one by one as the tech at Automation Direct suggests.
0 Kudos
Message 3 of 5
(3,144 Views)
Might be easier to export the opc server config to a csv file. Edit in excel or wordpad and import the file back into a new opc server config.
0 Kudos
Message 4 of 5
(3,117 Views)
It turns out the old version of Kepdirect that I was using had a bug with the .csv import.  I am now using the version on kepware's website, and the .csv method worked as it should.  My problem is resolved.  Thanks for the suggestion that resulted in a solution.
0 Kudos
Message 5 of 5
(3,110 Views)