Change Index

You are currently viewing the documentation for version 1.8.1. 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

This Step can be used with all the Basic Move Steps that have the Current Index parameter, or with the Step Counter.

Each time the Step executes, the Current Index in the Basic Move Steps or the Current Count in the Counter Step will be changed according to the Step.

Usage Scenario

This Step is used with all the Basic Move Steps that have the Current Index parameter, or with the Step Counter.

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.

Step

Default value: 0

The Current Index of Basic Move Steps and the Current Count of the Step Counter will plus 1 for every execution according to their own rules.

Update the Current Index in the Basic Move Steps or the Current Count in the Counter Step according to the Step parameter.

Updated Current Index / Current Count = previous Current Index / Current Count + 1

  • If the Step parameter is 0, it will have no influence on the Current Index of Basic Move Steps and the Current Count of the Step Counter.

  • If the Step parameter is −1, the Current Index of Basic Move Steps and the Current Count of the Step Counter will all minus 1.

  • If the Step parameter is 1, the Current Index of Basic Move Steps and the Current Count of the Step Counter will all plus 1.

Select Move Step with Index or Counter

Select Basic Move Steps or the Counter Step according to your actual needs.

Application Examples

Connect this Step to the exit port of Counter and you can change the value of the Current Count parameter according to your need.

index change workflow

If the Step parameter is −1, the Current Count of the Step Counter will minus 1 after every execution.

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.