AdvancedHMI Software

General Category => Support Questions => Topic started by: Lixoudis on December 07, 2017, 12:09:14 PM

Title: Read/Write floating values in omron plc
Post by: Lixoudis on December 07, 2017, 12:09:14 PM
Hello guys I have a question regarding the omron fins serial driver. Am using a CP1L Plc and I try to read or write float numbers to Plc with no luck. Is it possible to do it or not? For the reading part I have succeeded to read them by convert the real number to int inside the ladder and then just putting on the analog display value a scale factor but for the write I haven't found any way to do it. I await your suggestions
Title: Re: Read/Write floating values in omron plc
Post by: Archie on December 07, 2017, 08:38:08 PM
There is a beta patch for 3.99x that adds this feature to the Omron FINS driver. It works by using address modifiers. For example:

D0,F   will read a floating point
D0,L   will read a long 32 bit integer

You can download the V3.99xPatched2 file from here:

https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5

Title: Re: Read/Write floating values in omron plc
Post by: Lixoudis on December 08, 2017, 12:16:29 AM
Thanks for the quick replay I will try the update and come back with feedback
Title: Re: Read/Write floating values in omron plc
Post by: Lixoudis on December 08, 2017, 12:12:41 PM
Doing some tests its seams that I can read float values in a basic label, I can pass float values through keypad and other means but when I try to read values on analog display through plcaddressvalues I can't use the format D0,F and also i can't read values through datasuscriber event again for the same reason. Is there any way to use it that format in the above controls or not?
Title: Re: Read/Write floating values in omron plc
Post by: Archie on December 09, 2017, 10:57:45 AM
There was a conflict with the "," when using controls that used a PCLAddressItem object such as the AnalogValueDisplay. A third patched version has been posted that uses the @ symbol instead of a comma. Example addresses will now be:

D0@F
D0@L

https://sourceforge.net/projects/advancedhmi/files/advancedhmi/3.5

Title: Re: Read/Write floating values in omron plc
Post by: Lixoudis on December 09, 2017, 11:36:17 AM
Thanks Archie for the quick response. I will come back if any others bugs will be found. Thanks again
Title: Re: Read/Write floating values in omron plc
Post by: gacore on February 16, 2018, 12:59:52 PM
Today I tested it with OMRON PLC CP1LE and Ethernet driver OmronEthernetFINSCom1 and DataSubsciber.
It is works very well.