Skip to main content

End Initialization

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S

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).

CPU Behavior

When using a CPU type such as the BP, XPnA/1R, CP3A/B/P/U, and CP4A~D/U, the internal relay flag ON at first scan only, F1.2, does NOT power ON (1) in case of a hot restart.
It is NOT recommended to use the ON at first scan only flag, F1.2, as a contact in a hot initialization program.

Examples