Unitary | Pre-APOGEE | APOGEE | BACnet | PXC.A |
---|---|---|---|---|
● | ● | ● |
Syntax
ONPWRT(line#)
line# | Line number at which execution begins in the control program after returning from power failure. - Line numbers must be entered as integers ranging from 1 to 32767. - If the line number is invalid, this command is ignored. |
Use
This statement is no longer supported in PXC.A devices. The PXC.A PPCL runtime will consider this statement invalid, and no replacements have been provided.
This command is similar to a GOTO command and allows you to select the first program line that is executed when power has returned. The ONPWRT command is only executed once and is then ignored as long as power stays ON.
Example
10 ONPWRT(1800)
Notes
- The ONPWRT command should be the first command in a PPCL program since program execution returns to the first line of a PPCL program after a power failure.
- If the database for an automation station is lost due to a power failure, the ONPWRT command is not executed when power is restored. See also the AUTO, FAST, ON, and SLOW topics.