siggibald Member S Join Date Oct 2012 Location iceland Posts 60 Jun 19, 2013 #1 Hi i have micrologix 1100 and load cell. i need to change the floating f8:0 to n7:0 so i can use fll (first in) how is that posibuel ?
Hi i have micrologix 1100 and load cell. i need to change the floating f8:0 to n7:0 so i can use fll (first in) how is that posibuel ?
daba Lifetime Supporting Member D Join Date Jul 2004 Location uk Posts 5,401 Jun 19, 2013 #2 siggibald said: Hi i have micrologix 1100 and load cell. i need to change the floating f8:0 to n7:0 so i can use fll (first in) how is that posibuel ? Click to expand... MOV F8:0 N7:0 Allen-Bradley processors perform data-type conversion as necessary with all Math, and Move instructions (NOT true for COP, CPS).
siggibald said: Hi i have micrologix 1100 and load cell. i need to change the floating f8:0 to n7:0 so i can use fll (first in) how is that posibuel ? Click to expand... MOV F8:0 N7:0 Allen-Bradley processors perform data-type conversion as necessary with all Math, and Move instructions (NOT true for COP, CPS).
siggibald Member OP S Join Date Oct 2012 Location iceland Posts 60 Jun 19, 2013 #3 Okey i have try that, then i will not get the same number to n7:0
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Jun 19, 2013 #4 siggibald said: Okey i have try that, then i will not get the same number to n7:0 Click to expand... The number will be rounded off to the nearest ones place. What did you expect?
siggibald said: Okey i have try that, then i will not get the same number to n7:0 Click to expand... The number will be rounded off to the nearest ones place. What did you expect?
siggibald Member OP S Join Date Oct 2012 Location iceland Posts 60 Jun 19, 2013 #5 I did not expect to get totaly another number. 14.5 to 2534
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Jun 19, 2013 #6 siggibald said: I did not expect to get totaly another number. 14.5 to 2534 Click to expand... Post your program if you can. Its .rss file, zip it first.
siggibald said: I did not expect to get totaly another number. 14.5 to 2534 Click to expand... Post your program if you can. Its .rss file, zip it first.
daba Lifetime Supporting Member D Join Date Jul 2004 Location uk Posts 5,401 Jun 19, 2013 #7 Something else may be writing to N7:0.... Use Cross-Reference to see if is used in other places
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Jun 19, 2013 #9 Use a "MOV" instruction not a "CPW" instruction.
siggibald Member OP S Join Date Oct 2012 Location iceland Posts 60 Jun 19, 2013 #10 okey thanks Last edited: Jun 19, 2013
TConnolly Lifetime Supporting Member Join Date Apr 2005 Location Salt Lake City Posts 6,152 Jun 19, 2013 #11 Get rid of the # character. MOV F8:3 N7:51
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Jun 19, 2013 #12 See picture below the mov instruction does not support indexing it only moves one word. Edit: TConnolly types faster then I do. Last edited: Jun 19, 2013
See picture below the mov instruction does not support indexing it only moves one word. Edit: TConnolly types faster then I do.
siggibald Member OP S Join Date Oct 2012 Location iceland Posts 60 Jun 19, 2013 #13 Mickey said: See picture below the mov instruction does not support indexing it only moves one word. Click to expand... that was the problem. thank you wery mutch !
Mickey said: See picture below the mov instruction does not support indexing it only moves one word. Click to expand... that was the problem. thank you wery mutch !
daba Lifetime Supporting Member D Join Date Jul 2004 Location uk Posts 5,401 Jun 19, 2013 #14 Like what I said as the first response ? Post #2
Mickey Lifetime Supporting Member Join Date May 2003 Location Palmdale,Ca Posts 10,659 Jun 19, 2013 #15 that was the problem. thank you wery mutch ! Click to expand... For TConnolly,daba and myself, you're welcome.
that was the problem. thank you wery mutch ! Click to expand... For TConnolly,daba and myself, you're welcome.