Publication 1756-UM523F-EN-P - December 2006
90
Configure and Program the Controller
Example 2: Structured Text
//Get the ID of the primary chassis.
//That is always the chassis that runs the code.
//Store the ID in Chassis_ID_Now.
//Chassis_ID_Now -- DINT.
GSV(REDUNDANCY,,PhysicalChassisID,Chassis_ID_Now);
//If this is the first scan
//Then set the last value of the chassis ID = the ID of this chassis
//Chassis_ID_Last -- DINT.
If S:FS then
Chassis_ID_Last := Chassis_ID_Now;
End_If;
//If the chassis ID changes, a switchover happened.
//If a switchover happens then
//Turn on the Switchover_Happened bit.
//Set the last value of the chassis ID = the ID of this chassis
//Switchover_Happened -- BOOL
If Switchover_Happened = on, then
1. Execute the instructions that you want to execute after a switchover.
2. Turn off the Switchover_Happened bit.
Put your instructions here.
comment
comment
comment
comment
code
Summary of Contents for 1756-CNB/E
Page 4: ...Publication 1756 UM523F EN P December 2006 Summary of Changes 4 Notes...
Page 10: ...Publication 1756 UM523F EN P December 2006 10 Table of Contents...
Page 26: ...Publication 1756 UM523F EN P December 2006 26 ControlLogix Redundancy System Overview Notes...
Page 42: ...Publication 1756 UM523F EN P December 2006 42 Design the System Notes...
Page 64: ...Publication 1756 UM523F EN P December 2006 64 Configure the System Redundancy Module Notes...
Page 102: ...Publication 1756 UM523F EN P December 2006 102 Configure and Program the Controller Notes...
Page 146: ...Publication 1756 UM523F EN P December 2006 146 Update Modules and Redundant Systems Notes...
Page 168: ...Publication 1756 UM523F EN P December 2006 168 Convert an Existing System to Redundancy Notes...
Page 178: ...Publication 1756 UM523F EN P December 2006 178 Redundant System Restrictions Notes...
Page 185: ......