S7 Addressing Instance DB from within FB

Holmux

Lifetime Supporting Member
Join Date
Oct 2013
Location
Aalborg
Posts
279
Good Evening

I have been searching high and low for this one, I get close but not exactly what I am looking for, It's probably so clear I can't see it :)

I have a area in the Instance DB of my FB, where I would like to get an average.
It's just 10 INT tags in a row, how do I declare this area, by DBX10.0 BYTE 20 or is there another method, I guess I don't have to open the DB since I am in the FB is this correct ?

/Thanks
 
Battling a little with sorting these 10 tags, maybe it would be easier just to do this in a FC and use a shared DB, but the it's a large system I will be loading my project into, so I am trying to keep my tags with in a FB.
 
You original post requested average only - I take it you want the max and min values as well?

Is there any reason the 10 tags cannot be declared as an array of 10 integers?
 

Similar Topics

Using Rslogix 5000 Data Access manual as a reference I keep getting 'Service Not Supported' response when using symbol instance addressing to...
Replies
2
Views
1,555
I'm porting some Tia Portal V14 code from an S7-300 cpu to an S7-1500. I have a couple places where I've moved an input word (for example...
Replies
1
Views
2,664
Hi all In a step7 SCL FB (NOT TIA portal) , I have declared many variables as IEC timers (SFB4). Now I need to iterate this variables (hundreds...
Replies
15
Views
7,878
I am very new to Modbus and the industry, so forgive me if I am missing something obvious. I have known Modbus register addresses coming from a...
Replies
7
Views
227
I have a system using Rx3I CRU320 redundant CPU with Proficy Machine Edition Software. In the hardware configuration of each CPU module, under...
Replies
14
Views
388
Back
Top Bottom