Procedure
WARNING | |
---|---|
To make offline modifications to an application program in either CPU, follow these steps:
Step |
Action |
---|---|
1 |
Verify the following:
|
2 |
Connect Control Expert to the Primary CPU. |
3 |
Set to 1 the ALLOW_MISMATCH bit of the HSBY_BUILD_OFFLINE function block. This setting authorizes the CPU to remain synchronized with its pair if a program is modified offline. NOTE: Verify that the section where the function block resides
is executed by the Primary and the Standby CPU (verify the CPU section
execution settings in the tab).
|
4 |
Confirm that the logic mismatch is enabled. |
5 |
Disconnect Control Expert from the CPU. |
6 |
Modify the application program offline. NOTE: Only modifications within the scope
of the application code and/or some items under the DTM browser modifications
are working as valid offline build modification for the Standby CPU.
Any other modifications (configuration changes for example) are not
taken into account by the HSBY_BUILD_OFFLINE function block.
|
7 |
Perform a and save.NOTE: Do not perform a because the Standby CPU may not switch to the RUN STANDBY state after the program download
and . The swap
from Standby to Primary cannot be performed.
|
8 |
Connect Control Expert to the Standby CPU. |
9 |
Open the modified application program. |
10 |
Download the program in the Standby CPU. |
11 |
Select .NOTE: Check that the
CPU is now in WAIT state.
NOTE: If the CPU does not transition to WAIT state, proceed as indicated in the
following Workaround topic.
|
12 |
For safety Hot Standby CPUs, check if the safe part of the new application has been modified (SAFETY_LOGIC_MISMATCH bit = 1). If so, set the operating mode of the standby PAC to maintenance mode. |
13 |
On the Standby CPU set to 1 the ALLOW_MISMATCH bit of the HSBY_BUILD_OFFLINE function block. This setting authorizes the CPU to remain synchronized with its pair if a program is modified offline. Result: The Standby CPU switches from WAIT to RUN STANDBY state. NOTE: Verify that the section where the function block resides is executed
by the Standby CPU (verify the CPU section execution settings in the tab).
|
14 |
Verify that:
|
15 |
Perform a switchover using the NOTE: Verify that the Standby
CPU switched to Primary CPU.
|
16 |
Perform an application transfer to the Standby CPU. |
17 |
Perform an application to the Standby CPU. |
18 |
On the Standby and Primary CPU reset to 0 the ALLOW_MISMATCH bit of the HSBY_BUILD_OFFLINE function block. |
Workaround When the Standby CPU Does Not Transition to WAIT State
If the Standby CPU does not transition to WAIT state after the command in step 11 (a has been performed for example), the initial program and configuration need to be transferred in the Standby CPU.
Step |
Action |
---|---|
1 |
Connect Control Expert to the Primary CPU |
2 |
Upload the application program from the Primary CPU for future offline modifications. NOTE: The modifications done previously to the application program
in Control Expert are lost.
|
3 |
Perform an application transfer to the Standby CPU. |
4 |
Perform an application to the Standby CPU. |
5 |
Disconnect Control Expert from the CPU. |
6 |
Modify the application program and repeat the Procedure actions from step 6. |
Use Case
In an existing Hot Standby system, the process to modify an application offline and transfer it to the Primary and Standby CPU follows these macro steps (refer to the preceding detailed procedure for more information):
Using the CCOTF online modification, insert the HSBY_BUILD_OFFLINE function block in the application program of the Primary and Standby CPU. The function block needs one input bit for control and provides a status output.
Allow the application mismatch in the Primary CPU by setting to 1 the ALLOW_MISMATCH input bit of the HSBY_BUILD_OFFLINE function block in the Primary CPU.
Modify the application program offline.
(do not perform a ).
Transfer the modified application program in the Standby CPU.
Allow the application mismatch in the Standby CPU by setting to 1 the ALLOW_MISMATCH input bit of the HSBY_BUILD_OFFLINE function block in the Standby CPU.
Perform a switchover.
Transfer the application in the new Standby CPU.
Reset to 0 the ALLOW_MISMATCH input bit of the HSBY_BUILD_OFFLINE function block in the Primary and Standby CPU.