Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| n | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | – |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 2 |
Operands
| Operand | Description |
|---|---|
| n | The only operand. Entries are only constants. This is the Scan Program ID number. The value range is 0 ~ 111. |
Notice
Instruction Behavior
The EPGM instruction behaves as follows:
- The EPGM instruction enables the scan program ID, n.
- The EPGM instruction is used when a scan program is disabled by the DPGM instruction.
- 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.
Ladder Diagram Examples
EPGM

The DPGM instruction disabled the program ID, n.

This is the scan program for the ID 2.

The INCP instruction does NOT increase the data register, D100, since the program ID 2 is disabled.

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

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