UNPKG

tlms_esd_srcgen

Version:

管道泄漏紧急关断系统 S7 PLC 代码自动生成

118 lines (113 loc) 6.68 kB
node_struct: - { name: node_ID, type: UInt, comment: 节点ID } - { name: comm_OK, type: Bool, comment: 用于维护节点通讯状态 } - { name: work_OK, type: Bool, comment: 用于维护节点工作状态 } - { name: pump_run, type: Bool, comment: 本节点有泵运行 } - { name: pump_change_F, type: Bool, comment: 本节点是否处于泵操作延时 } - { name: pump_run_1, type: Bool, comment: 1#泵运行状态 } - { name: pump_run_2, type: Bool, comment: 2#泵运行状态 } - { name: pump_run_3, type: Bool, comment: 3#泵运行状态 } - { name: pump_run_4, type: Bool, comment: 4#泵运行状态 } - { name: enable_pressure_alarm, type: Bool, comment: 压力允许报警 } - { name: enable_temperature_alarm, type: Bool, comment: 温度允许报警 } - { name: pressure_SD_F, type: Bool, comment: 压力允许联锁停输标志 } - { name: reserve, type: Bool, comment: 预留 } - { name: pressure_AH_F, type: Bool, comment: 压力上上限标志 } - { name: pressure_WH_F, type: Bool, comment: 压力上限标志 } - { name: pressure_WL_F, type: Bool, comment: 压力下限标志 } - { name: pressure_AL_F, type: Bool, comment: 压力下下限标志 } - { name: temperature, type: Real, comment: 温度值 } - { name: pressure, type: Real, comment: 压力值 } - { name: flowmeter, type: Real, comment: 流量值 } # 以下为附加状态,由于破坏原结构,暂不应用 # - { name: temperature_AH_F, type: Bool, comment: 温度上上限标志 } # - { name: temperature_WH_F, type: Bool, comment: 温度上限标志 } # - { name: temperature_WL_F, type: Bool, comment: 温度下限标志 } # - { name: temperature_AL_F, type: Bool, comment: 温度下下限标志 } - { name: response_code, type: UInt, comment: 执行应答 } node_para_struct: - { name: temperature_zero_raw, type: Int, comment: 模块原始零点值 } - { name: temperature_span_raw, type: Int, comment: 模块原始量程值 } - { name: temperature_underflow, type: Int, comment: 模块下溢出设置值 } - { name: temperature_overflow, type: Int, comment: 模块上溢出设置值 } - { name: temperature_zero, type: Real, comment: 零点值 } - { name: temperature_span, type: Real, comment: 量程值 } - { name: temperature_AH, type: Real, comment: 高高值 } - { name: temperature_WH, type: Real, comment: 高值 } - { name: temperature_WL, type: Real, comment: 低值 } - { name: temperature_AL, type: Real, comment: 低低值 } - { name: temperature_DZ, type: Real, comment: 温度比较死区 } - { name: temperature_FT, type: DInt, comment: 温度比较容错时间 } - { name: pressure_zero_raw, type: Int, comment: 模块原始零点值 } - { name: pressure_span_raw, type: Int, comment: 模块原始量程值 } - { name: pressure_underflow, type: Int, comment: 模块下溢出设置值 } - { name: pressure_overflow, type: Int, comment: 模块上溢出设置值 } - { name: pressure_zero, type: Real, comment: 零点值 } - { name: pressure_span, type: Real, comment: 量程值 } - { name: pressure_AH, type: Real, comment: 高高值 } - { name: pressure_WH, type: Real, comment: 高值 } - { name: pressure_WL, type: Real, comment: 低值 } - { name: pressure_AL, type: Real, comment: 低低值 } - { name: pressure_DZ, type: Real, comment: 压力比较死区 } - { name: pressure_FT, type: DInt, comment: 压力比较容错时间 } - { name: flow1, type: Real, comment: 流量1, mode: readonly } - { name: flow2, type: Real, comment: 流量2, mode: readonly } - { name: flow3, type: Real, comment: 流量3, mode: readonly } - { name: flow4, type: Real, comment: 流量4, mode: readonly } - { name: flow5, type: Real, comment: 流量5, mode: readonly } - { name: flow_smooth_factor, type: Real, comment: 流量平滑权值, mode: writeonly } - { name: equS1, type: DInt, comment: 流量1当量 } - { name: equS2, type: DInt, comment: 流量2当量 } - { name: equS3, type: DInt, comment: 流量3当量 } - { name: equS4, type: DInt, comment: 流量4当量 } - { name: equS5, type: DInt, comment: 流量5当量 } - { name: pump_change_delay, type: DInt, comment: 泵操作延时 } commands_struct: - { name: "node_ID", type: "UInt", comment: "节点ID" } - { name: "stop_pumps", type: "Bool", comment: "停泵命令", value: 1 } - { name: "cancel_stop", type: "Bool", comment: "取消停泵命令", value: 2 } - { name: "horn", type: "Bool", comment: "输出报警", value: 4 } - { name: "reset_horn", type: "Bool", comment: "停止报警", value: 8 } - { name: "enable_pressure_SD", type: "Bool", comment: "设置压力联锁停泵", value: 16 } - { name: "disable_pressure_SD", type: "Bool", comment: "取消压力联锁停泵", value: 32 } - { name: "read_paras", type: "Bool", comment: "读取所有参数", value: 64 } - { name: "write_paras", type: "Bool", comment: "写参数命令", value: 128 } - { name: "enable_pressure_alarm", type: "Bool", comment: "允许压力报警", value: 256 } - { name: "disable_pressure_alarm", type: "Bool", comment: "禁止压力报警", value: 512 } - { name: "enable_temperature_alarm", type: "Bool", comment: "允许温度报警", value: 1024 } - { name: "disable_temperature_alarm", type: "Bool", comment: "禁止温度报警", value: 2048 } - { name: "reset_CPU", type: "Bool", comment: "预留", value: 4096 } - { name: "reset_conn", type: "Bool", comment: "预留", value: 8192 } - { name: "executing", type: "Bool", comment: "命令执行中", value: 32768 } SECTION: flow_diff_AH: '50.0' flow_diff_AH_delay: 3000 flow_diff_WH: '20.0' flow_diff_WH_delay: 60000 action_time: 60000 NODE: pressure_SD: false # 默认压力联锁关闭 enable_pressure_alarm: true # 默认压力报警 pressure_zero_raw: 0 pressure_span_raw: 27648 pressure_underflow: -500 pressure_overflow: 28000 pressure_zero: "0.0" pressure_span: "4.0" pressure_DZ: 0.05 pressure_FT: 0 enable_temperature_alarm: false # 默认温度报警 temperature_zero_raw: 0 temperature_span_raw: 27648 temperature_underflow: -500 temperature_overflow: 28000 temperature_zero: "0.0" temperature_span: "100.0" temperature_DZ: 0.5 temperature_FT: 0 invalid_value_of_AI: '-100000.0' pumps: ~ # 为数组时,该节点可停泵,不定义则该节点无泵 # 如果定义了pump_stop_signal属性, # 该节点停泵信号或逻辑合并为一个输出,上方各泵的输出不再有效 # pump_stop_signal: %Q0.0 pump_change_delay: 180000