HSBY_WR
Original instructions
Function Description
This EFB allows you to use the Hot Standby function. It searches (together with the other Hot Standby Fibs) the configuration of the respective Quantum PLC for the required components.
These components refer to hardware that is actually connected. Therefore, the correct behavior of this EFB on the simulators cannot be guaranteed.
HSBY_WR is used to set different Hot Standby Modes for the Primary CPU. Setting the respective modes means changing the Hot Standby Command register %SW60, which is carried out automatically by the function block. If there is no Hot Standby configuration, the HSBY_ConfigurationFound output is set to 0, otherwise it is set to 1.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL HSBY_WR_Instance (INV_KEY:=InvalidateKeypad, 
         PCA_RUN:=PLC_A_Running, PCB_RUN:=PLC_B_Running,
         SWP_MB1:=SwapAddressModbusPort1,
         HSBY=>HSBY_ConfigurationFound)
Representation in ST
Representation:
HSBY_WR_Instance (INV_KEY:=InvalidateKeypad, 
         PCA_RUN:=PLC_A_Running, PCB_RUN:=PLC_B_Running,
         SWP_MB1:=SwapAddressModbusPort1,
         HSBY=>HSBY_ConfigurationFound);
Parameter Description
Description of the input parameters:
Parameter
Data type
Meaning
INV_KEY
In the submenu for the Hot Standby PLC button:
1 = Changes are not allowed.
0 = Changes are allowed.
PCA_RUN
BOOL
If 1 -> 0, then the Hot Standby ‘A’ CPU on the local rack is forced into OFFLINE mode.
If 0 -> 1 and its button mode is in RUN mode, then the Hot Standby ‘A’ CPU is forced into the RUN mode.
PCB_RUN
BOOL
If 1 -> 0, then the Hot Standby ‘B’ CPU on the local rack is forced into OFFLINE mode.
If 0 -> 1 and its button mode is in RUN mode, then the Hot Standby ‘B’ CPU is forced into the RUN mode.
SWP MB1
BOOL
If 0 and there is a Switchover, then the Modbus address on port 1 of the NEW Primary CPU PLC changes:
  • New Primary CPU PLC address = old Primary CPU address
  • New Standby CPU PLC address = new Primary CPU address + 128.
If 1 and there is a Switchover, then the Modbus address on Port 1 of the PLC does not change:
  • New Primary CPU PLC address = old Standby CPU address
  • New Standby CPU PLC address = old Primary CPU address
SWP_MB2
BOOL
Not used. Reserved
SWP MB3
BOOL
Not used. Reserved
Description of the output parameters:
Parameter
Data type
Meaning
HSBY
BOOL
1 = Hot Standby configuration found.
0 = Hot Standby configuration not found.