Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

siemens step 7 array of counters

Status
Not open for further replies.

controlsdude

Electrical
Jan 11, 2007
803
Not a siemens step 7 expert

I can do this same thing in AB RSLogix5000.

How do you create an array of counters in Step 7?

I can not do it as a DB object. Is their another way besides creating each one in the symbol table?

 
Replies continue below

Recommended for you

An array in Step 7 allows you to create array's of data types, not instructions so no you cannot do that.

The other thing with Step 7 arrays is that you cannot easily use indirect addressing (except if you use SCL programming format).

You would have to use AR1 type indirect addressing to access the data.
 
Regarding above, I of course mean't ST not SCL (duh).

ST allows you to do somethine like ARRAY_DATA[OFFSET] to access data.
 
Found outs its multiple instance for other than parameter based type variables like if you have timers and what an array of timers you have to do a mulitple instance with a DB then refer with a FB to call this DB over and over for how many timers you need. Kind of flaky but thats the way it is.
 
Personally I never use counters with Siemens, I would normally add 1 to an integer on a one shot. You can have an array of integers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor