/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50722
Source Host           : localhost:3306
Source Database       : ccs_hlt

Target Server Type    : MYSQL
Target Server Version : 50722
File Encoding         : 65001

Date: 2024-02-01 14:28:48
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for ccs_action
-- ----------------------------
DROP TABLE IF EXISTS `ccs_action`;
CREATE TABLE `ccs_action` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(20) NOT NULL COMMENT 'ip',
  `protocol_type` varchar(20) NOT NULL DEFAULT 'OPCUA' COMMENT '协议类型',
  `operate_type` varchar(50) NOT NULL COMMENT '操作类型',
  `operate_name` varchar(50) NOT NULL COMMENT '操作名称',
  `file_path` varchar(100) DEFAULT NULL COMMENT '文件路径',
  `plc_ip` varchar(50) DEFAULT NULL COMMENT '移动序号',
  `order_index` varchar(2) DEFAULT NULL COMMENT 'rfid序号',
  `description` varchar(100) DEFAULT NULL COMMENT '备注',
  UNIQUE KEY `pk_id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_action
-- ----------------------------
INSERT INTO `ccs_action` VALUES ('1', '192.168.1.1', 'S7_1500', 'RobotAction', '机器人取放动作', null, '', null, null);
INSERT INTO `ccs_action` VALUES ('2', '192.168.3.100', 'Mazaka', 'StartNCProgram', '马扎克机床1启动程序', '', '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('3', '192.168.3.101', 'Mazaka', 'StartNCProgram', '马扎克机床2启动程序', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('4', '192.168.3.102', 'Mazaka', 'StartNCProgram', '马扎克机床3启动程序', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('5', '192.168.3.103', 'Mazaka', 'StartNCProgram', '马扎克机床4启动程序', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('6', '192.168.3.104', 'Mazaka', 'StartNCProgram', '马扎克机床5启动程序', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('7', '192.168.1.1', 'S7_1500', 'StartCleanMachine', '机床1启动清洗', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('8', '192.168.1.1', 'S7_1500', 'StartCleanMachine', '机床2启动清洗', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('9', '192.168.1.1', 'S7_1500', 'StartCleanMachine', '机床3启动清洗', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('10', '192.168.1.1', 'S7_1500', 'StartCleanMachine', '机床4启动清洗', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('11', '192.168.1.1', 'S7_1500', 'StartCleanMachine', '机床5启动清洗', null, '192.168.3.15', null, null);
INSERT INTO `ccs_action` VALUES ('12', '192.168.1.1', 'S7_1500', 'ReadRFID', '读RFID', null, '', null, null);
INSERT INTO `ccs_action` VALUES ('13', '192.168.1.1', 'S7_1500', 'WriteRFID', '写RFID', null, null, null, null);

-- ----------------------------
-- Table structure for ccs_action_address
-- ----------------------------
DROP TABLE IF EXISTS `ccs_action_address`;
CREATE TABLE `ccs_action_address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `action_id` int(11) NOT NULL DEFAULT '0' COMMENT '动作id',
  `action_name` varchar(100) DEFAULT NULL COMMENT '动作名称',
  `type` varchar(20) NOT NULL COMMENT '类型：WRITE,CHECK,CALLBACK,CALLBACK_FAIL',
  `address` varchar(20) NOT NULL COMMENT '点位地址',
  `value` varchar(20) DEFAULT NULL COMMENT '点位值',
  `check_type` bit(1) NOT NULL DEFAULT b'1' COMMENT '校验类型，1等于 0表示不等于',
  `sort` int(11) NOT NULL DEFAULT '1' COMMENT '顺序',
  `description` varchar(100) DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_action_address
