Author Topic: Read/Write floating values in omron plc  (Read 83 times)

Lixoudis

  • Newbie
  • *
  • Posts: 12
    • View Profile
Read/Write floating values in omron plc
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
    • View Profile
    • AdvancedHMI
Re: Read/Write floating values in omron plc
« Reply #1 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


Lixoudis

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Read/Write floating values in omron plc
« Reply #2 on: December 08, 2017, 12:16:29 AM »
Thanks for the quick replay I will try the update and come back with feedback

Lixoudis

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Read/Write floating values in omron plc
« Reply #3 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
    • View Profile
    • AdvancedHMI
Re: Read/Write floating values in omron plc
« Reply #4 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


Lixoudis

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Read/Write floating values in omron plc
« Reply #5 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