Search the Community
Showing results for tags 'mi'.
-
So i have a weird problem where i have a source writing to the same MI (MI661 in a V560) that i am using to store the value of a temperature sensor. The problem is that i don't know where it is coming from and the more i started looking the stranger it seems to get. I found the problem when i was looking at data from the temperature sensor a noticed that where a lot of points where the value fell below expected values. (normal is between 3400 and 350 and sometimes is noticed a value somewhere between 248 and 272). To find out in which part of my program i screwed up i disabled the sensor and i used the debugger to stop the PLC program. And then i noticed the first weird thing. Normally when the PLC is in stop mode you can write a Mi to zero and it should stay that way until the program is started again. In this case that doesn't happen. when i write a 0 to the MI it will immediately change back to the strange value it was on before, regardless of the state of the PLC. Because of this, i thought maybe the source is not in the PLC itself but in one of the connected network devices. This PLC is a Modbus slave to 2 masters. The first is another Unitronics PLC (SM35). The second is a SCADA package (ignition). I disconnect them both and still something is writing to this MI. So to summarize i have something writing to a MI even when the PLC is in stop mode and there is no network connection or anything else. Anybody any idea what could be going on here? do i have a ghost in my machine?
- 5 replies
-
- v560
- unexpected data
-
(and 1 more)
Tagged with:
-
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