Introduction
The T_M_ECPU_HSBY
DDT is the exclusive interface between the M580 Hot Standby system and the application running in a BMEH58•040 or BMEH58•040S CPU. The DDT instance should appear
as: ECPU_HSBY_1
.
NOTICE | |
---|---|
The T_M_ECPU_HSBY
DDT presents three distinct sections:
LOCAL_HSBY_STS
: Provides information about the local PAC. Data is both auto-generated by the Hot Standby system, and provided by the application. This data is exchanged with the remote PAC.REMOTE_HSBY_STS
: Provides information about the remote PAC, and contains the image of the last received exchange from the counterpart PAC. The validity of this information is represented by theREMOTE_STS_VALID
flag in the common part of this DDT.NOTE: The structure of both theLOCAL_HSBY_STS
andRemote_HSBY_STS
sections are determined by theHSBY_STS_T
data type, and are therefore identical. Each is used to describe data relating to one of the two Hot Standby PACs.A common part of the DDT: Consists of several objects, including status data, system control objects, and command objects:
Status data is provided by the Hot Standby system as a result of diagnostic checking.
System control objects enable you to define and control system behavior.
Command data objects include executable commands you can use to modify the system state.
Local PAC versus Remote PAC
The T_M_ECPU_HSBY
DDT employs
the terms local and remote:
Local refers to the Hot Standby PAC to which your PC is connected.
Remote refers to the other Hot Standby PAC.
Data Boundary Alignment
M580 BMEH58•040 and BMEH58•040S CPUs feature a 32-bit data design. For this reason, stored data objects are placed on a four-byte boundary.
T_M_ECPU_HSBY DDT
CAUTION | |
---|---|
The T_M_ECPU_HSBY
DDT consists of these objects:
Element |
Type |
Description |
Written by |
---|---|---|---|
REMOTE_STS_VALID |
BOOL |
|
System |
APP_MISMATCH |
BOOL |
The original application in the two PACs is different. (Default = false) |
System |
LOGIC_MISMATCH_ALLOWED |
BOOL |
|
Application |
LOGIC_MISMATCH |
BOOL |
Different revisions of the same application exist in the two PACs. (Default = false) |
System |
SFC_MISMATCH |
BOOL |
|
System |
OFFLINE_BUILD_MISMATCH |
BOOL |
The two PACs are running different revisions of the same application.In this condition:
(Default = false) |
System |
APP_BUILDCHANGE_DIFF |
UINT |
The number of build change differences between the applications in the primary PAC versus the standby PAC. Evaluated by the primary. |
System |
MAX_APP_BUILDCHANGE_DIFF |
UINT |
Maximum number of build change differences permitted by the Hot Standby system, from 0...50 (default = 20). Set in the tab as . |
Application |
FW_MISMATCH_ALLOWED |
BOOL |
Allows mismatched firmware between primary and standby CPUs:
|
Application |
FW_MISMATCH |
BOOL |
The OS are different in the two PACs. (Default = false) |
System |
DATA_LAYOUT_MISMATCH |
BOOL |
The Data layout are different on the two PACs. The data transfer is partially performed. (Default = false) |
System |
DATA_DISCARDED |
UINT |
Number of KB sent by the primary and discarded by the standby (rounded up to the next KB). Represents data for variables added to primary, but not to standby. (Default = 0) |
System |
DATA_NOT_UPDATED |
UINT |
Number of KB not updated by the standby (rounded up to the next KB). Represents variables deleted from the primary that remain in the standby. (Default = 0) |
System |
BACKUP_APP_MISMATCH |
BOOL |
|
System |
PLCA_ONLINE |
BOOL |
PAC A is configured to enter the primary or standby state. (Default = true) NOTE: Executable
only on PAC A.
|
Configuration |
PLCB_ONLINE |
BOOL |
PAC B is configured to enter the primary or standby state. (Default = true) NOTE: Executable
only on PAC B.
|
Configuration |
CMD_SWAP |
BOOL |
NOTE:
|
Application / System |
CMD_APP_TRANSFER |
BOOL |
|
Application / System |
CMD_RUN_AFTER_TRANSFER |
BOOL[0...2] |
|
Application / System |
CMD_RUN_REMOTE |
BOOL |
|
Application / System |
CMD_STOP_REMOTE |
BOOL |
|
Application |
CMD_COMPARE_INITIAL_VALUE |
BOOL |
|
Application / System |
INITIAL_VALUE_MISMATCH |
BOOL |
|
System |
MAST_SYNCHRONIZED (1) |
BOOL |
NOTE: Closely monitor the MAST_SYNCHRONIZED and FAST_SYNCHRONIZED variables related
to the MAST and FAST tasks as indicated at the end of this table.
|
System |
FAST_SYNCHRONIZED (1) |
BOOL |
NOTE: Closely monitor the MAST_SYNCHRONIZED and FAST_SYNCHRONIZED variables related
to the MAST and FAST tasks as indicated at the end of this table.
|
System |
SAFE_SYNCHRONIZED |
BOOL |
|
System |
SAFETY_LOGIC_MISMATCH |
BOOL |
NOTE: The content for this element is determined
by comparing system word %SW169 for each PAC.
|
– |
LOCAL_HSBY_STS |
T_M_ECPU_HSBY_STS |
Hot Standby status for the local PAC |
(see below) |
REMOTE_HSBY_STS |
T_M_ECPU_HSBY_STS |
Hot Standby status for the remote PAC |
(see below) |
(1):
|
T_M_ECPU_HSBY_STS Data Type
The T_M_ECPU_HSBY_STS
data type
presents the following elements:
Element |
Type |
Description |
Written by |
---|---|---|---|
HSBY_LINK_ERROR |
BOOL |
|
System |
HSBY_SUPPLEMENTARY_LINK_ERROR |
BOOL |
|
System |
WAIT |
BOOL |
|
System |
RUN_PRIMARY |
BOOL |
|
System |
RUN_STANDBY |
BOOL |
|
System |
STOP |
BOOL |
|
System |
PLC_A |
BOOL |
|
System |
PLC_B |
BOOL |
|
System |
EIO_ERROR |
BOOL |
NOTE: This bit is always false when no drop is configured.
|
System |
SD_CARD_PRESENT |
BOOL |
|
System |
LOCAL_RACK_STS |
BOOL] |
|
Application |
MAST_TASK_STATE |
BYTE |
State of the MAST task:
|
System |
FAST_TASK_STATE |
BYTE |
State of the FAST task:
|
System |
SAFE_TASK_STATE |
BYTE |
State of the SAFE task:
|
System |
REGISTER |
WORD[0...63] |
Unmanaged data added to the application via the attribute. |
Application |