Communication between PLC M340 & HMI Quickpanel +

CsmQl

Member
Join Date
Dec 2017
Location
Santiago
Posts
14
Hi there to all!

I am making some testings trying to read the values from an HMI Quickpanel +, in this HMI i'm writing a value into a float variable and i save this value directly in a mark of the PLC Schneider M340, the problem is that i don't get the exact value i wrote on the HMI, actually, when i write the value... for example: 15.35, the HMI changes the value and put any other one... for example 15.00045, i've noticed that the part that changes it is always the decimal part (i don't know if this is the correcto word for that in english, but it is in spanish), the integer part of the float is the one i wrote... in the PLC i get any other value.. i don't even get the integer part that shows the HMI nor the one that show me the ModScan (both the same value). Does any one know what could be the issue?
 
The M340 uses 2 words to store a real (floating point) value. Make sure that you don't have something else writing to the 2nd word.
 
Thank you for taking the time to answer, the problem was the data arrived to the PLC from the HMI inverted, the less and most significant part of it, so i have to put the data into a block to swap it. Thank you again!
 

Similar Topics

i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
124
I'm trying to write a data in Arduino using MODWR function block .I used the code I got from online for both PLC and Arduino. I made the wiring...
Replies
4
Views
119
Communication between devices will stop working for a certain period of time. I caught the error message using WireShark. I cannot identify the...
Replies
0
Views
105
I am trying to establish communication between Siemens PLC 1500 and Matlab. I followed a tutorial on youtube at this link: But when I got to the...
Replies
0
Views
354
Hi all, I don't have experience PLC programming so it might be a stupid question. I made a socket request to PLC and there is no problem to read...
Replies
5
Views
871
Back
Top Bottom