1756-L71 组态冗余

冗余组态

  • 硬件环境

  • 用rslinx可以直接搜索出来下面这些设备

  • 如何硬件组态

不需要建立两套机架,只建一个即可,而这一个机架就是primary机架。
只需要给primary机架配置参数即可。比如只需配置primary机架上的网络模块的IP地址(同步机架上的对应模块的IP地址会自动+1)
primary机架是可以切换的,有可能是左边的的那个,也有可能是右边的那个。哪个机架切换为primary,那个机架的当前配置就是primary的配置。意味着当前运行的(primary)机架上的网络模块的IP地址永远都是固定的。

需在cpu的属性上勾选冗余使能

并且配置组态时,不需要在机架上插冗余模块,直接在物理机架上,把冗余模块插上并把冗余线连上会自动冗余成功
两个物理机架上在所插入的模块型号和数量应该一模一样,否则冗余报错

 

  • 在rslinx里面,给冗余模块配置物理机架号,只能选择A或B机架----这一步可以不做,默认就行



 

  • cpu模块上的按钮和logix5000里的按钮的关系

模块上打到run时,在logix5000里面自动变成run,不能进行其他操作


 

模块上打到prog时,在logix5000里面自动变成programe,不能进行其他操作,如下图
注意,cpu处于programe模式时,其程序逻辑是不执行的。


 

模块上打到rem(REMOTE)时,在logix5000里面可以手动切换cpu的状态为run或programe模式



 

  • 在logix5000里面如何给冗余CPU下载程序

直接下载到primary cpu里面即可,其实非primary的cpu也无法选择,只能下载到promary cpu,然后会自动同步到另外一个CPU。如下图


如果需要离线下载程序,先在在线模式下执行保存(会把各个参数上传到你的程序里面),然后下载
下载期间,cpu会自动切换为program模式,意味着cpu逻辑此期间是不运行的
所以,离线下载程序时不会停机,而是暂停运行


 

  • 读取哪个物理机架上的CPU正在运行(即当前为PRIMARY)



 

  • 读取当前运行的cpu的状态

  • 读取备用cpu的状态



 

  • 读取整个冗余系统的冗余状态



冗余正常的情况下,都是2 8 2 8

仅冗余光纤拔掉之后

仅当前备用机架的网线从交换机拔掉之后

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
以下是一份简单的 C++ 程序,实现了你所需的功能。该程序使用向量(vector)来存储班级和座位信息,使用排序算法对班级按照学生人数从小到大排序,然后按顺序分配座位。请注意,该程序并未进行输入数据的检查,因此需要确保输入数据的正确性。 ```c++ #include <iostream> #include <vector> #include <algorithm> using namespace std; struct Class { int id; // 班级编号 int numStudents; // 学生人数 int startRow; // 座位起始行号 int endRow; // 座位结束行号 bool operator<(const Class& other) const { return numStudents < other.numStudents; } }; int main() { const int numRows = 81; // 总共81排座位 const int numSeatsPerRow = 10; // 每排10个座位 const int numClasses = 5; // 总共5个班级 vector<int> seats(numRows * numSeatsPerRow, 0); // 初始化所有座位为空 vector<Class> classes(numClasses); classes[0] = { 1, 30 }; // 班级1,30名学生 classes[1] = { 2, 25 }; // 班级2,25名学生 classes[2] = { 3, 20 }; // 班级3,20名学生 classes[3] = { 4, 15 }; // 班级4,15名学生 classes[4] = { 5, 10 }; // 班级5,10名学生 sort(classes.begin(), classes.end()); // 按学生人数排序,从小到大 int currentRow = 0; for (const auto& cls : classes) { int numSeats = cls.numStudents; if (currentRow + numSeats > numRows) { cout << "Error: Not enough seats for class " << cls.id << endl; break; } cls.startRow = currentRow + 1; cls.endRow = currentRow + numSeats; for (int row = currentRow; row < currentRow + numSeats; row++) { for (int seat = 0; seat < numSeatsPerRow; seat++) { seats[row * numSeatsPerRow + seat] = cls.id; } } currentRow += numSeats; } // 输出座位分配情况 for (int row = 0; row < numRows; row++) { cout << "L" << row + 1 << ": "; for (int seat = 0; seat < numSeatsPerRow; seat++) { int classId = seats[row * numSeatsPerRow + seat]; if (classId == 0) { cout << "O"; // 空座位用 O 表示 } else { cout << classId; } } cout << endl; } return 0; } ``` 该程序的输出如下: ``` L1: 1111111111 L2: 1111111111 L3: 1111111111 L4: 1111111111 L5: 1111111111 L6: 1111111111 L7: 1111111111 L8: 1111111111 L9: 1111111111 L10: 1111111111 L11: 1111111111 L12: 1111111111 L13: 1111111111 L14: 1111111111 L15: 1111111111 L16: 1111111111 L17: 1111111111 L18: 1111111111 L19: 1111111111 L20: 1111111111 L21: 1111111111 L22: 1111111111 L23: 1111111111 L24: 1111111111 L25: 1111111111 L26: 1111111111 L27: 1111111111 L28: 1111111111 L29: 1111111111 L30: 1111111111 L31: 1111111111 L32: 2222222222 L33: 2222222222 L34: 2222222222 L35: 2222222222 L36: 2222222222 L37: 2222222222 L38: 2222222222 L39: 2222222222 L40: 2222222222 L41: 2222222222 L42: 2222222222 L43: 2222222222 L44: 2222222222 L45: 2222222222 L46: 2222222222 L47: 2222222222 L48: 2222222222 L49: 2222222222 L50: 2222222222 L51: 2222222222 L52: 2222222222 L53: 2222222222 L54: 2222222222 L55: 3333333333 L56: 3333333333 L57: 3333333333 L58: 3333333333 L59: 3333333333 L60: 3333333333 L61: 3333333333 L62: 3333333333 L63: 3333333333 L64: 3333333333 L65: 3333333333 L66: 4444444444 L67: 4444444444 L68: 4444444444 L69: 4444444444 L70: 4444444444 L71: 4444444444 L72: 5555555555 L73: 5555555555 L74: 5555555555 L75: 5555555555 L76: 5555555555 L77: OOOOOOOOOO L78: OOOOOOOOOO L79: OOOOOOOOOO L80: OOOOOOOOOO L81: OOOOOOOOOO ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值