S7 300 / 400 Arrays, How to loop it through..

Hi there LD
Dint understood what you meant !

Why have you hard coded the DI number ?
coding hardway means what?:oops:
Anything wrong in here. I tested code, it works.

When using indirect addressing in FB's, always test the FB's operation as a multiple instance making sure it is not the first entry in the STAT section
Actually I just called the FB2 from OB1 for testing.
Testing FB operation as multiple instance means what?
Does it means calling FB along with other FB's and and FC's?

"Make sure it is not the first entry in the STAT section."

Here "it" refers to what? Anything to do with AR2? I mean when FB is called AR2 points to first entry of the DI, right??? that is DIX0.0
But then you make it point to some other location, right?
 
Here's an example project using your FB in a multiple instance implementation.

"Hardcoding" means specifying data that cannot change at run time. You have chosen the instance DB to be 20
 
Ok !!Gotcha
So now because of FB1 everything goes off by 50.0 ! And it works no longer ! Ok
Now how to take care of this hardcoding ;)

I can now relate to your statement that
Make sure that indirect addressing is not referring to the first entry in the STAT section.!!!

And that "it" in your original statement refers to "indirect addressing inside FB's"

Don't know the way around.
Can you please ...........☯
 

Similar Topics

Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
34
Hello everyone, One of our machine we use Siemens Cpu315-2dp. And this cpu communicate with 4 Lenze servo drives series 9300 via profibus. Also...
Replies
0
Views
181
Hi guys, I'm having problems converting WinAC (WinLC RTF F application) to S7 300 project based on CPU 319F-3PN or S7 400/416F-3PN. The problem is...
Replies
0
Views
615
Hello All I hope you are well and safe. I have a problem that I could use your appreciated input for: SW: SIMATIC MANAGER v5.5 SP3 HW1...
Replies
2
Views
1,229
Hi What stage of its life cycle, S7-300/400 controllers are at now? In my existing unit, we are using these controller and in near futher there is...
Replies
8
Views
7,075
Back
Top Bottom