Jelmer
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Jelmer
-
-
Hello,
For a project im working on I need to motitor serval energy sources and control multiple relays. I would like to use the Samba 4.3" PLC for giving a nice interface to the system. The problem is that I have over 30 outpust I need to control.
I've found a modbus RTU (RS485) energy meter who measures the voltage and current. Also found a modbus RTU (RS485) digital output module with 16 outputs.
Is it possible to use the Samba 4.3" PLC with V100-17-RS4 module to communicate over modbus with the IO modules and energy meters?
Best Regards, Jelmer
2x MI to Floating MF IEEE 754 conversion
in Vision & Samba PLC + HMI Controllers & VisiLogic Software
Posted
Hello,
I'm have some problems with the conversion of two integers to a floating point value.
I have a modbus energy meter (SDM120) who works with 32bit IEEE745 floats values.
In visilogic I receive two 16bit integers (MI);
MI0 : 15643
MI1: -23069
I converted these integers to bits by the 'num to bit' function block.
These are the converted value's :
MI0 : 15643 --> 0011 1101 0001 1011
MI1: -23069 --> 1010 0101 1110 0011
If I put the two value's behind eachother I get the following binary code:
0011 1101 0001 1011 1010 0101 1110 0011 (MI0,MI1)
When I fill in these binary code on a online binary to IEEE745 converter I get the following result: 0,038
This matches with the amps showing on the energy meter's display.
The question is; How can can I make from MI0(15643) and MI1(-23069) a float in Visilogic
So, MI0(15643) and MI1(-23069) -------------- some kind of formula -----------> MF0 = 0,038
Annyone who can help?
Best regards, Jelmer