The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
1

Notice

Notice

Compile errors occur under the following conditions:

  • When the INITEND instruction is used in any program except an initialization program.
  • When the INITEND instruction is the only termination instruction in the program.
    • The END instruction is still needed.

Instruction Behavior

The INITEND instruction behaves as follows:

  • When the INITEND instruction is executed, it terminates the hot and cold initialization programs and runs the normal scan programs.
  • Once the INITEND instruction is executed, the process does NOT operate the initialization program again except when the CPU mode changes from STOP→RUN or a power reset.
  • To end the initialization program and start executing the normal scan programs, the INITEND instruction must be executed.
    • Otherwise, the initialization program will run forever.
  • When the INITEND instruction is used in other programs, it will cause a compile error.

Contact Behavior

Be aware when using a contact: At the first scan, the CPU cannot detect the rising pulse if the contact is already powered ON (1).

Ladder Diagram Examples

INITEND

The INITEND instruction defines the end of an hot or cold initialization program.

The INITEND instruction defines the end of an hot or cold initialization program.

Ladder Diagram Example for MapleLogic INITEND instruction.

Initialization (COLD)

This is the program in the COLD initialization program.

When the CPU is in RUN mode, the data registers, D0, and D1, increase every scan due to the INC instruction. The contact, M0.0, is powered OFF (0). This means the initialization program will run forever until powered ON (1).

Ladder Diagram Example for MapleLogic INITEND instruction.

Main Scan

This is the program in the main scan program.

The data register, D2, is NOT increasing the main scan program since the initialization program has NOT ended.

When the contact, M0.0, is powered ON (1), the INITEND instruction executes.

When the contact, M0.0, is powered ON (1), the INITEND instruction executes. The data registers, D0 and D1, no longer increase each scan.

Since the INIT end instruction was executed, the data register, D2 increases in the main scan program.

Since the INIT end instruction was executed, the data register, D2 increases in the main scan program.