Modbus /Codesys question

diarant

Member
Join Date
Oct 2011
Location
koti
Posts
1
Hello Now i dont know if this question was posted yesterday or not. I can find it.
so iam trying again:
Iam trying to transfer real/float number like 20.12 or -20.12 to my panel. I have codesys 2.3 (Wago). If i understand correctly modbus only transfers words (16 bit). Now how can i get this floating number to my panel? My panel is reading 4 bytes and maybe doing that combining automatically (weintek). All this HW is new to me and also Modbus. But i think somebody have the solution because modbus is such an ols protocol and there has have this done ages ago..
 
Address the lowest of the 2 registers that you use to store your fp number. Define the variable as a float or real in your panel. Note, some drivers expect the lowest register to always have an odd address so check the panel manual before you write too much PLC code.

Good luck,

(8{)} :) .)
(Yosi)
 
Almost forgot, one other thing...

You read %MW0 in the WAGO by addressing it as 412289 (0x3000) in your panel.

Good luck,

(8{)} :) .)
(Yosi)
 

Similar Topics

Hello, I am new to Codesys, and am trying to learn about it for a project we're developing. I've got a couple questions, but first a little...
Replies
1
Views
139
Hi, I have never used modbus communication in Codesys 2.3, any tips and tricks are much appreciated. The system is a Wago 750-881 that controls...
Replies
3
Views
1,836
I have a program for a PLC, but I don't have the PLC now. I am running the PLC program in the Codesys simulation mode. Can I connect SCADA to...
Replies
2
Views
1,724
I'm going to be adding Modbus TCP communications to a Turck Codesys system. There will be more than one HMI hitting the Turck hardware, hopefully...
Replies
0
Views
1,035
Hi all, A couple of years ago, I ran some tests with MODBUS TCP communication between rPi running CodeSYS and a couple of Arduino's. I remember...
Replies
6
Views
3,050
Back
Top Bottom