The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
n

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
2

Operands

OperandDescription
nThe only operand.
Entries are only constants.
This is the Scan Program ID number.

The value range is 0 ~ 111.

Notice

Instruction Behavior

The DPGM instruction behaves as follows:

  • The DPGM instruction disables the scan program ID, n.
  • To enable a scan program disabled by the DPGM instruction, the EPGM instruction must be executed in a scan program with a different ID than the one that has been disabled.
  • When the DPGM instruction is executed, the specified scan program ID, n, is disabled after the END instruction is executed.
  • The DPGM instruction can only disable normal scan programs, periodic interrupt programs, and sequential function chart (SFC) programs.

Ladder Diagram Examples

DPGM Example

The DPGM instruction disabled the program ID, n.

The DPGM instruction disabled the program ID, n.

This is the scan program for the ID 2.

This is the scan program for the ID 2.

Every 1 second, the INCP instruction increases the data register, D100 in the scan program ID 2.

This is the main scan program.

This is the main scan program.

When the contact, M0.1, is powered ON (1), the DPGM disables the scan program ID 2.

When the contact, M0.1, is powered ON (1), the DPGM disables the scan program ID 2.

The data register, D100, no longer increases every second since the program ID 2 has been disabled.

The data register, D100, no longer increases every second since the program ID 2 has been disabled.