Search the Community
Showing results for tags 'MI'.
Found 5 results
-
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
-
Hello everyone, Looking for some help. My program keeps getting hung up when I am storing #40 and #60 into MI 1. Can anybody take a look at this and see what I'm missing? I could only attach the subroutine as it was too big. Thank you so much, Scott scott_ladder.vlx
- 1 reply
-
- state machine help
- fix
-
(and 2 more)
Tagged with:
-
Good night,recently bought my paper a rfe plc Samba: SM35-J-R20. My knowledge of PLC programming are very basic, but have come to understand with the videos and the manual part of the basic programming. But I need to display 4 timers for 4 different machines, and do reset with timers and stuff, I do not understand is how to modify the SB and MI that are already in the program. example: I use SB then I use MI (counter in seconds) (accountant in minutes), and finally (counter in hours) link addresses in the HMI. MB FOR counter = 4 seconds MB FOR counter = 5 minutes MB FOR counter = 6 hours it works fine for a screen. but I do not know how to put back the same counters to other screens ie replacing SB3, MI 1, MI 2, MI 3 and mofificarlos individually. because otherwise change their nobres in the 4 screens will be controlled by the same sequence LADDER, and no I do not understand how to change your name without changing their established functions. Or please how to program counters fastest time. Thank you very much for any help.
-
Hi. My V350 is communicating with Modbus device. It`s quite simple becose almost all Modbus device registers are 16-bits, I have to worry about were to but comma in MI-s. But im confiused about two register. In Modbus device manual there are notes about those register and i dont know do I have to swap or just directy store those 16-bits registers into DW or ML; or make same mathematical operation... Registers are: Register number Modbus aaddress Parameter Received data scale Units Notes 40001 0 Total low 16 bits x1 Kg Total= (Total high x 65536)+Total low 40002 1 Total high 16 bits x1 Kg Im using Modbus R.H.R #3 function, reading from Slave aadress 0, reading vector length 2 into Master aadress MI0-MI1. So question is what to do next with those values in MI0-MI1? Regards, Ylle