Current Program

Type:

Task Register

RMC75 Address:

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

RMC150 Address:

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

RMC200 Address:

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

System Tag:

_Task[n].CurProg, 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 that is running on Task n. The Current Step register indicates the current step.

After issuing a Start Task command from a PLC, this register, together with the Running bit in the Task Status register, is useful for determining if the User Program really did start.

 

Note:
If this register is referenced in the action portion of a step in a user program, it will give the number of the program that was running in the previous step of 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.
Therefore, this register is best not used in the action portion of a step in a user program.

 

See Also

Tasks


Send comments on this topic.

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