S7 - move data in multi instance FB

grebbs

Member
Join Date
Feb 2010
Location
Gothenburg
Posts
9
Hi,

I want to know how to read a WORD from the STAT of an multi instance FB and move it to a WORD defined in OUT or IN_OUT.

If I don't use multi instance of the FB i can use MOVE (IN: DIWxx OUT: #IntPar.Word). But DIW don't work within an multi instance FB, what is the procedure?


Regards Andreas
 
Example attached. I prefer to use an FC with an anypointer parameter to generate the DB/areapointer of the stat variable.
 
Thanks a lot LD! It works great with your example.

I wonder, however, if it's possible to "move in" the code from FC1 into the FB (FB1)?
 
Yes, see code below:

Code:
      L     DINO
      T     #wDB
      L     P##FirstBool
      AD    DW#16#FFFFFF
      TAR2  
      +D    
      LAR1  
      OPN   DB [#wDB]
      L     W [AR1,P#0.0]
      T     #IntPar.Dataword
 
You're awesome. Thank you once again!

Do you know if there's (and where) a "guide" for commands to have as reference when you're in need of a special function like the one above?
 
You're awesome. Thank you once again!

Do you know if there's (and where) a "guide" for commands to have as reference when you're in need of a special function like the one above?

Or if you click on any instruction and press the "F1" key it will open up the help file for that instruction.

It's really just an 'aide memoire' but very handy none-the-less.

;-)
 
"F1" is really good, but not always. What I think would be good for me is a reference of commands and examples how to use them. Combining them into functions is then up to me :)

I'll look into the book LD recommended!
 

Similar Topics

Hello, im quite new and still learning. I would like to ask is it possible for FATEK PLC to read data value more than 16k? I'm trying to move my...
Replies
0
Views
76
Afternoon, I have a DB in TIA Portal V16 that is optimised. I cannot change this. There is an array inside that block which consists of 3000...
Replies
9
Views
1,276
hi i have a baumer vision unit picking up a QR code this is connected to a siemens 1200 plc. i have a IB18 In the device that is the start of...
Replies
16
Views
9,488
Hi, can anybody tell that how can we move floating point data from one Regiter to another register in Fatek PLC.?
Replies
0
Views
1,578
Hi, Ok bear with me, I have an Array of Real in a DB ranging from 0 to 10. In ladder I want when count pulse = 100 move count into Array 0...
Replies
1
Views
2,108
Back
Top Bottom