M's, N's, & F's in AB plc prog

DairyBoy

Member
Join Date
Jun 2007
Location
UK
Posts
393
Good day, all. I have a devicenet system (slc 5/05) to which I've connected a Seimens flow meter. Despite what the (seimens) dnet interface manual says, the upper/lower halves of the flow rate data words as presented to the network require swapping (no big deal, but the pdf is incorrect). My solution, which I have used previously in exactly the same way without incedent, is to move the two "M" words as they appear from the dnet, into two contiguous N registers (eg: M1:1.0 into N7:1 and M1:1.1 into N7:0) then copy those swapped words into one F register, and all is well. The pdf shows the representation of the value as output by the flow meter as: bits 0-22: mantissa; 23-30: exponent; bit 31: sign, but I know this to be end-over-end. Is it possible that what I'm doing can cause the N word to exceed its legal range? The plc has fallen over (minor error) a couple of times in the few days since I added the unit. The problem is intermittent and the guy who looked at it missed the error number before resetting it. Maybe I should just keep S:5/0 reset, or limit the values for the N words?
 
i don't see anything wrong with what you do. i had the same problem (on different plc) and just re-arranged bytes, interpreted result as float and end of story.
 
Trap it like this (see pic):

You can have a trap like that in several different places with a different "B" file bit for each place so that you can tell more specifically what math caused the fault.

Just make sure one of those places is the very last rung, so you unlatch S:5/0 before causing a major fault.

Paul

Overflow_Trap.jpg
 
Thanks, panic, for reassuring me that I'm not going mad, and Okie for confirmation of the S5 bit.
 

Similar Topics

Can someone please send me a pdf of the attached plc5 file. Note there is a SLC500(plc-51.rss) and a PLC 5 (waste5.rsp) If anyone can convert...
Replies
4
Views
1,860
hi guys, I am wondering, after downloading the Hakko program that I created to the HMI monitor, will it display my programmed screens on the HMI...
Replies
0
Views
1,699
I want to make a small prog.with S7-300.There is an elevator.Upstroke output is a Q4.0 and downstroke is Q5.0.Normally elevator is up and down one...
Replies
2
Views
1,986
IS IT POSSIBLE TO UPLOAD PROGRAM FROM ABB Advant controller-31 8/6R. As per me for ABB plc program sourcecode not gets upload.code is availiable...
Replies
0
Views
2,230
Hello all , i just bought a plc 5 ,and changing the key lock switch does not put the processor in either run or program mode. I can only do this...
Replies
6
Views
3,161
Back
Top Bottom