Rockwell Automation 20D-DL2-CKS1 Import/Export Project Components User Manual
Page 44
![background image](/manuals/579797/44/background.png)
Chapter 4 Additional considerations for programs and equipment phases
The following are considerations when importing a program.
Topic
Consideration
Accepted or Test Edits exist
A program with Accepted Edits or Test Edits may not be overwritten.
Deletes of program-scoped tags and routines
during program overwrite
When importing a program to replace an existing program, any tags or routines in the existing program that are not in the new
program are deleted during import. However, if you are online and import Logic Edits as Pending or Accept Program Edits is
selected in the Online Options dialog box, then these tags and routines cannot be deleted because they are referenced by
existing logic until edits are finalized. In this situation, although they were identified during import configuration with an
Operation of Delete, these tags and routines are not deleted as part of the import. You can delete them in the Logix Designer
editor after you finalize edits.
Safety program scheduled location
A Safety program cannot be scheduled in the Controller Fault Handler or Power-Up Handler folders.
Configuration of Equipment Phase state routines In the configuration for an equipment phase state routine, when the Complete State Immediately if not Implemented
option is selected in version 17 and later of the application, an implemented, but empty (no logic), phase state routine behaves
the same as an unimplemented phase state routine. The state immediately completes and execution of the phase continues. The
phase then enters the next state in the state machine.
In version 16 or later of the application, if an equipment phase enters a state for which a state routine exists, but contains no
logic, execution of the phase stops regardless of whether the Complete State Immediately if not Implemented option is
selected. The routine does complete, but there is no logic to run.
If you import a new state routine and, in the Online Options dialog box, you select:
• Import Logic Edits as Pending, an empty routine is created in the controller and the pending edits only exist in the offline
project.
• Accepts Program Edits, an empty routine is created in the controller and the logic is placed in a test edits container in the
routine. If you are not actively testing edits, the routine is empty when running.
• Finalize All Edits in Program, the routine is created with the new logic and is not empty.
In the first two cases, if the Complete State Immediately if not Implemented option is selected, the empty routine
completes immediately and allows phase execution to continue.
First scan
If a new program or equipment phase is created in a controller in Remote Run mode, logic in that program/equipment phase
receives a value of 1 for the S:FS system flag (First Scan flag) until the main routine has run once.
Any other logic imports (that is overwriting an existing program or equipment phase, or any routine or rung imports) does not
result in a value of 1 for S:FS system flag.
Pre-scan
Logic imported while online with the controller in Remote Run mode is not be pre-scanned before it begins to run.
Program scheduled location while online
An imported program that is configured to overwrite an existing program cannot be scheduled into a location that differs from
the existing program while online with the controller in Remote Run mode; the existing scheduled location is used.
Renamed tags
When overwriting an existing program and the imported program is modified such that a program-scoped tag has been
renamed, during import, the existing tag is deleted and a tag with the new name is created. All logic references are updated to
reference the new tag. Therefore, the online tag values are not preserved and the tag values from the imported tag are
downloaded to the controller. To preserve the data values of the renamed tag and minimize the logic changes, rename the
program tag in the online project to the new name before importing the modified program.
Importing multiple programs
Controller Fault Handler and Power-Up Handler Disabled: When you import multiple target programs, the Controller Fault
Handler and Power-Up Handler are unavailable in the Schedule In list.
For considerations for referenced user-defined types, Add-On Instructions, and
program tags, and referenced tags that may be imported with a program see:
• Additional considerations for user-defined types on page 47
• Chapter 6, Import and export Add-On Instructions on page 49
• Additional considerations for tags on page 59
44
Rockwell Automation Publication 1756-PM019E-EN-E - October 2014