更新
This commit is contained in:
@@ -542,7 +542,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "手自动状态", "DB1.B0.0", Boolean.valueOf(true)));
|
||||
list.add(new ItemDto(item_matching_barcode, "开始条码匹配", "DB1.B1.0"));
|
||||
list.add(new ItemDto(item_move, "对接位有货", "DB1.B1.2"));
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_move, "光电信号", "DB1.W22"));
|
||||
list.add(new ItemDto(item_mode, "模式", "DB1.B0.6"));
|
||||
return list;
|
||||
|
||||
@@ -319,7 +319,7 @@ public class HailiangEngravingMachineDeviceDriver extends AbstractOpcDeviceDrive
|
||||
|
||||
synchronized (this){
|
||||
long now_feedTime = System.currentTimeMillis();
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 5000){
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 3000){
|
||||
heartbeat = this.itemProtocol.getItem_heartbeat();
|
||||
if (heartbeat == last_heartbeat){
|
||||
status_type = 01;
|
||||
|
||||
@@ -181,7 +181,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_status, "线体状态", "DB1.B0.0"));
|
||||
list.add(new ItemDto(item_is_open, "线体开机状态", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_is_running, "刻字机运行状态", "DB1.B0.3"));
|
||||
|
||||
@@ -263,7 +263,7 @@ public class HailiangPackerStationDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
|
||||
synchronized (this){
|
||||
long now_feedTime = System.currentTimeMillis();
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 5000){
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 3000){
|
||||
heartbeat = this.itemProtocol.getItem_heartbeat();
|
||||
if (heartbeat == last_heartbeat){
|
||||
status_type = 01;
|
||||
|
||||
@@ -136,7 +136,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_packer_ready, "包装机就绪", "DB1.B0.5"));
|
||||
list.add(new ItemDto(item_mode, "模式", "DB1.B0.6"));
|
||||
list.add(new ItemDto(item_move, "光电信号", "DB1.B1.0"));
|
||||
|
||||
@@ -353,7 +353,7 @@ public class HailiangSpecialDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
}
|
||||
synchronized (this){
|
||||
long now_feedTime = System.currentTimeMillis();
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 5000){
|
||||
if (now_feedTime - last_feedDeviceStatusTime >= 3000){
|
||||
heartbeat = this.itemProtocol.getHeartbeat();
|
||||
if (heartbeat == last_heartbeat){
|
||||
status_type = 01;
|
||||
|
||||
@@ -212,7 +212,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "手自动状态", "DB1.B1.7", Boolean.valueOf(true)));
|
||||
list.add(new ItemDto(item_is_open, "线体是否启动", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_running, "是否运行", "DB1.B0.6"));
|
||||
|
||||
@@ -86,7 +86,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "是否启动", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_status, "手自动状态", "DB1.B0.0", Boolean.valueOf(true)));
|
||||
list.add(new ItemDto(item_move, "光电开关信号(取反)", "DB1.B0.5"));
|
||||
|
||||
@@ -86,7 +86,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "是否启动", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_move, "光电开关信号", "DB1.B1.0"));
|
||||
list.add(new ItemDto(item_status, "手自动状态", "DB1.B0.0", Boolean.valueOf(true)));
|
||||
|
||||
@@ -77,7 +77,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "是否启动", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_status, "手自动状态", "DB1.B0.0", Boolean.valueOf(true)));
|
||||
list.add(new ItemDto(item_finish, "是否完成", "DB1.B0.7"));
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ItemProtocol {
|
||||
|
||||
public static List<ItemDto> getReadableItemDtos() {
|
||||
ArrayList list = new ArrayList();
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.D82"));
|
||||
list.add(new ItemDto(item_heartbeat, "心跳", "DB1.W82"));
|
||||
list.add(new ItemDto(item_mode, "是否启动", "DB1.B0.1"));
|
||||
list.add(new ItemDto(item_status, "手自动状态", "DB1.B0.0", Boolean.valueOf(true)));
|
||||
list.add(new ItemDto(item_running, "是否运行", "DB1.B0.6"));
|
||||
|
||||
Reference in New Issue
Block a user