LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data From Mitsubishi PLC to Labview

Solved!
Go to solution

Hi All,

 

I have encountered a problem of data from PLC.

I have created a small program in LabVIEW to connect with Mitsubishi FX-3u PLC via FX-ENET module. It was working good.

And I receive the data from PLC also good.

 

The problem is,

 

The Float Data of DM 100 in the PLC memory 32 bit Data (2 Words) is in the REAL number format. Ex. DM 100 = 31720 and DM101 = 16722 

(If I transfer to HMI it will shown as floating Data like 13.155)

 

I am going to send The Actual float data 13.155 to HMI also the SQL Database.

 

For HMI I have no problem. But if I read the PLC DM Data via TCP/IP I can get ASCII value of 31720 and 16722.

I can try many conversion, But I can't get the value of 13.155

 

I know many Experts here, please help me on that...

I need your suggestions.

 

Thanks.

0 Kudos
Message 1 of 5
(5,199 Views)
Solution
Accepted by Kathir_rkv

Hi Kathir,

 

quite easy:

check.png

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(5,196 Views)

 

Hi GerdW,

 

Thank You very Much for your suggestion...It Works.

0 Kudos
Message 3 of 5
(5,167 Views)

Hi,

I you scan data by 16 bits word, it seem's you don't used standard protocol?

How do you communicate with PLC (Library?) over ENET?

Thank's

0 Kudos
Message 4 of 5
(4,866 Views)

I saw this post. I am working with a FX3U mitsubishi PLC and needed to data log tags/addresses to Labview.  I know the plc is setup with ethernet/UDP protocol. Do you happen to have an example vi of connectivity? I cant seem to find any examples. 

thanks.

0 Kudos
Message 5 of 5
(2,292 Views)