-- ----------------------------
INSERT INTO `ccs_action_address` VALUES ('1', '1', '机器人取放动作', 'WRITE', 'DB2.2', null, '', '1', 'taskType');
INSERT INTO `ccs_action_address` VALUES ('2', '1', '机器人取放动作', 'WRITE', 'DB2.4', '', '', '2', 'carryType');
INSERT INTO `ccs_action_address` VALUES ('3', '1', '机器人取放动作', 'WRITE', 'DB2.6', '', '', '3', 'location');
INSERT INTO `ccs_action_address` VALUES ('4', '1', '机器人取放动作', 'WRITE', 'DB2.8', null, '', '4', 'destLocation');
INSERT INTO `ccs_action_address` VALUES ('5', '1', '机器人取放动作', 'WRITE_SECOND', 'DB2.10', '1', '', '1', '运输任务执行');
INSERT INTO `ccs_action_address` VALUES ('6', '1', '机器人取放动作', 'WRITE_CHECK', 'DB2.2', null, '', '1', 'taskType');
INSERT INTO `ccs_action_address` VALUES ('7', '1', '机器人取放动作', 'WRITE_CHECK', 'DB2.4', '', '', '2', 'carryType');
INSERT INTO `ccs_action_address` VALUES ('8', '1', '机器人取放动作', 'WRITE_CHECK', 'DB2.6', '', '', '3', 'location');
INSERT INTO `ccs_action_address` VALUES ('9', '1', '机器人取放动作', 'WRITE_CHECK', 'DB2.8', null, '', '4', 'destLocation');
INSERT INTO `ccs_action_address` VALUES ('14', '1', '机器人取放动作', 'CALLBACK', 'DB1.16', null, '', '1', '运输任务执行结果:0：无任务 1:执行中 2：取料完成 4：放料完成 8：读码完成 16：写码完成 \r\n256:暂停 1024：中断 2048：取料故障 4096：放料故障');
INSERT INTO `ccs_action_address` VALUES ('15', '1', '机器人取放动作', 'CALLBACK_FAIL', 'DB1.16', '2048', '', '1', '运输任务执行结果:0：无任务 1:执行中 2：取料完成 4：放料完成 8：读码完成 16：写码完成 \r\n256:暂停 1024：中断 2048：取料故障 4096：放料故障');
INSERT INTO `ccs_action_address` VALUES ('16', '1', '机器人取放动作', 'CALLBACK_FAIL', 'DB1.16', '4096', '', '1', '运输任务执行结果:0：无任务 1:执行中 2：取料完成 4：放料完成 8：读码完成 16：写码完成 \r\n256:暂停 1024：中断 2048：取料故障 4096：放料故障');
INSERT INTO `ccs_action_address` VALUES ('20', '2', '马扎克机床1启动', 'WRITE', 'DB2.2064', '1', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('21', '2', '马扎克机床1启动', 'WRITE_CHECK', 'DB1.2068', '1', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('22', '2', '马扎克机床1启动', 'CALLBACK', 'DB1.2068', '0', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('30', '3', '马扎克机床2启动', 'WRITE', 'DB2.2066', '1', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('31', '3', '马扎克机床2启动', 'WRITE_CHECK', 'DB1.2070', '1', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('32', '3', '马扎克机床2启动', 'CALLBACK', 'DB1.2070', '0', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('40', '4', '马扎克机床3启动', 'WRITE', 'DB2.2068', '1', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('41', '4', '马扎克机床3启动', 'WRITE_CHECK', 'DB1.2072', '1', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('42', '4', '马扎克机床3启动', 'CALLBACK', 'DB1.2072', '0', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('50', '5', '马扎克机床4启动', 'WRITE', 'DB2.2070', '1', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('51', '5', '马扎克机床4启动', 'WRITE_CHECK', 'DB1.2074', '1', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('52', '5', '马扎克机床4启动', 'CALLBACK', 'DB1.2074', '0', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('60', '6', '马扎克机床5启动', 'WRITE', 'DB2.2072', '1', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('61', '6', '马扎克机床5启动', 'WRITE_CHECK', 'DB1.2076', '1', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('62', '6', '马扎克机床5启动', 'CALLBACK', 'DB1.2076', '0', '', '1', '0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀');
INSERT INTO `ccs_action_address` VALUES ('70', '7', '机床1启动清洗机', 'CALLBACK', 'DB1.2078', '0', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('80', '8', '机床2启动清洗机', 'CALLBACK', 'DB1.2080', '0', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('90', '9', '机床3启动清洗机', 'CALLBACK', 'DB1.2082', '0', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('100', '10', '机床4启动清洗机', 'CALLBACK', 'DB1.2084', '0', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('110', '11', '机床5启动清洗机', 'CALLBACK', 'DB1.2086', '0', '', '1', '');
INSERT INTO `ccs_action_address` VALUES ('120', '12', '读RFID', 'WRITE', 'DB2.2', '2048', '', '1', '任务类型');
INSERT INTO `ccs_action_address` VALUES ('121', '12', '读RFID', 'WRITE', 'DB2.12', '256', '', '2', '0：无任务 256：执行读操作 512：执行写操作');
INSERT INTO `ccs_action_address` VALUES ('123', '12', '读RFID', 'WRITE_CHECK', 'DB1.18', '256', '', '1', '0：未工作或故障 1：读写就绪\r\n256：读操作中 512：写操作中\r\n257：读操作完成 513：写操作完成\"\r\n');
INSERT INTO `ccs_action_address` VALUES ('124', '12', '读RFID', 'CALLBACK', 'DB1.18', '257', '', '1', '0：未工作或故障 1：读写就绪\r\n256：读操作中 512：写操作中\r\n257：读操作完成 513：写操作完成\"\r\n');
INSERT INTO `ccs_action_address` VALUES ('125', '12', '读RFID', 'CALLBACK', 'DB1.20', null, '', '1', '0：未工作或故障 1：读写就绪 256：读操作中 512：写操作中 257：读操作完成 513：写操作完成');
INSERT INTO `ccs_action_address` VALUES ('130', '13', '写RFID', 'WRITE', 'DB2.2', '2048', '', '1', '任务类型');
INSERT INTO `ccs_action_address` VALUES ('131', '13', '写RFID', 'WRITE', 'DB2.12', '512', '', '2', '0：无任务 256：执行读操作 512：执行写操作');
INSERT INTO `ccs_action_address` VALUES ('132', '13', '写RFID', 'WRITE', 'DB2.14', null, '', '3', '写入内容地址');
INSERT INTO `ccs_action_address` VALUES ('133', '13', '写RFID', 'WRITE_CHECK', 'DB1.18', '512', '', '1', '0：未工作或故障 1：读写就绪 256：读操作中 512：写操作中 257：读操作完成 513：写操作完成');
INSERT INTO `ccs_action_address` VALUES ('134', '13', '写RFID', 'CALLBACK', 'DB1.18', '513', '', '1', '0：未工作或故障 1：读写就绪 256：读操作中 512：写操作中 257：读操作完成 513：写操作完成');

-- ----------------------------
-- Table structure for ccs_device
-- ----------------------------
DROP TABLE IF EXISTS `ccs_device`;
CREATE TABLE `ccs_device` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(20) NOT NULL,
  `user_name` varchar(20) DEFAULT NULL,
  `port` int(11) DEFAULT NULL,
  `password` varchar(50) DEFAULT NULL,
  `server_url` varchar(50) DEFAULT NULL COMMENT '服务类型',
  `protocol_type` varchar(20) NOT NULL DEFAULT 'OPCUA' COMMENT '协议类型',
  `state` bit(1) NOT NULL DEFAULT b'1' COMMENT '1表示启用 0表示停用',
  `use_state` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否使用0:不使用 1:使用',
  `description` varchar(100) DEFAULT NULL,
  `disconnect_update_time` datetime DEFAULT NULL COMMENT '掉线上线更新时间',
  `offline_update_time` datetime DEFAULT NULL COMMENT '离线进线更新时间',
  `timeout_remind_duration` decimal(5,2) DEFAULT NULL COMMENT '超时提醒时长',
  UNIQUE KEY `pk_id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_device
-- ----------------------------
INSERT INTO `ccs_device` VALUES ('1', '192.168.1.1', null, '102', null, '192.168.1.1', 'S7_1500', '', '', 'PLC总控', '2023-05-12 20:13:05', '2023-04-24 09:36:04', '0.00');
INSERT INTO `ccs_device` VALUES ('2', '192.168.3.100', '', '50100', null, '192.168.3.100', 'Mazaka', '\0', '\0', '马扎克机床1', '2023-06-17 11:37:13', '2023-05-30 00:21:04', '0.00');
INSERT INTO `ccs_device` VALUES ('3', '192.168.3.101', '', '50100', '', '192.168.3.101', 'Mazaka', '\0', '\0', '马扎克机床2', '2023-06-17 12:06:50', '2023-06-17 12:06:56', '0.00');
INSERT INTO `ccs_device` VALUES ('4', '192.168.3.102', null, '50100', null, '192.168.3.102', 'Mazaka', '\0', '\0', '马扎克机床3', null, null, null);
INSERT INTO `ccs_device` VALUES ('5', '192.168.3.103', null, '50100', null, '192.168.3.102', 'Mazaka', '', '\0', '马扎克机床4', null, null, null);

-- ----------------------------
-- Table structure for ccs_dictionary
-- ----------------------------
DROP TABLE IF EXISTS `ccs_dictionary`;
CREATE TABLE `ccs_dictionary` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '类型',
  `code` varchar(100) COLLATE utf8mb4_bin NOT NULL COMMENT '编码',
  `name` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '名称',
  `dict_value` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '值',
  `description` varchar(255) COLLATE utf8mb4_bin DEFAULT '' COMMENT '描述',
  `state` bit(1) NOT NULL DEFAULT b'1' COMMENT '1表示启用 0表示停用',
  UNIQUE KEY `pk_id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典项';

-- ----------------------------
-- Records of ccs_dictionary
-- ----------------------------
INSERT INTO `ccs_dictionary` VALUES ('1', 'GetIntelligenceUnit', '1', '1', '1', '智能单元取物品条件', '');
INSERT INTO `ccs_dictionary` VALUES ('2', 'GetFlexibleWire', '2', '2', '1', '柔性线取物品', '');
INSERT INTO `ccs_dictionary` VALUES ('3', 'GetQualityCenter', '1', '1', '1', '质量中心取物品', '');
INSERT INTO `ccs_dictionary` VALUES ('4', 'SendIntelligenceUnit', '1', '1', '1', '智能单元送物品', '');
INSERT INTO `ccs_dictionary` VALUES ('5', 'SendFlexibleWire', '1', '1', '1', '柔性线送物品', '');
INSERT INTO `ccs_dictionary` VALUES ('6', 'SendQualityCenter', '1', '1', '1', '质量中心送物品', '');
INSERT INTO `ccs_dictionary` VALUES ('7', 'MoveRobotPosition', '1', '1', '1', '柔性线机器人移动物品', '');
INSERT INTO `ccs_dictionary` VALUES ('8', 'UploadFile', '1', '1', '1', '上传文件', '');
INSERT INTO `ccs_dictionary` VALUES ('9', 'StartNCProgram', '1', '1', '1', '启动机床程序', '');
INSERT INTO `ccs_dictionary` VALUES ('10', 'SendLinShift', '1', '1', '1', '粗偏写入', '');
INSERT INTO `ccs_dictionary` VALUES ('11', 'SendLinShiftFine', '1', '1', '1', '精偏写入', '');
INSERT INTO `ccs_dictionary` VALUES ('12', 'StartCleanMachine', '1', '1', '1', '启动清洗机', '');
INSERT INTO `ccs_dictionary` VALUES ('13', 'StartLabelMachine', '1', '1', '1', '启动打标机', '');
INSERT INTO `ccs_dictionary` VALUES ('14', 'StartCoordinateMeasuringMachine', '1', '1', '1', '启动三坐标', '');
INSERT INTO `ccs_dictionary` VALUES ('15', 'GetServoStacker', '1', '1', '1', '伺服舵机取物品', '');
INSERT INTO `ccs_dictionary` VALUES ('16', 'SendServoStacker', '1', '1', '1', '伺服舵机放物品', '');
INSERT INTO `ccs_dictionary` VALUES ('17', 'ReadRFID', '1', '1', '1', '读RFID', '');
INSERT INTO `ccs_dictionary` VALUES ('18', 'WriteRFID', '1', '1', '1', '写RFID', '');
INSERT INTO `ccs_dictionary` VALUES ('19', '192.168.11.130', '1', '1', '总控急停按钮被拍下', '保障中心总控急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('20', '192.168.11.130', '2', '2', '安全门1急停被拍下', '保障中心安全门1急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('21', '192.168.11.130', '3', '3', '安全门2急停被拍', '保障中心安全门2急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('22', '192.168.11.130', '4', '4', '装配平台1急停被拍下', '保障中心上下料站1急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('23', '192.168.11.130', '5', '5', '装配平台2急停被拍下', '保障中心上下料站2急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('24', '192.168.11.130', '6', '6', '装配平台3急停被拍下', '保障中心上下料站3急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('25', '192.168.11.130', '7', '7', '装配平台4急停被拍下', '保障中心上下料站4急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('26', '192.168.11.130', '8', '8', '装配平台5急停被拍下', '保障中心上下料站5急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('27', '192.168.11.130', '9', '9', '装配平台6急停被拍下', '保障中心上下料站6急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('28', '192.168.11.130', '10', '10', '安全门1被打开', '保障中心安全门1被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('29', '192.168.11.130', '11', '11', '安全门2被打开', '保障中心安全门2被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('30', '192.168.11.130', '12', '12', 'X轴伺服驱动器故障', '保障中心伺服舵机X轴伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('31', '192.168.11.130', '13', '13', 'Y轴伺服驱动器故障', '保障中心伺服舵机Y轴伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('32', '192.168.11.130', '14', '14', 'Z轴伺服驱动器故障', '保障中心伺服舵机Z轴伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('33', '192.168.11.130', '15', '15', 'B轴伺服驱动器故障', '保障中心伺服舵机B轴伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('34', '192.168.11.130', '16', '16', 'X轴负软限位报警', '保障中心伺服舵机X轴负软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('35', '192.168.11.130', '17', '17', 'X轴正软限位报警', '保障中心伺服舵机X轴正软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('36', '192.168.11.130', '18', '18', 'Y轴负软限位报警', '保障中心伺服舵机Y轴负软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('37', '192.168.11.130', '19', '19', 'Y轴正软限位报警', '保障中心伺服舵机Y轴正软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('38', '192.168.11.130', '20', '20', 'Z轴负软限位报警', '保障中心伺服舵机Z轴负软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('39', '192.168.11.130', '21', '21', 'Z轴正软限位报警', '保障中心伺服舵机Z轴正软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('40', '192.168.11.130', '22', '22', 'B轴负软限位报警', '保障中心伺服舵机B轴负软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('41', '192.168.11.130', '23', '23', 'B轴正软限位报警', '保障中心伺服舵机B轴正软限位报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('42', '192.168.11.130', '24', '24', '气源异常', '保障中心气源异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('43', '192.168.11.130', '25', '25', '润滑油位低', '保障中心伺服舵机润滑油位低，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('44', '192.168.11.130', '26', '26', '伺服使能未打开', '保障中心伺服舵机伺服使能未打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('45', '192.168.11.130', '27', '27', 'X轴零点丢失', '保障中心伺服舵机X轴零点丢失，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('46', '192.168.11.130', '28', '28', 'Y轴零点丢失', '保障中心伺服舵机Y轴零点丢失，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('47', '192.168.11.130', '29', '29', 'Z轴零点丢失', '保障中心伺服舵机Z轴零点丢失，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('48', '192.168.11.130', '30', '30', 'B轴零点丢失', '保障中心伺服舵机B轴零点丢失，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('49', '192.168.11.130', '41', '41', '三坐标按钮盒急停按钮被拍下', '保障中心三坐标按钮盒急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('50', '192.168.11.130', '42', '42', '三坐标电箱急停按钮被拍下', '保障中心三坐标电箱急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('51', '192.168.11.130', '43', '43', '三坐标气源报警', '保障中心三坐标气源报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('52', '192.168.11.130', '44', '44', '三坐标横行左移未到位', '保障中心三坐标横行左移未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('53', '192.168.11.130', '45', '45', '三坐标横行右移未到位', '保障中心三坐标横行右移未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('54', '192.168.11.130', '46', '46', '三坐标交互工位1顶缸上升未到位', '保障中心三坐标交互工位1顶缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('55', '192.168.11.130', '47', '47', '三坐标交互工位1顶缸下降未到位', '保障中心三坐标交互工位1顶缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('56', '192.168.11.130', '48', '48', '三坐标交互工位2顶缸上升未到位', '保障中心三坐标交互工位2顶缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('57', '192.168.11.130', '49', '49', '三坐标交互工位2顶缸下降未到位', '保障中心三坐标交互工位2顶缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('58', '192.168.11.130', '50', '50', '三坐标检测工位正向挡缸阻挡未到位', '保障中心三坐标检测工位正向挡缸阻挡未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('59', '192.168.11.130', '51', '51', '三坐标检测工位正向挡缸释放未到位', '保障中心三坐标检测工位正向挡缸释放未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('60', '192.168.11.130', '52', '52', '三坐标检测工位反向挡缸阻挡未到位', '保障中心三坐标检测工位反向挡缸阻挡未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('61', '192.168.11.130', '53', '53', '三坐标检测工位反向挡缸释放未到位', '保障中心三坐标检测工位反向挡缸释放未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('62', '192.168.11.130', '54', '54', '三坐标检测工位顶缸上升未到位', '保障中心三坐标检测工位顶缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('63', '192.168.11.130', '55', '55', '三坐标检测工位顶缸下降未到位', '保障中心三坐标检测工位顶缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('64', '192.168.3.15', '1', '1', '总控急停按钮被拍下', '框体线总控急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('65', '192.168.3.15', '2', '2', '安全围栏门1急停按钮被拍下', '框体线安全围栏门1急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('66', '192.168.3.15', '3', '3', '安全围栏门2急停按钮被拍下', '框体线安全围栏门2急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('67', '192.168.3.15', '4', '4', '机床维护门1急停按钮被拍下', '框体线机床维护门1急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('68', '192.168.3.15', '5', '5', '机床维护门2急停按钮被拍下', '框体线机床维护门2急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('69', '192.168.3.15', '6', '6', '机床维护门3急停按钮被拍下', '框体线机床维护门3急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('70', '192.168.3.15', '7', '7', '关节机器人急停被拍下', '框体线关节机器人急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('71', '192.168.3.15', '8', '8', '安全围栏门1被打开', '框体线安全围栏门1被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('72', '192.168.3.15', '9', '9', '安全围栏门2被打开', '框体线安全围栏门2被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('73', '192.168.3.15', '10', '10', '机床维护门1被打开', '框体线机床维护门1被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('74', '192.168.3.15', '11', '11', '机床维护门2被打开', '框体线机床维护门2被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('75', '192.168.3.15', '12', '12', '机床维护门3被打开', '框体线机床维护门3被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('76', '192.168.3.15', '13', '13', '关节机器人故障', '框体线机床关节机器人故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('77', '192.168.3.15', '14', '14', 'U地轨伺服驱动器故障', '框体线U地轨伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('78', '192.168.3.15', '15', '15', '地轨自动润滑油位低', '框体线地轨自动润滑油位低，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('79', '192.168.3.15', '16', '16', '液压站油位低', '框体线液压站油位低，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('80', '192.168.3.15', '17', '17', '机床维护门1升降缸上升未到位', '框体线机床维护门1升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('81', '192.168.3.15', '18', '18', '机床维护门1升降缸下降未到位', '框体线机床维护门1升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('82', '192.168.3.15', '19', '19', '机床维护门2升降缸上升未到位', '框体线机床维护门2升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('83', '192.168.3.15', '20', '20', '机床维护门2升降缸下降未到位', '框体线机床维护门2升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('84', '192.168.3.15', '21', '21', '机床维护门3升降缸上升未到位', '框体线机床维护门3升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('85', '192.168.3.15', '22', '22', '机床维护门3升降缸下降未到位', '框体线机床维护门3升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('86', '192.168.3.15', '23', '23', '液压站总压力异常', '框体线液压站总压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('87', '192.168.3.15', '24', '24', '液压站高温报警', '框体线液压站高温报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('88', '192.168.3.15', '25', '25', '液压站夹紧流量异常', '框体线液压站夹紧流量异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('89', '192.168.3.15', '26', '26', '联轴器夹紧压力异常', '框体线联轴器夹紧压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('90', '192.168.3.15', '27', '27', '联轴器松开压力异常', '框体线联轴器松开压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('91', '192.168.3.15', '28', '28', '放动作托盘检测异常', '框体线放动作托盘检测异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('92', '192.168.3.15', '29', '29', '地轨位置与工位号不匹配', '框体线地轨位置与工位号不匹配，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('93', '192.168.3.15', '1', '1', '总控急停按钮被拍下', '舱体线总控急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('94', '192.168.3.15', '2', '2', '安全围栏门1急停按钮被拍下', '舱体线安全围栏门1急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('95', '192.168.3.15', '3', '3', '安全围栏门2急停按钮被拍下', '舱体线安全围栏门2急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('96', '192.168.3.15', '4', '4', '机床维护门1急停按钮被拍下', '舱体线机床维护门1急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('97', '192.168.3.15', '5', '5', '机床维护门2急停按钮被拍下', '舱体线机床维护门2急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('98', '192.168.3.15', '6', '6', '机床维护门3急停按钮被拍下', '舱体线机床维护门3急停按钮被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('99', '192.168.3.15', '7', '7', '关节机器人急停被拍下', '舱体线关节机器人急停被拍下，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('100', '192.168.3.15', '8', '8', '安全围栏门1被打开', '舱体线安全围栏门1被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('101', '192.168.3.15', '9', '9', '安全围栏门2被打开', '舱体线安全围栏门2被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('102', '192.168.3.15', '10', '10', '机床维护门1被打开', '舱体线机床维护门1被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('103', '192.168.3.15', '11', '11', '机床维护门2被打开', '舱体线机床维护门2被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('104', '192.168.3.15', '12', '12', '机床维护门3被打开', '舱体线机床维护门3被打开，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('105', '192.168.3.15', '13', '13', '关节机器人故障', '舱体线机床关节机器人故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('106', '192.168.3.15', '14', '14', 'U地轨伺服驱动器故障', '舱体线U地轨伺服驱动器故障，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('107', '192.168.3.15', '15', '15', '地轨自动润滑油位低', '舱体线地轨自动润滑油位低，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('108', '192.168.3.15', '16', '16', '液压站油位低', '舱体线液压站油位低，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('109', '192.168.3.15', '17', '17', '机床维护门1升降缸上升未到位', '舱体线机床维护门1升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('110', '192.168.3.15', '18', '18', '机床维护门1升降缸下降未到位', '舱体线机床维护门1升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('111', '192.168.3.15', '19', '19', '机床维护门2升降缸上升未到位', '舱体线机床维护门2升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('112', '192.168.3.15', '20', '20', '机床维护门2升降缸下降未到位', '舱体线机床维护门2升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('113', '192.168.3.15', '21', '21', '机床维护门3升降缸上升未到位', '舱体线机床维护门3升降缸上升未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('114', '192.168.3.15', '22', '22', '机床维护门3升降缸下降未到位', '舱体线机床维护门3升降缸下降未到位，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('115', '192.168.3.15', '23', '23', '液压站总压力异常', '舱体线液压站总压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('116', '192.168.3.15', '24', '24', '液压站高温报警', '舱体线液压站高温报警，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('117', '192.168.3.15', '25', '25', '液压站夹紧流量异常', '舱体线液压站夹紧流量异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('118', '192.168.3.15', '26', '26', '联轴器夹紧压力异常', '舱体线联轴器夹紧压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('119', '192.168.3.15', '27', '27', '联轴器松开压力异常', '舱体线联轴器松开压力异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('120', '192.168.3.15', '28', '28', '放动作托盘检测异常', '舱体线放动作托盘检测异常，请人工检查', '');
INSERT INTO `ccs_dictionary` VALUES ('121', '192.168.3.15', '29', '29', '地轨位置与工位号不匹配', '舱体线地轨位置与工位号不匹配，请人工检查', '');

-- ----------------------------
-- Table structure for ccs_equipment_monitor
-- ----------------------------
DROP TABLE IF EXISTS `ccs_equipment_monitor`;
CREATE TABLE `ccs_equipment_monitor` (
  `id` bigint(20) NOT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `name` varchar(45) DEFAULT NULL,
  `serial_no` varchar(45) DEFAULT NULL COMMENT '序号',
  `type` varchar(45) DEFAULT NULL COMMENT '类型',
  `description` varchar(45) DEFAULT NULL COMMENT '描述',
  `address` varchar(45) DEFAULT NULL COMMENT '地址',
  `address2` varchar(45) DEFAULT NULL COMMENT '地址2',
  `source` varchar(45) DEFAULT NULL COMMENT '来源',
  `status` varchar(45) DEFAULT NULL COMMENT '状态',
  `line` varchar(45) DEFAULT NULL,
  `location` varchar(45) DEFAULT NULL,
  `control_status` varchar(45) DEFAULT NULL COMMENT '控制状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_equipment_monitor
-- ----------------------------
INSERT INTO `ccs_equipment_monitor` VALUES ('1496350084294508544', '192.168.3.15', '机械手', 'KT_jqr', 'S7_1500', null, 'DB200.4', 'DB200.50', null, '空闲', '框体线', '124', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496351733469675520', '192.168.3.15', '舱体_清洗机', 'CT_123', null, null, null, null, null, '在线', '舱体线', '123', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496352097438793728', '192.168.3.15', '机械手', 'CT_jqr', 'S7_1500', null, 'DB200.4', 'DB200.50', null, '空闲', '舱体线', '124', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496354590755389440', '192.168.3.15', '舱体_FP1000—五轴', 'CT_127', null, null, null, null, null, '在线', '舱体线', '127', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496354747433615360', '192.168.3.15', '舱体_DMU 125P-FD(不进线)', 'CT_128', '', null, null, null, null, '在线', '舱体线', '128', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496354880934117376', '192.168.3.15', '舱体_DMU 100P duoBLOCK-1', 'CT_129', null, null, null, null, null, '在线', '舱体线', '129', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496355074757099520', '192.168.3.15', '舱体_DMU 100P duoBLOCK-2', 'CT_130', null, null, null, null, null, '在线', '舱体线', '130', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496355233519894528', '192.168.3.15', '舱体_DMU 100P duoBLOCK-3', 'CT_131', null, null, null, null, null, '在线', '舱体线', '131', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496356621587054592', '192.168.3.15', '舱体_AGV接驳位1', 'CT_121', null, null, null, null, null, '在线', '舱体线', '121', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496356795835219968', '192.168.3.15', '舱体_AGV接驳位2', 'CT_122', null, null, null, null, null, '在线', '舱体线', '122', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496357467590754304', '192.168.3.15', '框体_哈默五轴C650U-1', 'KT_127', 'HEIDEHAIN', null, null, null, null, '离线', '框体线', '127', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496357660788785152', '192.168.3.15', '框体_哈默五轴C650U-2', 'KT_128', 'HEIDEHAIN', null, null, null, null, '离线', '框体线', '128', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496357927273889792', '192.168.11.188', '框体_哈默五轴C650U-3', 'KT_129', 'HEIDEHAIN', null, null, null, null, '离线', '框体线', '129', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358051194601472', '192.168.11.189', '框体_VMC1300B三轴-1', 'KT_130', 'FANUC', null, null, null, null, '空闲', '框体线', '130', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358206379655168', '192.168.11.190', '框体_VMC1300B三轴-2', 'KT_131', 'FANUC', null, null, null, null, '空闲', '框体线', '131', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358296792072192', '192.168.11.191', '框体_VMC1300B三轴-3', 'KT_132', 'FANUC', null, null, null, null, '空闲', '框体线', '132', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358417596416000', '192.168.11.192', '框体_VMC1300B三轴-4', 'KT_133', 'FANUC', null, null, null, null, '空闲', '框体线', '133', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358798653128704', '192.168.11.170', '框体_AGV接驳位1', 'KT_121', null, null, null, null, null, '在线', '框体线', '121', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496358957009076224', '192.168.11.170', '框体_AGV接驳位2', 'KT_122', null, null, null, null, null, '在线', '框体线', '122', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496359112462565376', '192.168.11.183', '框体_清洗机', 'KT_123', null, null, null, null, null, '在线', '框体线', '123', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496360341817262080', '192.168.11.130', '保障中心_伺服舵机', 'BZ_371', 'S7_1500', null, 'DB200.4', 'DB200.50', null, '空闲', '保障中心', '371', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496362306701885440', '192.168.11.130', '保障中心_AGV接驳位1', 'BZ_361', '', null, null, null, null, '在线', '保障中心', '361', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496362579914653696', '192.168.11.130', '保障中心_AGV接驳位2', 'BZ_362', '', null, null, null, null, '在线', '保障中心', '362', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496362719262015488', '192.168.11.130', '保障中心_AGV接驳位3', 'BZ_363', '', null, null, null, null, '在线', '保障中心', '363', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496363176541814784', '192.168.11.130', '保障中心_打标机', 'BZ_370', '', null, null, null, null, '在线', '保障中心', '370', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496363582865014784', '192.168.11.130', '保障中心_上下料站1', 'BZ_364', '', null, null, null, null, '在线', '保障中心', '364', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496364001796292608', '192.168.11.130', '保障中心_上下料站2', 'BZ_365', '', null, null, null, null, '在线', '保障中心', '365', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496364152329863168', '192.168.11.130', '保障中心_上下料站3', 'BZ_366', '', null, null, null, null, '在线', '保障中心', '366', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496364250765983744', '192.168.11.130', '保障中心_上下料站4', 'BZ_367', '', null, null, null, null, '在线', '保障中心', '367', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496364402251661312', '192.168.11.130', '保障中心_上下料站5', 'BZ_368', null, null, null, null, null, '在线', '保障中心', '368', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1496364549605949440', '192.168.11.130', '保障中心_上下料站6', 'BZ_369', null, null, null, null, null, '在线', '保障中心', '369', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1506364549605949440', '192.168.11.170', '地轨托盘交换台1', null, null, null, null, null, null, '在线', '框体线', '125', '系统监管');
INSERT INTO `ccs_equipment_monitor` VALUES ('1516364549605949440', '192.168.11.170', '地轨托盘交换台2', null, null, null, null, null, null, '在线', '框体线', '126', '系统监管');

-- ----------------------------
-- Table structure for ccs_tagvalue
-- ----------------------------
DROP TABLE IF EXISTS `ccs_tagvalue`;
CREATE TABLE `ccs_tagvalue` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `address` varchar(100) DEFAULT NULL,
  `tag_value` varchar(100) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `unit` varchar(45) DEFAULT NULL,
  `protocol_type` varchar(45) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `description` varchar(80) DEFAULT NULL,
  `component` varchar(45) DEFAULT NULL,
  `component_number` varchar(45) DEFAULT NULL,
  `device_id` varchar(45) DEFAULT NULL,
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `online_state` bit(1) DEFAULT NULL COMMENT '在线状态0：不在线1：在线',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_tagvalue
-- ----------------------------
INSERT INTO `ccs_tagvalue` VALUES ('1', 'DB1.0', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '心跳信号', null, null, '419901074472701952', '2024-02-01 11:42:13', '');
INSERT INTO `ccs_tagvalue` VALUES ('2', 'DB1.2', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '操作模式 ', '', '', '419901074472701952', '2024-02-01 11:18:08', '');
INSERT INTO `ccs_tagvalue` VALUES ('3', 'DB1.4', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '状态（0:无报警  256：提示  512：报警  768：报警与提示）', '', '', '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('4', 'DB1.6', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '回零(0:未回零  1：已回零)', null, null, '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('5', 'DB1.8', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '任务类型(1：运输  256：交换  512：移动至位置 1024：换工具 2048：读写RFID)', '', '', '419901074472701952', '2024-02-01 11:41:48', '');
INSERT INTO `ccs_tagvalue` VALUES ('6', 'DB1.10', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '搬运件类型 1：托盘类型1-单孔 2：托盘类型2-双孔 4：刀具类型 256:手', null, null, '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('7', 'DB1.12', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '源位置', null, null, '419901074472701952', '2024-02-01 11:41:48', '');
INSERT INTO `ccs_tagvalue` VALUES ('8', 'DB1.14', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '目标位置', null, null, '419901074472701952', '2024-02-01 11:41:48', '');
INSERT INTO `ccs_tagvalue` VALUES ('9', 'DB1.16', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '运输任务执行结果 ', null, null, '419901074472701952', '2024-02-01 11:41:48', '');
INSERT INTO `ccs_tagvalue` VALUES ('10', 'DB1.18', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '0：未工作或故障 1：读写就绪\r\n256：读操作中 512：写操作中\r\n257：读操作完成 513：写操作完成', null, null, '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('11', 'DB1.20', '                                                                                                    ', 'Array', 'NULL', 'S7_1500', '192.168.1.1', 'RFID内容', null, null, '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('12', 'DB1.2068', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '机床系统1状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-01-31 15:20:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('13', 'DB1.2070', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '机床系统2状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('14', 'DB1.2072', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '机床系统3状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('15', 'DB1.2074', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '机床系统4状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('16', 'DB1.2076', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '机床系统5状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('17', 'DB1.2078', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '清洗系统1状态0：空闲 1：加工 4：预请求 8：允许取料 16：允许放料 256：允许取刀 512：允许放刀', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('18', 'DB1.2080', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '清洗系统2状态', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('19', 'DB1.2082', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '清洗系统3状态', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('20', 'DB1.2084', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '清洗系统4状态', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('21', 'DB1.2086', '0', 'SHORT', 'NULL', 'S7_1500', '192.168.1.1', '清洗系统5状态', null, null, '419901074472701952', '2024-02-01 11:18:05', '');
INSERT INTO `ccs_tagvalue` VALUES ('70', 'DB300.10.5', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '加工完成信号（五轴2机床）', null, null, '419901074472701952', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('71', 'DB300.10.6', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '空闲信号（五轴2机床）', null, null, '419901074472701952', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('144', 'DB300.16.0', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '吹气申请上料（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('145', 'DB300.16.1', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '吹气申请下料（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('146', 'DB300.16.2', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '水洗申请上料（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('147', 'DB300.16.3', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '水洗申请下料（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('148', 'DB300.16.4', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '心跳信号（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:06', '');
INSERT INTO `ccs_tagvalue` VALUES ('149', 'DB300.16.5', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '故障状态（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:07', '');
INSERT INTO `ccs_tagvalue` VALUES ('150', 'DB300.16.6', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '吹气运行状态（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:07', '');
INSERT INTO `ccs_tagvalue` VALUES ('151', 'DB300.16.7', 'False', 'BOOL', 'NULL', 'S7_1500', '192.168.1.1', '水洗运行状态（清洗机）', null, null, '419900590890422272', '2024-01-31 15:20:07', '');

-- ----------------------------
-- Table structure for ccs_task_callback
-- ----------------------------
DROP TABLE IF EXISTS `ccs_task_callback`;
CREATE TABLE `ccs_task_callback` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(50) NOT NULL COMMENT 'IP',
  `port` varchar(10) DEFAULT NULL COMMENT '端口',
  `task_id` varchar(50) NOT NULL COMMENT '任务id',
  `task_node_id` varchar(50) DEFAULT NULL COMMENT '任务节点',
  `operate_name` varchar(50) DEFAULT NULL COMMENT '操作名称',
  `operate_type` varchar(50) DEFAULT NULL COMMENT '操作类型',
  `address` varchar(50) DEFAULT NULL COMMENT '点位',
  `address2` varchar(50) DEFAULT NULL COMMENT '点位2',
  `address3` varchar(50) DEFAULT NULL COMMENT '点位3',
  `callback_value` varchar(20) DEFAULT NULL COMMENT '目标值',
  `callback_value2` varchar(20) DEFAULT NULL COMMENT '目标值2',
  `callback_value3` varchar(20) DEFAULT NULL COMMENT '目标值3',
  `state` int(10) NOT NULL DEFAULT '1' COMMENT '1表示需回调 0表示已回调',
  `data` varchar(100) DEFAULT NULL COMMENT '参数',
  `fail_address` varchar(20) DEFAULT NULL,
  `fail_address2` varchar(20) DEFAULT NULL,
  `fail_address3` varchar(20) DEFAULT NULL,
  `success_reset_address` varchar(20) DEFAULT NULL,
  `success_reset_address2` varchar(20) DEFAULT NULL,
  `success_reset_value` varchar(20) DEFAULT NULL,
  `success_reset_value2` varchar(20) DEFAULT NULL,
  `callback_fail_value` varchar(20) DEFAULT NULL,
  `callback_fail_value2` varchar(20) DEFAULT NULL,
  `callback_fail_value3` varchar(100) DEFAULT NULL,
  `description` varchar(100) DEFAULT NULL,
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  UNIQUE KEY `pk_id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=157 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ccs_task_callback
-- ----------------------------

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `id` varchar(32) NOT NULL,
  `login_name` varchar(50) NOT NULL,
  `password` varchar(50) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', '22', '1', '1', '2022-06-12 15:34:50');
