×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

siemens step 7 array of counters

siemens step 7 array of counters

siemens step 7 array of counters

(OP)
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?

RE: siemens step 7 array of counters

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.

RE: siemens step 7 array of counters

Regarding above, I of course mean't ST not SCL (duh).

ST allows you to do somethine like ARRAY_DATA[OFFSET] to access data.

RE: siemens step 7 array of counters

(OP)
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.

RE: siemens step 7 array of counters

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources