107BOnline and diagnostic tools
14.11 Downloading in RUN mode
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
655
●
Any logic that is conditional on the state of the first scan bit will not be executed until the
next power cycle or transition from STOP to RUN mode. The first scan bit is set only by
the transition to RUN mode and is not affected by a download in RUN mode.
●
The current values of data blocks (DB) and/or tags will not be overwritten.
Note
Before you can download your program in RUN mode, the CPU must support changes in
RUN mode, the program must compile with no errors, and the communication between
STEP 7, and the CPU must be error-free.
You can make the following changes in program blocks and tags and download them in
RUN mode:
Create, overwrite, and delete Functions (FC), Function Blocks (FB), and Tag tables.
Create and delete Data Blocks (DB); however, DB structure changes cannot be
overwritten. Initial DB values can be overwritten. You cannot download a web server
DB (control or fragment) in RUN mode.
Overwrite Organization Blocks (OB); however, you cannot create or delete OBs.
A maximum number of ten blocks can be downloaded in RUN mode at one time. If more
than ten blocks are downloaded, the CPU must be placed into STOP mode.
Once a download is initiated, you cannot perform other tasks in STEP 7 until the
download is complete.
Instructions that may fail due to "Download in RUN mode"
The following instructions may experience a temporary error when download in run changes
are being activated in the CPU. The error occurs when the instruction is initiated while the
CPU is preparing to activate the downloaded changes. During this time, the CPU suspends
initiation of user-program access to the Load Memory, while it completes in-progress user-
program access to Load Memory. This is done so that downloaded changes can be
activated consistently.
Instruction
Response while Activation is Pending
DataLogCreate
STATUS = W#16#80C0, ERROR = TRUE
DataLogOpen
STATUS = W#16#80C0, ERROR = TRUE
DataLogWrite
STATUS = W#16#80C0, ERROR = TRUE
DataLogClose
STATUS = W#16#80C0, ERROR = TRUE
DataLogNewFile
STATUS = W#16#80C0, ERROR = TRUE
READ_DBL
RET_VAL = W#16#82C0
WRIT_DBL
RET_VAL = W#16#82C0
RTM
RET_VAL = 0x80C0