rev 信号类型
This commit is contained in:
@@ -78,7 +78,7 @@ public class ItemProtocol {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_running, "储料仓运行中", "DB1.B2.0"));
|
||||
list.add(new ItemDto(item_is_open, "储料仓开关", "DB1.W36"));
|
||||
list.add(new ItemDto(item_is_open, "储料仓开关", "DB1.B36.0"));
|
||||
list.add(new ItemDto(item_error, "储料仓故障", "DB1.W38"));
|
||||
list.add(new ItemDto(item_silo_weight, "储料仓重量", "DB1.D84"));
|
||||
list.add(new ItemDto(item_full_number, "储料仓总数量", "DB1.D164"));
|
||||
|
||||
@@ -122,7 +122,7 @@ public class AbstractOpcDeviceDriver extends AbstractDeviceDriver implements Opc
|
||||
*/
|
||||
public String replace(String message) {
|
||||
if (message.endsWith(",")) {
|
||||
return message.replace(message.charAt(message.length() - 1) + "", "!");
|
||||
return message.substring(0, message.length() - 1);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user