Current Program/Step

Type:

Task Register

RMC75 Address:

%MD24.1+16*n, n = task number. See Register Map topic for other address formats.

RMC150 Address:

%MD48.1+16*n, n = task number. See Register Map topic for other address formats.

RMC200 Address:

%MD.[192+n].1, n = task number.

System Tag:

_Task[n].CurProgStep, where n is the Task number

How to Find:

Address Selection Tool → Tasks → Task #

Data Type:

DINT

Accessibility:

Read Only

 

This register indicates the current program and step that is running on Task n. This register combines the information provided in both the Current Program and Current Step registers. Therefore, it provides information more compactly, which is useful when including Task information in plots.

Other than using this register for plots, this register is difficult to use! Use the Current Program and Current Step registers instead.

 

Note:
If this register is referenced in the action portion of a step in a user program, it will give the numbers of the program and step that were executed in the previous step by the task. If referenced from the Link or from any other location, such as the Program Triggers or from a host controller, it will always indicate the current program and step.
Therefore, this register is best not used in the action portion of a step in a user program.

 

This register includes the current program and step in the following bits of the register:

Bit

Description

0-11

Step Number

12-23

Program Number

 

See Also

Tasks


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion