CN106258005B - Programmable logic controller system and arithmetic element - Google Patents
Programmable logic controller system and arithmetic element Download PDFInfo
- Publication number
- CN106258005B CN106258005B CN201580004632.8A CN201580004632A CN106258005B CN 106258005 B CN106258005 B CN 106258005B CN 201580004632 A CN201580004632 A CN 201580004632A CN 106258005 B CN106258005 B CN 106258005B
- Authority
- CN
- China
- Prior art keywords
- analog
- unit
- digital
- conversion
- digital value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21137—Analog to digital conversion, ADC, DAC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种具有可编程逻辑控制器的可编程逻辑控制器系统以及运算单元,该可编程逻辑控制器具有:模拟输入单元,其将模拟值变换为数字值;以及模拟输出单元,其将数字值变换为模拟值。The present invention relates to a programmable logic controller system and an arithmetic unit having a programmable logic controller, the programmable logic controller having: an analog input unit which converts an analog value into a digital value; and an analog output unit which converts Digital values are converted to analog values.
背景技术Background technique
当前,模拟输出装置的输出信号的诊断如专利文献1公开的那样是在内部设置专用的电路而进行的。Currently, diagnosis of an output signal of an analog output device is performed by providing a dedicated circuit inside as disclosed in Patent Document 1.
专利文献1:日本特开2005-173848号公报Patent Document 1: Japanese Patent Laid-Open No. 2005-173848
发明内容Contents of the invention
但是,根据上述现有技术,由于需要专用的电路,因此存在单元单价及开发成本增大的问题。However, according to the above-mentioned prior art, since a dedicated circuit is required, there is a problem that unit price and development cost increase.
本发明就是鉴于上述情况而提出的,其目的在于,得到一种可编程逻辑控制器系统,该可编程逻辑控制器系统能够进行模拟数字变换处理的诊断或者数字模拟变换处理的诊断,而不必使用诊断专用的电路。The present invention is proposed in view of the above circumstances, and its object is to obtain a programmable logic controller system that can perform diagnosis of analog-to-digital conversion processing or diagnosis of digital-to-analog conversion processing without using diagnostic circuits.
为了解决上述课题,实现目的,本发明具有可编程逻辑控制器,该可编程逻辑控制器具有:模拟输出单元,其进行数字模拟变换;模拟输入单元,其具有对第1数字值进行存储的诊断用数字值存储部,该模拟输入单元进行模拟数字变换;以及运算单元,该运算单元具有:诊断用数字值获取部,其从模拟输入单元获取第1数字值;诊断用数字值设定处理部,其将从模拟输入单元获取到的第1数字值设定为模拟输出单元的数字模拟变换的对象;以及模拟数字变换诊断处理部,如果在利用模拟输出单元对第1数字值进行数字模拟变换后进一步利用模拟输入单元进行模拟数字变换而得到的第2数字值与第1数字值不一致,则该模拟数字变换诊断处理部诊断为模拟数字变换功能存在异常。另外,本发明具有切换装置,该切换装置对下述动作进行切换,即,是从外部设备将模拟信号输入至模拟输入单元、还是从模拟输出单元将对第1数字值进行数字模拟变换而得到的模拟值输入至模拟输入单元。In order to solve the above-mentioned problems and realize the purpose, the present invention has a programmable logic controller, and the programmable logic controller has: an analog output unit that performs digital-to-analog conversion; an analog input unit that has a diagnostic function for storing the first digital value With a digital value storage unit, the analog input unit performs analog-to-digital conversion; and an arithmetic unit, the arithmetic unit has: a digital value acquisition unit for diagnosis, which acquires a first digital value from the analog input unit; a digital value setting processing unit for diagnosis , which sets the first digital value acquired from the analog input unit as the object of the digital-to-analog conversion of the analog output unit; Then, if the second digital value obtained through analog-to-digital conversion by the analog input unit is inconsistent with the first digital value, the analog-to-digital conversion diagnostic processing unit diagnoses that the analog-to-digital conversion function is abnormal. In addition, the present invention has a switching device for switching whether an analog signal is input from an external device to the analog input unit or whether the first digital value is obtained by digital-to-analog conversion from the analog output unit. Input the analog value to the analog input unit.
发明的效果The effect of the invention
本发明所涉及的可编程逻辑控制器系统具有下述效果,即,能够进行模拟数字变换处理的诊断或者数字模拟变换处理的诊断,而不必使用诊断专用的电路。The programmable logic controller system according to the present invention has the effect that it is possible to perform diagnosis of analog-to-digital conversion processing or diagnosis of digital-to-analog conversion processing without using a dedicated circuit for diagnosis.
附图说明Description of drawings
图1是表示本发明的实施方式1所涉及的可编程逻辑控制器系统的结构的图。FIG. 1 is a diagram showing the configuration of a programmable logic controller system according to Embodiment 1 of the present invention.
图2是表示实施方式1所涉及的可编程逻辑控制器的运算单元的结构的图。FIG. 2 is a diagram showing a configuration of an arithmetic unit of the programmable logic controller according to Embodiment 1. FIG.
图3是表示实施方式1所涉及的可编程逻辑控制器的运算单元的硬件结构的图。FIG. 3 is a diagram showing a hardware configuration of an arithmetic unit of the programmable logic controller according to Embodiment 1. FIG.
图4是表示实施方式1所涉及的可编程逻辑控制器的模拟输入单元的结构的图。FIG. 4 is a diagram showing the configuration of an analog input unit of the programmable logic controller according to Embodiment 1. FIG.
图5是表示实施方式1所涉及的可编程逻辑控制器的模拟输入单元的硬件结构的图。5 is a diagram showing a hardware configuration of an analog input unit of the programmable logic controller according to the first embodiment.
图6是表示实施方式1所涉及的可编程逻辑控制器的模拟输出单元的结构的图。FIG. 6 is a diagram showing the configuration of an analog output unit of the programmable logic controller according to Embodiment 1. FIG.
图7是表示实施方式1所涉及的可编程逻辑控制器的模拟输出单元的硬件结构的图。7 is a diagram showing a hardware configuration of an analog output unit of the programmable logic controller according to the first embodiment.
图8是表示实施方式1所涉及的可编程逻辑控制器的输出单元的结构的图。FIG. 8 is a diagram showing the configuration of an output unit of the programmable logic controller according to Embodiment 1. FIG.
图9是表示实施方式1所涉及的可编程逻辑控制器的输出单元的硬件结构的图。9 is a diagram showing a hardware configuration of an output unit of the programmable logic controller according to the first embodiment.
图10是表示实施方式1所涉及的可编程逻辑控制器的模拟数字变换诊断处理的流程的流程图。10 is a flowchart showing the flow of analog-to-digital conversion diagnosis processing of the programmable logic controller according to the first embodiment.
图11是表示实施方式1所涉及的可编程逻辑控制器系统的结构的变形例的图。FIG. 11 is a diagram showing a modified example of the configuration of the programmable logic controller system according to the first embodiment.
图12是表示本发明的实施方式2所涉及的可编程逻辑控制器系统的结构的图。FIG. 12 is a diagram showing a configuration of a programmable logic controller system according to Embodiment 2 of the present invention.
图13是表示本发明的实施方式3所涉及的可编程逻辑控制器系统的结构的图。FIG. 13 is a diagram showing a configuration of a programmable logic controller system according to Embodiment 3 of the present invention.
图14是表示实施方式3所涉及的可编程逻辑控制器的运算单元的结构的图。FIG. 14 is a diagram showing a configuration of an arithmetic unit of a programmable logic controller according to Embodiment 3. FIG.
图15是表示实施方式3所涉及的可编程逻辑控制器的模拟输入单元的结构的图。FIG. 15 is a diagram showing a configuration of an analog input unit of a programmable logic controller according to Embodiment 3. FIG.
图16是表示实施方式3所涉及的可编程逻辑控制器的模拟输入单元的硬件结构的图。FIG. 16 is a diagram showing a hardware configuration of an analog input unit of a programmable logic controller according to Embodiment 3. FIG.
图17是表示实施方式3所涉及的可编程逻辑控制器的模拟输出单元的结构的图。FIG. 17 is a diagram showing a configuration of an analog output unit of a programmable logic controller according to Embodiment 3. FIG.
图18是表示实施方式3所涉及的可编程逻辑控制器的模拟输出单元的硬件结构的图。FIG. 18 is a diagram showing a hardware configuration of an analog output unit of a programmable logic controller according to Embodiment 3. FIG.
图19是表示实施方式3所涉及的可编程逻辑控制器的数字模拟变换诊断处理的流程的流程图。19 is a flowchart showing the flow of digital-to-analog conversion diagnostic processing in the programmable logic controller according to the third embodiment.
图20是表示本发明的实施方式4所涉及的可编程逻辑控制器系统的结构的图。20 is a diagram showing the configuration of a programmable logic controller system according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面,基于附图,对本发明的实施方式所涉及的可编程逻辑控制器系统及运算单元进行详细说明。此外,本发明不限定于本实施方式。Hereinafter, the programmable logic controller system and the arithmetic unit according to the embodiment of the present invention will be described in detail based on the drawings. In addition, this invention is not limited to this embodiment.
实施方式1Embodiment 1
图1是表示本发明的实施方式1所涉及的可编程逻辑控制器系统的结构的图。可编程逻辑控制器系统100具有:可编程逻辑控制器10,其通过执行控制程序,从而对从外部设备30输入的模拟信号进行处理;以及继电器20,其从外部设备30将模拟信号输入至可编程逻辑控制器10。FIG. 1 is a diagram showing the configuration of a programmable logic controller system according to Embodiment 1 of the present invention. The programmable logic controller system 100 has: the programmable logic controller 10, which processes the analog signal input from the external device 30 by executing the control program; and the relay 20, which inputs the analog signal from the external device 30 to the programmable logic controller Program logic controller 10.
可编程逻辑控制器10具有:模拟输入单元11,其通过模拟数字变换,将以模拟信号输入的模拟值变换为数字值;模拟输出单元12,其通过数字模拟变换,将以数字信号输入的数字值变换为模拟值;运算单元13,其执行控制程序;输出单元14,其将控制信号输出至继电器20,该控制信号对是从外部设备30将模拟信号输入至模拟输入单元11、还是从模拟输出单元12输入进行切换;电源单元15,其将电力供给至各单元;以及基座单元16,其将各单元彼此连接。输出单元14和继电器20构成切换装置,该切换装置对下述动作进行切换,即,是从外部设备30将模拟信号输入至模拟输入单元11、还是从模拟输出单元12将对后述的第1数字值进行数字模拟变换而得到的模拟值输入至模拟输入单元11。The programmable logic controller 10 has: an analog input unit 11, which converts an analog value input with an analog signal into a digital value through analog-to-digital conversion; an analog output unit 12, which converts a digital value input with a digital signal through digital-to-analog conversion. The value is converted into an analog value; the arithmetic unit 13, which executes the control program; the output unit 14, which outputs the control signal to the relay 20, and the control signal is related to whether the analog signal is input from the external device 30 to the analog input unit 11, or from the analog The output unit 12 inputs for switching; the power supply unit 15 supplies electric power to each unit; and the base unit 16 connects each unit to each other. The output unit 14 and the relay 20 constitute a switching device that switches whether an analog signal is input from the external device 30 to the analog input unit 11 or whether the analog signal is input from the analog output unit 12 to a first signal described later. An analog value obtained by digital-to-analog conversion of the digital value is input to the analog input unit 11 .
图2是表示实施方式1所涉及的可编程逻辑控制器的运算单元的结构的图。运算单元13具有:模拟数字变换诊断处理部131,其对模拟数字变换功能进行诊断;诊断用数字值获取部132,其从模拟输入单元11获取用于模拟数字变换诊断的第1数字值、即诊断用数字值;诊断用数字值设定处理部133,其将用于模拟数字变换诊断的数字值设定为模拟输出单元12的数字模拟变换的对象;以及继电器控制处理部134,其使输出单元14进行继电器20的切换。继电器控制处理部134构成对切换装置进行控制的切换控制部。FIG. 2 is a diagram showing a configuration of an arithmetic unit of the programmable logic controller according to Embodiment 1. FIG. The arithmetic unit 13 has: an analog-to-digital conversion diagnostic processing unit 131 for diagnosing the analog-to-digital conversion function; Diagnosis digital value; Diagnosis digital value setting processing part 133, which sets the digital value used for analog-to-digital conversion diagnosis as the object of digital-analog conversion of the analog output unit 12; and relay control processing part 134, which makes the output Unit 14 performs switching of relay 20 . The relay control processing unit 134 constitutes a switching control unit that controls the switching device.
继电器20将从外部设备30输出的模拟信号和从模拟输出单元12输出的模拟信号择一地输入至模拟输入单元11。即,通过由继电器控制处理部134将指令发送至输出单元14,从而从输出单元14将控制信号输出至继电器20,对下述动作进行切换,即,是将从外部设备30输出的模拟信号输入至模拟输入单元11、还是将从模拟输出单元12输出的模拟信号输入至模拟输入单元11。The relay 20 alternatively inputs the analog signal output from the external device 30 and the analog signal output from the analog output unit 12 to the analog input unit 11 . That is, by sending a command to the output unit 14 from the relay control processing unit 134, a control signal is output from the output unit 14 to the relay 20, and the operation of inputting an analog signal output from the external device 30 is switched. to the analog input unit 11 , or input the analog signal output from the analog output unit 12 to the analog input unit 11 .
图3是表示实施方式1所涉及的可编程逻辑控制器的运算单元的硬件结构的图。运算单元13具有:运算装置135,其执行梯形图程序或者功能模块;存储器136,其被运算装置135用作工作区域;以及存储装置137,其储存程序。能够应用CPU(Central ProcessingUnit)作为运算装置135。能够应用RAM(Random Access Memory)作为存储器136。能够应用非易失性半导体存储器作为存储装置137。图2所示的模拟数字变换诊断处理部131、诊断用数字值获取部132、诊断用数字值设定处理部133以及继电器控制处理部134是通过由运算装置135将存储器136用作工作区域、执行软件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。FIG. 3 is a diagram showing a hardware configuration of an arithmetic unit of the programmable logic controller according to Embodiment 1. FIG. The arithmetic unit 13 has: an arithmetic unit 135 which executes a ladder program or a function module; a memory 136 which is used as a work area by the arithmetic unit 135; and a storage unit 137 which stores the program. A CPU (Central Processing Unit) can be applied as the computing device 135 . A RAM (Random Access Memory) can be used as the memory 136 . A nonvolatile semiconductor memory can be applied as the storage device 137 . The analog-to-digital conversion diagnostic processing unit 131, diagnostic digital value acquisition unit 132, diagnostic digital value setting processing unit 133, and relay control processing unit 134 shown in FIG. implemented by executing software. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories.
图4是表示实施方式1所涉及的可编程逻辑控制器的模拟输入单元的结构的图。模拟输入单元11具有:模拟数字变换部111,其将模拟值变换为数字值;诊断用数字值存储部112,其存储用于模拟数字变换诊断的数字值、即诊断用数字值;诊断异常显示部113,其在模拟数字变换功能的诊断结果为异常的情况下对异常进行显示;以及诊断用数字值生成部118,其基于模拟输入单元11的输入范围而生成诊断用数字值。此处的所谓输入范围,是指输入至模拟输入单元11的模拟信号所能够取的值。此外,也可以利用与模拟输入单元11不同的装置来生成诊断用数字值,并存储于诊断用数字值存储部112。如果利用与模拟输入单元11不同的装置来生成诊断用数字值,则能够简化模拟输入单元11的结构。FIG. 4 is a diagram showing the configuration of an analog input unit of the programmable logic controller according to Embodiment 1. FIG. The analog input unit 11 has: an analog-to-digital conversion unit 111 that converts an analog value into a digital value; a diagnostic digital value storage unit 112 that stores a digital value for analog-to-digital conversion diagnosis, that is, a diagnostic digital value; and a diagnostic abnormality display. A unit 113 that displays an abnormality when the diagnosis result of the analog-digital conversion function is abnormal; and a diagnostic digital value generation unit 118 that generates a diagnostic digital value based on the input range of the analog input unit 11 . The so-called input range here refers to the values that the analog signal input to the analog input unit 11 can take. In addition, a diagnostic digital value may be generated by a device different from the analog input unit 11 and stored in the diagnostic digital value storage unit 112 . The configuration of the analog input unit 11 can be simplified if a digital value for diagnosis is generated by a device different from the analog input unit 11 .
图5是表示实施方式1所涉及的可编程逻辑控制器的模拟输入单元的硬件结构的图。模拟输入单元11具有:运算装置114,其执行固件;存储器115,其被运算装置114用作工作区域;存储装置116,其储存固件;以及显示装置117,其对信息进行显示。能够应用CPU作为运算装置114。能够应用RAM作为存储器115。能够应用非易失性半导体存储器作为存储装置116。能够应用LED(Light Emitting Diode)灯作为显示装置117。图4所示的模拟数字变换部111及诊断用数字值生成部118是通过由运算装置114将存储器115用作工作区域、执行固件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。另外,图4所示的诊断异常显示部113是通过由运算装置114对显示装置117的点亮样式(pattern)进行控制而实现的。5 is a diagram showing a hardware configuration of an analog input unit of the programmable logic controller according to the first embodiment. The analog input unit 11 has: a computing device 114 that executes firmware; a memory 115 that is used as a work area by the computing device 114; a storage device 116 that stores firmware; and a display device 117 that displays information. A CPU can be applied as the arithmetic unit 114 . A RAM can be applied as the memory 115 . A nonvolatile semiconductor memory can be applied as the storage device 116 . An LED (Light Emitting Diode) lamp can be applied as the display device 117 . The analog-to-digital conversion unit 111 and the diagnostic digital value generation unit 118 shown in FIG. 4 are realized by the arithmetic unit 114 executing firmware using the memory 115 as a work area. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories. In addition, the diagnostic abnormality display unit 113 shown in FIG. 4 is realized by controlling the lighting pattern of the display device 117 by the computing device 114 .
图6是表示实施方式1所涉及的可编程逻辑控制器的模拟输出单元的结构的图。模拟输出单元12具有将数字值变换为模拟值的数字模拟变换部121。FIG. 6 is a diagram showing the configuration of an analog output unit of the programmable logic controller according to Embodiment 1. FIG. The analog output unit 12 has a digital-to-analog conversion unit 121 that converts digital values into analog values.
图7是表示实施方式1所涉及的可编程逻辑控制器的模拟输出单元的硬件结构的图。模拟输出单元12具有:运算装置122,其执行固件;存储器123,其被运算装置122用作工作区域;以及存储装置124,其储存固件。能够应用CPU作为运算装置122。能够应用RAM作为存储器123。能够应用非易失性半导体存储器作为存储装置124。图6所示的数字模拟变换部121是通过由运算装置122将存储器123用作工作区域、执行固件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。7 is a diagram showing a hardware configuration of an analog output unit of the programmable logic controller according to the first embodiment. The analog output unit 12 has: an arithmetic device 122 that executes firmware; a memory 123 that is used by the arithmetic device 122 as a work area; and a storage device 124 that stores firmware. A CPU can be applied as the computing device 122 . A RAM can be applied as the memory 123 . A nonvolatile semiconductor memory can be applied as the storage device 124 . The digital-to-analog conversion unit 121 shown in FIG. 6 is realized by the arithmetic unit 122 executing firmware using the memory 123 as a work area. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories.
图8是表示实施方式1所涉及的可编程逻辑控制器的输出单元的结构的图。输出单元14具有将控制信号输出至继电器20的控制信号输出部141。FIG. 8 is a diagram showing the configuration of an output unit of the programmable logic controller according to Embodiment 1. FIG. The output unit 14 has a control signal output unit 141 that outputs a control signal to the relay 20 .
图9是表示实施方式1所涉及的可编程逻辑控制器的输出单元的硬件结构的图。输出单元14具有:运算装置142,其执行固件;存储器143,其被运算装置142用作工作区域;以及存储装置144,其储存固件。能够应用CPU作为运算装置142。能够应用RAM作为存储器143。能够应用非易失性半导体存储器作为存储装置144。图8所示的控制信号输出部141是通过由运算装置142将存储器143用作工作区域、执行固件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。9 is a diagram showing a hardware configuration of an output unit of the programmable logic controller according to the first embodiment. The output unit 14 has: an arithmetic device 142 that executes firmware; a memory 143 that is used by the arithmetic device 142 as a work area; and a storage device 144 that stores firmware. A CPU can be applied as the computing device 142 . A RAM can be applied as the memory 143 . A nonvolatile semiconductor memory can be applied as the storage device 144 . The control signal output unit 141 shown in FIG. 8 is realized by the arithmetic unit 142 executing firmware using the memory 143 as a work area. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories.
图10是表示实施方式1所涉及的可编程逻辑控制器的模拟数字变换诊断处理的流程的流程图。在步骤S101中,继电器控制处理部134将指令发送至输出单元14而使控制信号输出部141向继电器20输出控制信号,使模拟输出单元12的输出向模拟输入单元11输入。10 is a flowchart showing the flow of analog-to-digital conversion diagnosis processing of the programmable logic controller according to the first embodiment. In step S101 , the relay control processing unit 134 sends a command to the output unit 14 so that the control signal output unit 141 outputs a control signal to the relay 20 and inputs the output of the analog output unit 12 to the analog input unit 11 .
在步骤S102中,诊断用数字值获取部132从模拟输入单元11获取诊断用数字值存储部112所存储的诊断用数字值。In step S102 , the diagnostic digital value acquisition unit 132 acquires the diagnostic digital value stored in the diagnostic digital value storage unit 112 from the analog input unit 11 .
在步骤S103中,诊断用数字值设定处理部133将诊断用数字值向模拟输出单元12设定。由于在步骤S101中以使模拟输出单元12的输出向模拟输入单元11输入的方式对继电器20进行控制,因此将对诊断用数字值进行变换而得到的模拟值从模拟输出单元12输入至模拟输入单元11,由模拟数字变换部111变换为数字值。即,在步骤S103中,通过在由模拟输出单元12对第1数字值、即诊断用数字值进行数字模拟变换后进一步由模拟输入单元11进行模拟数字变换,从而生成第2数字值。In step S103 , the diagnostic digital value setting processing unit 133 sets the diagnostic digital value to the analog output unit 12 . Since the relay 20 is controlled so that the output of the analog output unit 12 is input to the analog input unit 11 in step S101, the analog value obtained by converting the digital value for diagnosis is input from the analog output unit 12 to the analog input unit. The unit 11 is converted into a digital value by an analog-to-digital conversion unit 111 . That is, in step S103 , the second digital value is generated by performing analog-to-digital conversion by the analog input unit 11 after the first digital value, that is, the digital value for diagnosis, is converted by the analog output unit 12 .
在步骤S104中,模拟数字变换诊断处理部131从模拟输入单元11获取由模拟数字变换部111进行变换而得到的数字值、即第2数字值。In step S104 , the analog-to-digital conversion diagnostic processing unit 131 acquires a second digital value, which is a digital value converted by the analog-to-digital conversion unit 111 , from the analog input unit 11 .
在步骤S105中,模拟数字变换诊断处理部131对在步骤S104中从模拟输入单元11获取到的第2数字值、和在步骤S102中从模拟输入单元11获取到的诊断用数字值即第1数字值进行比较。如果二者一致,则步骤S105为Yes,结束模拟数字变换诊断处理。In step S105, the analog-to-digital conversion diagnostic processing unit 131 compares the second digital value acquired from the analog input unit 11 in step S104 and the first diagnostic digital value acquired from the analog input unit 11 in step S102. Numeric values to compare. If the two are consistent, step S105 is Yes, and the analog-to-digital conversion diagnosis process ends.
另一方面,如果在步骤S104中从模拟输入单元11获取到的数字值、和在步骤S102中从模拟输入单元11获取到的诊断用数字值不一致,则步骤S105为No,在步骤S106中,模拟数字变换诊断处理部131将诊断异常通知给模拟输入单元11。如果被通知了诊断异常,则诊断异常显示部113在显示装置117对诊断异常的发生进行显示。通过利用模拟数字变换处理的诊断所独有的点亮样式或者点亮颜色对诊断异常进行显示,从而即使是由模拟输入单元11的显示装置117对诊断异常的发生进行通知,用户也能够识别出原因可能存在于模拟输出单元12侧。On the other hand, if the digital value obtained from the analog input unit 11 in step S104 is inconsistent with the digital value for diagnosis obtained from the analog input unit 11 in step S102, then the answer is No in step S105, and in step S106, The analog-to-digital conversion diagnostic processing unit 131 notifies the analog input unit 11 of a diagnostic abnormality. When a diagnostic abnormality is notified, the diagnostic abnormality display unit 113 displays the occurrence of the diagnostic abnormality on the display device 117 . By displaying the diagnosis abnormality with a lighting pattern or lighting color unique to the diagnosis of the analog-to-digital conversion process, even if the occurrence of the diagnosis abnormality is notified by the display device 117 of the analog input unit 11, the user can recognize it. The cause may exist on the analog output unit 12 side.
此外,在上述的说明中,将模拟输入单元11、模拟输出单元12及输出单元14被安装于与运算单元13相同的基座单元16的结构的可编程逻辑控制器10用作例子,但也可以是模拟输入单元、模拟输出单元及输出单元被安装于与运算单元不同的基座单元的结构。图11是表示实施方式1所涉及的可编程逻辑控制器系统的结构的变形例的图。在与运算单元13’相同的基座单元16a安装有网络单元17。电力被从电源单元15a供给至运算单元13’及网络单元17。模拟输入单元11’、模拟输出单元12’及输出单元14’被安装于与运算单元13’不同的基座单元16b。网络单元18被安装于基座单元16b,在该基座单元16b安装了模拟输入单元11’、模拟输出单元12’以及输出单元14’。电力被从电源单元15b供给至模拟输入单元11’、模拟输出单元12’、输出单元14’及网络单元18。网络单元17和网络单元18通过集线器19连接。因此,模拟输入单元11’、模拟输出单元12’及输出单元14’能够经由网络单元18、集线器19及网络单元17与运算单元13’进行通信。In addition, in the above description, the programmable logic controller 10 having the structure in which the analog input unit 11, the analog output unit 12, and the output unit 14 are mounted on the same base unit 16 as the arithmetic unit 13 was used as an example, but The analog input unit, the analog output unit, and the output unit may be mounted on a base unit different from the arithmetic unit. FIG. 11 is a diagram showing a modified example of the configuration of the programmable logic controller system according to the first embodiment. The network unit 17 is mounted on the same base unit 16a as the computing unit 13'. Electric power is supplied to the computing unit 13' and the network unit 17 from the power supply unit 15a. The analog input unit 11', the analog output unit 12', and the output unit 14' are mounted on a base unit 16b different from the arithmetic unit 13'. The network unit 18 is mounted on the base unit 16b, and the analog input unit 11', the analog output unit 12', and the output unit 14' are mounted on the base unit 16b. Electric power is supplied to the analog input unit 11', the analog output unit 12', the output unit 14', and the network unit 18 from the power supply unit 15b. The network unit 17 and the network unit 18 are connected through a hub 19 . Therefore, the analog input unit 11', the analog output unit 12' and the output unit 14' can communicate with the computing unit 13' via the network unit 18, the hub 19 and the network unit 17.
对于实施方式1所涉及的可编程逻辑控制器的变形例中的模拟数字变换诊断处理,除经由网络单元18、集线器19及网络单元17进行模拟输入单元11’、模拟输出单元12’及输出单元14’与运算单元13’之间的通信以外,与使用图10的流程图说明的一样。In the analog-to-digital conversion diagnostic process in the modified example of the programmable logic controller according to Embodiment 1, the analog input unit 11 ′, the analog output unit 12 ′, and the output unit Except for the communication between 14' and the arithmetic unit 13', it is the same as that described using the flowchart of FIG. 10 .
通过经由网络单元18、集线器19及网络单元17进行模拟输入单元11’、模拟输出单元12’及输出单元14’与运算单元13’之间的通信,从而可编程逻辑控制器10’的布局的自由度变高。By performing communication between the analog input unit 11', the analog output unit 12' and the output unit 14' and the operation unit 13' through the network unit 18, the hub 19, and the network unit 17, the layout of the programmable logic controller 10' The degree of freedom becomes higher.
在实施方式1所涉及的可编程逻辑控制器系统中,由于如果利用数字模拟变换部121对用于模拟数字变换诊断的数字值进行变换、然后利用模拟数字变换部111进行变换而得到的数字值,与用于模拟数字变换诊断的数字值不一致,则模拟数字变换诊断处理部131诊断为模拟数字变换功能存在异常,因此能够使用不具有用于诊断的专用电路的模拟输入单元11、11’及模拟输出单元12、12’进行模拟数字变换处理的诊断。In the programmable logic controller system according to Embodiment 1, the digital value obtained by converting the digital value used for the analog-to-digital conversion diagnosis by the digital-to-analog conversion unit 121 and then converting it by the analog-to-digital conversion unit 111 , is inconsistent with the digital value used for the diagnosis of analog-to-digital conversion, the analog-to-digital conversion diagnosis processing unit 131 diagnoses that there is an abnormality in the analog-to-digital conversion function, so it is possible to use the analog input units 11, 11' and The analog output unit 12, 12' performs diagnosis of the analog-to-digital conversion process.
因此,实施方式1所涉及的可编程逻辑控制器系统不需要专用的诊断电路,通过对模拟输入单元11、11’和模拟输出单元12、12’进行组合、利用程序梯形图对诊断用数字值进行对照,从而进行诊断。由此,即使是不具有专用诊断电路的模拟输入单元11、11’或者模拟输出单元12、12’,仅安装固件即可进行诊断。另外,能够抑制单元单价以及开发成本。并且,由于利用运算单元13、13’进行切换装置的控制,因此不需要使模拟输入单元11、11’及模拟输出单元12、12’具有切换装置的控制功能。Therefore, the programmable logic controller system according to the first embodiment does not require a dedicated diagnosis circuit, and by combining the analog input units 11, 11' and the analog output units 12, 12', the digital value for diagnosis is analyzed using the program ladder diagram. Compare to make a diagnosis. As a result, even the analog input units 11, 11' or the analog output units 12, 12' that do not have a dedicated diagnostic circuit can be diagnosed only by installing firmware. In addition, unit unit price and development cost can be suppressed. In addition, since the switching device is controlled by the arithmetic units 13, 13', it is not necessary to provide the analog input unit 11, 11' and the analog output unit 12, 12' with a switching device control function.
实施方式2Embodiment 2
图12是表示本发明的实施方式2所涉及的可编程逻辑控制器系统的结构的图。对于实施方式2所涉及的可编程逻辑控制器10S的模拟输入单元11S、运算单元13S、输出单元14S、电源单元15S及基座单元16S,除具有在故障发生时通过自我诊断对故障进行检测、将安全输入强制性地断开的功能而适配于安全规格这一点以外,与实施方式1的模拟输入单元11、运算单元13、输出单元14、电源单元15及基座单元16相同。模拟输出单元12S与实施方式1的模拟输出单元相同。FIG. 12 is a diagram showing a configuration of a programmable logic controller system according to Embodiment 2 of the present invention. The analog input unit 11S, the arithmetic unit 13S, the output unit 14S, the power supply unit 15S, and the base unit 16S of the programmable logic controller 10S according to Embodiment 2 have functions for detecting a failure by self-diagnosis when a failure occurs, It is the same as the analog input unit 11 , arithmetic unit 13 , output unit 14 , power supply unit 15 , and base unit 16 of Embodiment 1 except that the function of forcibly turning off the safety input is adapted to the safety standard. The analog output unit 12S is the same as that of the first embodiment.
实施方式2的模拟输入单元11S、运算单元13S及输出单元14S通过双重化地进行与其他单元之间的通信,对通信结果进行对照,从而适配于进行故障的自我诊断的安全通信。在安全通信中,在双重化地进行的通信的结果不一致的情况下,诊断为发生故障。The analog input unit 11S, the arithmetic unit 13S, and the output unit 14S of the second embodiment perform duplex communication with other units and compare the communication results so as to be suitable for safety communication for fault self-diagnosis. In safety communication, when the results of duplex communication do not match, it is diagnosed that a failure has occurred.
另外,在实施方式2中,运算单元13S所执行的程序是适配于安全规格的安全梯形图程序或者安全功能模块。In addition, in Embodiment 2, the program executed by the arithmetic unit 13S is a safety ladder program or a safety function module conforming to safety standards.
关于模拟数字变换诊断的处理的流程,由于与实施方式1相同,因此省略说明。The processing flow of the analog-to-digital conversion diagnosis is the same as that in Embodiment 1, and thus description thereof will be omitted.
由于实施方式2所涉及的可编程逻辑控制器系统利用安全通信进行单元彼此的通信,因此能够防止由在单元间交换诊断用数字值、模拟变换值或者数字变换值时的通信错误而导致在模拟数字变换诊断的诊断结果中发生错误。Since the programmable logic controller system according to Embodiment 2 communicates between units using safety communication, it is possible to prevent communication errors caused by communication errors in exchanging diagnostic digital values, analog conversion values, or digital conversion values between units An error occurred in the diagnosis result of digital conversion diagnosis.
实施方式3Embodiment 3
图13是表示本发明的实施方式3所涉及的可编程逻辑控制器系统的结构的图。可编程逻辑控制器系统101具有:可编程逻辑控制器40,其通过执行控制程序,从而向外部设备60输出控制用模拟信号;以及继电器50,其对是否从可编程逻辑控制器40向外部设备60输出模拟信号进行切换。可编程逻辑控制器40具有:模拟输入单元41,其通过模拟数字变换而将模拟值变换为数字值;模拟输出单元42,其通过数字模拟变换而将数字值变换为模拟值;运算单元43,其执行控制程序;输出单元44,其将控制信号输出至继电器50,该控制信号对是将模拟输出单元42所输出的模拟信号向外部设备60输出、还是向模拟输入单元41输出进行切换;电源单元45,其将电力供给至各单元;以及基座单元46,其将各单元彼此连接。输出单元44和继电器50构成切换装置,其对下述动作进行切换,即,是从模拟输出单元42向外部设备60输出模拟信号、还是从模拟输出单元42将对后述的第3数字值进行数字模拟变换而得到的模拟值向模拟输入单元41输出。FIG. 13 is a diagram showing a configuration of a programmable logic controller system according to Embodiment 3 of the present invention. The programmable logic controller system 101 has: the programmable logic controller 40, which outputs a control analog signal to the external device 60 by executing the control program; 60 output analog signal for switching. The programmable logic controller 40 has: an analog input unit 41, which converts an analog value into a digital value through analog-to-digital conversion; an analog output unit 42, which converts a digital value into an analog value through digital-to-analog conversion; an arithmetic unit 43, It executes the control program; the output unit 44 outputs the control signal to the relay 50, and the control signal switches whether the analog signal output by the analog output unit 42 is output to the external device 60 or output to the analog input unit 41; A unit 45 that supplies power to the units; and a base unit 46 that connects the units to each other. The output unit 44 and the relay 50 constitute a switching device, which switches whether the analog output unit 42 outputs an analog signal to the external device 60 or whether the analog output unit 42 performs a third digital value described later. The analog value obtained by the digital-to-analog conversion is output to the analog input unit 41 .
图14是表示实施方式3所涉及的可编程逻辑控制器的运算单元的结构的图。运算单元43具有:数字模拟变换诊断处理部431,其对数字模拟变换功能进行诊断;诊断用数字值获取部432,其从模拟输出单元42获取用于数字模拟变换诊断的第3数字值、即诊断用数字值;以及继电器控制处理部434,其使输出单元44进行继电器50的切换。继电器控制处理部434构成对切换装置进行控制的切换控制部。FIG. 14 is a diagram showing a configuration of an arithmetic unit of a programmable logic controller according to Embodiment 3. FIG. The arithmetic unit 43 has: a digital-to-analog conversion diagnostic processing unit 431 for diagnosing the digital-to-analog conversion function; a digital value for diagnosis; and a relay control processing unit 434 that causes the output unit 44 to switch the relay 50 . The relay control processing unit 434 constitutes a switching control unit that controls the switching device.
实施方式3所涉及的可编程逻辑控制器40的运算单元43的硬件结构与实施方式1相同。图14所示的数字模拟变换诊断处理部431、诊断用数字值获取部432以及继电器控制处理部434是通过由运算装置将存储器用作工作区域、执行软件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。The hardware configuration of the arithmetic unit 43 of the programmable logic controller 40 according to the third embodiment is the same as that of the first embodiment. The digital-to-analog conversion diagnostic processing unit 431 , diagnostic digital value acquisition unit 432 , and relay control processing unit 434 shown in FIG. 14 are realized by executing software using a memory as a work area by an arithmetic device. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories.
图15是表示实施方式3所涉及的可编程逻辑控制器的模拟输入单元的结构的图。模拟输入单元41具有将模拟值变换为数字值的模拟数字变换部411。FIG. 15 is a diagram showing a configuration of an analog input unit of a programmable logic controller according to Embodiment 3. FIG. The analog input unit 41 has an analog-to-digital converter 411 that converts an analog value into a digital value.
图16是表示实施方式3所涉及的可编程逻辑控制器的模拟输入单元的硬件结构的图。模拟输入单元41具有:运算装置412,其执行固件;存储器413,其被运算装置412用作工作区域;以及存储装置414,其储存固件。能够应用CPU作为运算装置412。能够应用RAM作为存储器413。能够应用非易失性半导体存储器作为存储装置414。图15所示的模拟数字变换部411是通过由运算装置412将存储器413用作工作区域、执行固件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。FIG. 16 is a diagram showing a hardware configuration of an analog input unit of a programmable logic controller according to Embodiment 3. FIG. The analog input unit 41 has: an arithmetic device 412 that executes firmware; a memory 413 that is used as a work area by the arithmetic device 412; and a storage device 414 that stores firmware. A CPU can be applied as the computing device 412 . RAM can be applied as the memory 413 . A nonvolatile semiconductor memory can be applied as the storage device 414 . The analog-to-digital conversion unit 411 shown in FIG. 15 is realized by the arithmetic unit 412 executing firmware using the memory 413 as a work area. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories.
图17是表示实施方式3所涉及的可编程逻辑控制器的模拟输出单元的结构的图。模拟输出单元42具有:数字模拟变换部421,其将数字值变换为模拟值;诊断用数字值存储部422,其存储用于数字模拟变换诊断的第3数字值、即诊断用数字值;诊断异常显示部423,其在数字模拟变换功能的诊断结果为异常的情况下对异常进行显示;以及诊断用数字值生成部428,其基于模拟输出单元42的输出范围而生成诊断用数字值。此处的所谓输出范围,是指从模拟输出单元42输出的模拟信号所能够取的值。此外,也可以利用与模拟输出单元42不同的装置来生成诊断用数字值,并存储于诊断用数字值存储部422。如果利用与模拟输出单元42不同的装置来生成诊断用数字值,则能够简化模拟输出单元42的结构。FIG. 17 is a diagram showing a configuration of an analog output unit of a programmable logic controller according to Embodiment 3. FIG. The analog output unit 42 has: a digital-to-analog conversion unit 421, which converts a digital value into an analog value; a diagnostic digital value storage unit 422, which stores a third digital value for digital-to-analog conversion diagnosis, that is, a diagnostic digital value; An abnormality display unit 423 displays abnormality when the diagnosis result of the digital-to-analog conversion function is abnormal; and a diagnostic digital value generation unit 428 generates a diagnostic digital value based on the output range of the analog output unit 42 . The so-called output range here refers to the values that the analog signal output from the analog output unit 42 can take. In addition, a diagnostic digital value may be generated by a device different from the analog output unit 42 and stored in the diagnostic digital value storage unit 422 . The configuration of the analog output unit 42 can be simplified if a digital value for diagnosis is generated by a device different from the analog output unit 42 .
图18是表示实施方式3所涉及的可编程逻辑控制器的模拟输出单元的硬件结构的图。模拟输出单元42具有:运算装置424,其执行固件;存储器425,其被运算装置424用作工作区域;存储装置426,其储存固件;以及显示装置427,其对信息进行显示。能够应用CPU作为运算装置424。能够应用RAM作为存储器425。能够应用非易失性半导体存储器作为存储装置426。能够应用LED灯作为显示装置427。图17所示的数字模拟变换部421及诊断用数字值生成部428是通过由运算装置424将存储器425用作工作区域、执行固件而实现的。另外,也可以由多个运算装置及多个存储器协同执行上述功能。另外,图17所示的诊断异常显示部423是通过由运算装置424对显示装置427的点亮样式进行控制而实现的。FIG. 18 is a diagram showing a hardware configuration of an analog output unit of a programmable logic controller according to Embodiment 3. FIG. The analog output unit 42 has: an arithmetic device 424 that executes firmware; a memory 425 that is used by the arithmetic device 424 as a work area; a storage device 426 that stores firmware; and a display device 427 that displays information. A CPU can be applied as the arithmetic unit 424 . RAM can be applied as the memory 425 . A nonvolatile semiconductor memory can be applied as the storage device 426 . LED lamps can be used as display means 427 . The digital-to-analog conversion unit 421 and the diagnostic digital value generation unit 428 shown in FIG. 17 are realized by the arithmetic unit 424 executing firmware using the memory 425 as a work area. In addition, the above-mentioned functions may also be executed cooperatively by a plurality of computing devices and a plurality of memories. In addition, the diagnostic abnormality display unit 423 shown in FIG. 17 is realized by controlling the lighting pattern of the display device 427 by the computing device 424 .
实施方式3所涉及的可编程逻辑控制器40的输出单元44的结构与实施方式1中的输出单元14相同。The configuration of the output unit 44 of the programmable logic controller 40 according to the third embodiment is the same as that of the output unit 14 in the first embodiment.
图19是表示实施方式3所涉及的可编程逻辑控制器的数字模拟变换诊断处理的流程的流程图。在步骤S301中,继电器控制处理部434将指令发送至输出单元44而使该输出单元44将控制信号向继电器50输出,使模拟输出单元42的输出向模拟输入单元41输入。19 is a flowchart showing the flow of digital-to-analog conversion diagnostic processing in the programmable logic controller according to the third embodiment. In step S301 , the relay control processing unit 434 sends a command to the output unit 44 so that the output unit 44 outputs a control signal to the relay 50 and inputs the output of the analog output unit 42 to the analog input unit 41 .
在步骤S302中,诊断用数字值获取部432从模拟输出单元42获取诊断用数字值存储部422所存储的诊断用数字值。In step S302 , the diagnostic digital value acquisition unit 432 acquires the diagnostic digital value stored in the diagnostic digital value storage unit 422 from the analog output unit 42 .
在步骤S302中从诊断用数字值获取部432请求获取诊断用数字值时,模拟输出单元42利用数字模拟变换部421将诊断用数字值变换为模拟值而向模拟输入单元41输出。模拟输入单元41利用模拟数字变换部411将所输入的模拟值变换为数字值。即,在步骤S302中,通过在利用模拟输出单元42对第3数字值、即诊断用数字值进行数字模拟变换后进一步利用模拟输入单元41进行模拟数字变换,从而生成第4数字值。When acquisition of a diagnostic digital value is requested from diagnostic digital value acquisition unit 432 in step S302 , analog output unit 42 converts the diagnostic digital value into an analog value by digital-to-analog conversion unit 421 and outputs it to analog input unit 41 . The analog input unit 41 converts an input analog value into a digital value by an analog-to-digital conversion unit 411 . That is, in step S302 , the fourth digital value is generated by further performing analog-to-digital conversion by the analog input unit 41 after the third digital value, that is, the digital value for diagnosis, is converted by the analog output unit 42 .
在步骤S303中,数字模拟变换诊断处理部431从模拟输入单元41获取由模拟数字变换部411进行变换得到的数字值、即第4数字值。In step S303 , the digital-to-analog conversion diagnostic processing unit 431 acquires the digital value converted by the analog-to-digital conversion unit 411 , that is, a fourth digital value from the analog input unit 41 .
在步骤S304中,数字模拟变换诊断处理部431对在步骤S303中从模拟输入单元41获取到的第4数字值、和在步骤S302中从模拟输出单元42获取到的诊断用数字值即第3数字值进行比较。如果二者一致,则步骤S304为Yes,结束数字模拟变换诊断处理。In step S304, the digital-to-analog conversion diagnostic processing unit 431 compares the fourth digital value acquired from the analog input unit 41 in step S303 and the third diagnostic digital value acquired from the analog output unit 42 in step S302. Numeric values to compare. If the two are consistent, step S304 is Yes, and the digital-to-analog conversion diagnosis process ends.
另一方面,如果在步骤S303中从模拟输入单元41获取到的数字值、和在步骤S302中从模拟输出单元42获取到的诊断用数字值不一致,则步骤S304为No,数字模拟变换诊断处理部431在步骤S305中将诊断异常通知给模拟输出单元42。如果被通知了诊断异常,则诊断异常显示部423在显示装置427对诊断异常的发生进行显示。通过利用数字模拟变换处理的诊断所独有的点亮样式或者点亮颜色对诊断异常进行显示,从而即使是由模拟输出单元42的显示装置427对诊断异常的发生进行通知,用户也能够识别出原因可能存在于模拟输入单元41侧。On the other hand, if the digital value obtained from the analog input unit 41 in step S303 is inconsistent with the diagnostic digital value obtained from the analog output unit 42 in step S302, then step S304 is No, and the digital-to-analog conversion diagnostic process The unit 431 notifies the analog output unit 42 of the diagnostic abnormality in step S305. When a diagnostic abnormality is notified, the diagnostic abnormality display unit 423 displays the occurrence of the diagnostic abnormality on the display device 427 . By displaying the diagnostic abnormality with a lighting pattern or lighting color unique to the diagnosis of the digital-to-analog conversion process, even if the occurrence of the diagnostic abnormality is notified by the display device 427 of the analog output unit 42, the user can recognize it. The cause may exist on the analog input unit 41 side.
在实施方式3所涉及的可编程逻辑控制器系统中,由于如果利用数字模拟变换部421对用于数字模拟变换诊断的数字值进行变换、然后利用模拟数字变换部411进行变换而得到的数字值,与用于数字模拟变换诊断的数字值不一致,则数字模拟变换诊断处理部431诊断为数字模拟变换功能存在异常,因此能够使用不具有用于诊断的专用电路的模拟输入单元及模拟输出单元进行数字模拟变换处理的诊断。并且,由于利用运算单元43进行切换装置的控制,因此不需要使模拟输入单元41及模拟输出单元42具有切换装置的控制功能。In the programmable logic controller system according to Embodiment 3, the digital value obtained by converting the digital value used for the digital-to-analog conversion diagnosis by the digital-to-analog conversion unit 421 and then converting it by the analog-to-digital conversion unit 411 , is inconsistent with the digital value used for the diagnosis of digital-to-analog conversion, the digital-to-analog conversion diagnosis processing unit 431 diagnoses that there is an abnormality in the digital-to-analog conversion function, so it can be performed using an analog input unit and an analog output unit that do not have a dedicated circuit for diagnosis. Diagnostics for digital-to-analog conversion processing. Furthermore, since the switching device is controlled by the arithmetic unit 43, it is not necessary to provide the analog input unit 41 and the analog output unit 42 with a switching device control function.
实施方式4Embodiment 4
图20是表示本发明的实施方式4所涉及的可编程逻辑控制器系统的结构的图。对于实施方式4所涉及的可编程逻辑控制器40S的模拟输出单元42S、运算单元43S、输出单元44S、电源单元45S及基座单元46S,除具有在故障发生时通过自我诊断对故障进行检测、将安全输出强制性地断开的功能而适配于安全规格这一点以外,与实施方式3的模拟输出单元42、运算单元43、输出单元44、电源单元45及基座单元46相同。模拟输入单元41S与实施方式3的模拟输入单元41相同。20 is a diagram showing the configuration of a programmable logic controller system according to Embodiment 4 of the present invention. The analog output unit 42S, the arithmetic unit 43S, the output unit 44S, the power supply unit 45S, and the base unit 46S of the programmable logic controller 40S according to Embodiment 4 have functions for detecting a failure by self-diagnosis when a failure occurs, The analog output unit 42 , arithmetic unit 43 , output unit 44 , power supply unit 45 , and base unit 46 of Embodiment 3 are the same except that the function of forcibly turning off the safety output is adapted to the safety standard. The analog input unit 41S is the same as the analog input unit 41 of the third embodiment.
实施方式4的模拟输出单元42S、运算单元43S及输出单元44S通过双重化地进行与其他单元之间的通信,对通信结果进行对照,从而适配于进行故障的自我诊断的安全通信。在安全通信中,在双重化地进行的通信的结果不一致的情况下,诊断为发生故障。The analog output unit 42S, arithmetic unit 43S, and output unit 44S of Embodiment 4 perform duplex communication with other units and collate the communication results, thereby being suitable for safety communication for fault self-diagnosis. In safety communication, when the results of duplex communication do not match, it is diagnosed that a failure has occurred.
另外,在实施方式4中,运算单元43S所执行的程序是适配于安全规格的安全梯形图程序或者安全功能模块。In addition, in Embodiment 4, the program executed by the arithmetic unit 43S is a safety ladder program or a safety function module conforming to safety standards.
关于数字模拟变换诊断的处理的流程,由于与实施方式3相同,因此省略说明。The flow of the digital-to-analog conversion diagnosis process is the same as that in Embodiment 3, and thus description thereof will be omitted.
由于实施方式4所涉及的可编程逻辑控制器系统利用安全通信进行单元彼此的通信,因此能够防止由在单元间交换诊断用数字值、模拟变换值或者数字变换值时的通信错误而导致在数字模拟变换诊断的诊断结果中发生错误。Since the programmable logic controller system according to Embodiment 4 communicates between units using safety communication, it is possible to prevent communication errors caused by communication errors when exchanging diagnostic digital values, analog conversion values, or digital conversion values between units. An error occurred in the diagnosis result of the analog conversion diagnosis.
以上的实施方式所示的结构表示本发明的内容的一个例子,还能够与其他的公知技术进行组合,在不脱离本发明的主旨的范围,还能够对结构的一部分进行省略、变更。The configuration shown in the above embodiments represents an example of the content of the present invention, and can be combined with other known techniques, and part of the configuration can be omitted or changed without departing from the gist of the present invention.
标号的说明Explanation of labels
10、10’、10S、40、40S可编程逻辑控制器,11、11’、11S、41、41S模拟输入单元,12、12’、12S、42、42S模拟输出单元,13、13’、13S、43、43S运算单元,14、14’、14S、44、44S输出单元,15、15a、15b、15S、45、45S电源单元,16、16a、16b、16S、46、46S基座单元,17、18网络单元,19集线器,20、50继电器,30、60外部设备,100、100’、100S、101、101S可编程逻辑控制器系统,111、411模拟数字变换部,112、422诊断用数字值存储部,113、423诊断异常显示部,114、122、135、142、412、424运算装置,115、123、136、143、413、425存储器,116、124、137、144、414、426存储装置,117、427显示装置,118、428诊断用数字值生成部,121、421数字模拟变换部,131模拟数字变换诊断处理部,132、432诊断用数字值获取部,133诊断用数字值设定处理部,134、434继电器控制处理部,141控制信号输出部,431数字模拟变换诊断处理部。10, 10', 10S, 40, 40S PLC, 11, 11', 11S, 41, 41S analog input unit, 12, 12', 12S, 42, 42S analog output unit, 13, 13', 13S , 43, 43S computing unit, 14, 14', 14S, 44, 44S output unit, 15, 15a, 15b, 15S, 45, 45S power supply unit, 16, 16a, 16b, 16S, 46, 46S base unit, 17 , 18 network unit, 19 hub, 20, 50 relay, 30, 60 external equipment, 100, 100', 100S, 101, 101S programmable logic controller system, 111, 411 analog-to-digital conversion part, 112, 422 digital for diagnosis Value storage unit, 113, 423 diagnostic abnormality display unit, 114, 122, 135, 142, 412, 424 computing device, 115, 123, 136, 143, 413, 425 memory, 116, 124, 137, 144, 414, 426 storage device, 117, 427 display device, 118, 428 diagnostic digital value generating unit, 121, 421 digital-to-analog conversion unit, 131 analog-to-digital conversion diagnostic processing unit, 132, 432 diagnostic digital value acquisition unit, 133 diagnostic digital value Setting processing section, 134, 434 relay control processing section, 141 control signal output section, 431 digital-to-analog conversion diagnosis processing section.
Claims (6)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2015/061980 WO2016170570A1 (en) | 2015-04-20 | 2015-04-20 | Programmable logic controller system and computing unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106258005A CN106258005A (en) | 2016-12-28 |
| CN106258005B true CN106258005B (en) | 2018-05-08 |
Family
ID=57123157
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201580004632.8A Active CN106258005B (en) | 2015-04-20 | 2015-04-20 | Programmable logic controller system and arithmetic element |
Country Status (5)
| Country | Link |
|---|---|
| JP (1) | JP6005322B1 (en) |
| KR (1) | KR101701691B1 (en) |
| CN (1) | CN106258005B (en) |
| TW (1) | TWI595336B (en) |
| WO (1) | WO2016170570A1 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3588216B1 (en) * | 2018-06-28 | 2020-11-25 | Siemens Aktiengesellschaft | Method and system for error-protected provision of an analog output value |
| CN113424115B (en) * | 2019-02-14 | 2024-06-18 | 三菱电机株式会社 | Control system, programmable logic controller, method and recording medium |
| CN114026776B (en) * | 2019-07-05 | 2022-07-05 | 三菱电机株式会社 | Abnormality diagnosis system and abnormality diagnosis method |
| CN116142254A (en) * | 2023-01-19 | 2023-05-23 | 中车大同电力机车有限公司 | Locomotive running control method and device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002358106A (en) * | 2001-05-31 | 2002-12-13 | Omron Corp | Safety controller |
| JP2011069694A (en) * | 2009-09-25 | 2011-04-07 | Hitachi Ltd | Programmable logic controller, and failure diagnosis method in the same |
| CN102455701A (en) * | 2010-10-22 | 2012-05-16 | 施耐德电器工业公司 | Programmable Logic Controller Automatic Test Platform Using Programmable Relay Structure |
| CN103472822A (en) * | 2013-09-24 | 2013-12-25 | 北京星达科技发展有限公司 | Simulation testing device and testing method of central air conditioner automatic control system |
| CN104303116A (en) * | 2012-05-11 | 2015-01-21 | 三菱电机株式会社 | Analog conversion device and programmable logic controller system |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4276930B2 (en) * | 2003-12-10 | 2009-06-10 | 株式会社日立製作所 | Analog output device and diagnostic method thereof |
| JP5136900B2 (en) * | 2007-12-13 | 2013-02-06 | 日立金属株式会社 | Analog output circuit, flow control device, and output abnormality determination method for flow control device |
| EP2624459B1 (en) * | 2010-09-28 | 2018-09-26 | Mitsubishi Electric Corporation | D/a conversion device, peripheral device, and plc |
| WO2012098676A1 (en) * | 2011-01-21 | 2012-07-26 | 三菱電機株式会社 | Analog input unit and programmable controller |
| CN103039007B (en) * | 2011-08-01 | 2016-01-06 | 三菱电机株式会社 | Analog input system, modulating output system and analog input output system |
| WO2014064846A1 (en) * | 2012-10-26 | 2014-05-01 | 三菱電機株式会社 | Analog conversion device and programmable controller system |
| CN202994940U (en) * | 2012-12-26 | 2013-06-12 | 浙江海得新能源有限公司 | PLC automation single board test platform |
-
2015
- 2015-04-20 KR KR1020167018468A patent/KR101701691B1/en not_active Expired - Fee Related
- 2015-04-20 CN CN201580004632.8A patent/CN106258005B/en active Active
- 2015-04-20 JP JP2016506926A patent/JP6005322B1/en active Active
- 2015-04-20 WO PCT/JP2015/061980 patent/WO2016170570A1/en not_active Ceased
-
2016
- 2016-04-11 TW TW105111206A patent/TWI595336B/en not_active IP Right Cessation
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002358106A (en) * | 2001-05-31 | 2002-12-13 | Omron Corp | Safety controller |
| JP2011069694A (en) * | 2009-09-25 | 2011-04-07 | Hitachi Ltd | Programmable logic controller, and failure diagnosis method in the same |
| CN102455701A (en) * | 2010-10-22 | 2012-05-16 | 施耐德电器工业公司 | Programmable Logic Controller Automatic Test Platform Using Programmable Relay Structure |
| CN104303116A (en) * | 2012-05-11 | 2015-01-21 | 三菱电机株式会社 | Analog conversion device and programmable logic controller system |
| CN103472822A (en) * | 2013-09-24 | 2013-12-25 | 北京星达科技发展有限公司 | Simulation testing device and testing method of central air conditioner automatic control system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016170570A1 (en) | 2016-10-27 |
| KR20160135162A (en) | 2016-11-25 |
| CN106258005A (en) | 2016-12-28 |
| TW201702771A (en) | 2017-01-16 |
| KR101701691B1 (en) | 2017-02-01 |
| JP6005322B1 (en) | 2016-10-12 |
| JPWO2016170570A1 (en) | 2017-04-27 |
| TWI595336B (en) | 2017-08-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106258005B (en) | Programmable logic controller system and arithmetic element | |
| US10025287B2 (en) | Method for assignment of verification numbers | |
| US20120036493A1 (en) | Method and apparatus for creating a user program for a safety controller | |
| TWI681272B (en) | Monitoring image generating device, generating program and generating method | |
| US20180259926A1 (en) | Information processing apparatus, information processing method, and computer readable storage medium | |
| JP6139386B2 (en) | Programmable controller | |
| US9141103B2 (en) | Method and controller for controlling a safety-oriented industrial automation component | |
| JP2015201132A (en) | Device for assisting creation of program for programmable logic controller and method for assisting creation of program for programmable logic controller | |
| JP2018152032A (en) | Information processing device, information processing method, and information processing program | |
| US11275359B2 (en) | Fieldbus controller interface including configuration, monitoring and controlling functionalities | |
| CN105739463A (en) | Molding facility or peripheral apparatus for a molding facility | |
| US8777432B2 (en) | Display device having an optical display field | |
| WO2019142245A1 (en) | Signal control device and abnormality detection method | |
| CN101960401B (en) | Device and method for planning a field device of a technical installation | |
| JP6163735B2 (en) | SAFE SLAVE UNIT, ITS CONTROL METHOD, CONTROL PROGRAM, AND SAFETY CONTROL SYSTEM | |
| JP2009050129A (en) | Safety controller | |
| US11809175B2 (en) | Alarm management apparatus, alarm management method, and computer-readable recording medium | |
| EP3952222B1 (en) | Network management device, management method, management program, and recording medium | |
| JP2025510862A (en) | Safety check method for modular safety controller | |
| WO2012105238A1 (en) | Digital control device and execution method thereof | |
| JP2017223465A (en) | Human-machine interface instrument | |
| KR101684018B1 (en) | Programmble power management module | |
| CN203911881U (en) | Operation monitoring device | |
| JP7224261B2 (en) | Plant monitoring control system | |
| KR20100050053A (en) | A directed and managed fountain system cotrolled by remote control |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |