Counter

You are currently viewing the documentation for version 1.7.4. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Function

Count the execution times of the current program or branch. You can set a count threshold and execute different branches when the count meets the threshold. This Step is usually used with Reset to reset the accumulated number.

Usage Scenario

This Step is used when the execution times need to be counted.

Parameter Description

General Parameters of Non-Move Steps

Skip Execution

None

Default setting. Do not skip the current Step.

Simulation only

Skip the current Step during simulation. The exit port is specified by Out Port When Skip.

Always

Skip the current Step when the project is simulating or running. The exit port is specified by Out Port When Skip.

Instruction

When Simulation only or Always is selected, the current Step will be skipped and the subsequent Step will be executed when running the project. If this parameter is set to None in “Check DI” Step in the project, and there is no external input signal during simulation, the project will be stopped when executing to this Step. In this case, setting the parameter to Simulation only or Always enables the simulation to continue.

Out Port When Skip

This parameter will take effect when Skip Execution is set to Simulation only or Always. It specifies the exit port when skipping a Step.

Count

The number of times to count. When the Step executes for more than the set value, the Finished exit port will be taken.

Counter Type

Execution: Count the number of times the “Counter” Step is executed. Picked Count: Count the number of times the Vision Move Step is executed.

Current Count

The number of times the Counter or the Vision Move Step is executed, which is related to Counter Type.

Application Examples

In a scenario where a path needs to be taken twice:

counter workflow

Given the Count parameter set to 2, if the Step is executed the third time, the Finished exit port will be taken.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.