How can we help you today?

Array of Timers

Question:

In EcoStruxure Control Expert, can I directly create an ARRAY of TON or TOF timer function blocks? For example, can I declare multiple timers as an array and access them by index in FBD?

Answer:

No. In EcoStruxure Control Expert, TON and TOF are function blocks, not basic data types. Therefore, Control Expert does not support directly declaring an ARRAY of TON or TOF function blocks.

The supported workaround is to create a Derived Data Type (DDT) that contains one TON or TOF instance, then declare an array using that DDT.

Example approach:

1. Create a DDT that contains one timer instance, such as a TON or TOF.

2. Create a TON timer instance in the FB variables.

Example: `TimerDes`

function

3. Under DDT Types, define the timer structure and add the required TON-related members.

5

4. Create an array variable using the timer DDT.
Example: `Timebank` as an array of the timer DDT type.

4

5. In the FBD section, insert the TON function block and connect the indexed array members to the timer inputs and outputs

3

This allows multiple timer instances to be managed in an indexed structure while staying within the supported Control Expert programming model.

Note:

This is a Control Expert limitation. Other PLC programming platforms may allow timer arrays differently, but in Control Expert the DDT-based method is the supported approach.

Schneider Electric Australia

Explore more
Product:
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Product:
  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Centre
  • Office Locations
  • Where to buy
  • Phone: 13 73 28 (13 SEAU)
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms and Conditions of Sale
  • Change your cookie settings