WO2014183621A1 - 基于Profinet带扩展输入输出的控制面板 - Google Patents

基于Profinet带扩展输入输出的控制面板 Download PDF

Info

Publication number
WO2014183621A1
WO2014183621A1 PCT/CN2014/077270 CN2014077270W WO2014183621A1 WO 2014183621 A1 WO2014183621 A1 WO 2014183621A1 CN 2014077270 W CN2014077270 W CN 2014077270W WO 2014183621 A1 WO2014183621 A1 WO 2014183621A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
output
input
communication
column
Prior art date
Application number
PCT/CN2014/077270
Other languages
English (en)
French (fr)
Inventor
胡友前
Original Assignee
Hu Youqian
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hu Youqian filed Critical Hu Youqian
Publication of WO2014183621A1 publication Critical patent/WO2014183621A1/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25009Profinet-I-O, producer-consumer mode

Definitions

  • the invention relates to a control panel based on an industrial network bus Profinet input and output device, in particular to a control panel based on Profinet with extended input and output. Background technique
  • the Profinet-based control panel has not been designed and manufactured in China.
  • the Prof inet panel designed and manufactured abroad does not have 10 extensions, so customers need to purchase another Profinet-based input and output.
  • Module a set of input and output modules with 72 input and 48 outputs, the average user only needs 24 input and 16 output is enough, and most of the remaining input and output are wasteful.
  • the designed keyboard is used to operate the movement of the machine, and a corresponding indicator light, such as a light-emitting diode, is installed to indicate whether each key is valid after being pressed for viewing by the operator.
  • a key or an indicator light occupies a 10 point of the PLC.
  • the keyboard is scanned line by line.
  • the method is as follows: sequentially send the line line to the high level 1 to check the status of the corresponding column; if the column line is all 0, the button is not in the line; if not all 0 , the button must be on this line, and is the key that intersects the high-level column line. Finally, determine the key value and enter the key handler.
  • the indicator is scanned line by line. The method is: Now set the line to high level 1, and then set it to low level 0, check whether the corresponding column key is valid; if it is valid, set the indicator column to 0, then the indicator light is on, otherwise it is set to 1, no light is on.
  • the design of the matrix keyboard in the PLC system requires not only the input port but also the output port. Therefore, it is very important to understand the structure and working principle of the internal circuit of the PLC port 10.
  • the following takes the DC input and output modules of the S7-200 as an example to briefly explain its working principle.
  • the DC input module of the PLC where K1-input switch, M-common, 10.
  • 0-input point, Rl, R2 typical value is 5. 6K, 1 ⁇ .
  • the CPU sends a "0N” signal to the output lock during the refresh output phase.
  • the memory is then photoelectrically coupled to the FET to make it saturate and turn on.
  • the output indicator light is on, and the DC24V is connected to the load through the FET, so that the load obtains the operating current.
  • the scanning circuit is a circuit diagram of 8 ⁇ 8 keys and lamp scanning, wherein the line scanning shares 8 lines of output.
  • PLC scanning mode when the PLC is in the "RUN" working mode, except for the power-on initialization, other programs take a cyclic scan mode, which is called "PLC scanning mode", and its execution flow is as shown in the figure.
  • Input sampling phase the CPU stores the state of all physical input points into the corresponding process In the image register, the contents of the process image register remain unchanged until the next input sample; during the program execution phase, the CPU executes the program from left to right and top to bottom, and writes the operation result to the output image register or In the data storage area; in the output refresh phase, after the program is executed, the CPU updates the state of the process output image register to the physical output point almost simultaneously.
  • the keyboard and indicator light are all designed in 8 x 8 matrix: A setting ( ⁇ 64 key corresponds to ⁇ 0 ⁇ 7 respectively, the key is pressed, the corresponding storage point is "1", loosen "0"; B setting ( ⁇ 124 indicator corresponds to ⁇ 112 ⁇ 119 respectively; C sets QB0 to the 0th line to the 7th line of the keyboard (multiplexed with the indicator), IB0 corresponds to the 0th column of the keyboard 7 columns; D sets the 0th line to the 7th line of the QB0 corresponding lamp (multiplexed with the keyboard), QB1 corresponds to the 0th column to the 7th column of the keyboard.
  • n starts from 0, and when the operation value is negative, it means that the line is not scanned.
  • the technical problem to be solved by the present invention is to provide a control panel based on the Profinet band extended input and output with an extended 10-port, which is capable of saving the occupation of 10 by saving the above-mentioned deficiencies of the prior art.
  • a control panel based on Profinet with extended input and output comprising a power supply and a connection panel, characterized in that: further comprising a communication board; the communication board is provided with a connection
  • the first port of the power source further has a second port connected to the panel, and further has a third port, and further has a fourth port for communicating with the host computer 3; and a communication chip;
  • the communication chip is provided with a first communication port, a second communication port and a third communication port; and a driver is further provided; the input end of the first port is connected to an output port of the power source, and the output end of the first port is connected to a DC port.
  • the second port input end is connected to the panel input and output port, and the output end of the second port is connected to the first communication port of the communication processing chip;
  • the input end of the fourth port is connected to the input and output port of the upper computer, and the output end of the fourth port is connected to the third communication port of the communication processing chip;
  • connection panel a button and an indicator light are arranged on the connection panel
  • the fourth port adopts a physical interface of RJ45; the fourth port and the host computer adopt a standard industrial Ethernet Profinet communication protocol;
  • the upper computer scans the button and the indicator light by matrix scanning, and the result of the scanning is transmitted to the upper computer through the communication chip; the upper computer determines the pressed state button according to the state result of the scanned button, The control signal is transmitted to the connection panel through the communication chip, so that the corresponding indicator light is turned on or off.
  • buttons are arranged in a matrix, forming a matrix type button; the indicator lights are also arranged in a matrix, forming a matrix type indicator light; each row of buttons in the matrix type button respectively passes An output row line is connected in parallel, and the output row line is connected to the panel input/output port; each column button in the matrix type button is connected in parallel through the input column line, and the input column line is connected to the panel input/output port; Each row of indicator lights is also connected in parallel by an output row line. Each column indicator in the matrix indicator light is connected in parallel through the output column lines, and the output column line is connected to the panel input and output ports; the upper computer first outputs the line rows.
  • the loop is gradually set to the high level, and the output column lines are all set to the high level. Then, the input of the input column line is checked column by column. If the input column line is also high, the high level is The button at the intersection of the output row line and the high-level input column line is in a pressed state, and the upper computer sets the corresponding output column line to a low battery , The respective indicator lights.
  • the expansion port and the driver are further included; the third port input end is connected to the input port of the expansion port, the output end of the third port is connected to the output end of the driver, and the input end of the drive is connected to the communication. Processing the second communication port of the chip.
  • the fourth port includes two RJ45s.
  • the communication processing chip selects an Erte C 200 chip.
  • the invention is based on Prof inet communication technology, adopts PLC scanning mode to control the keys and indicator lights of the panel, effectively reduces the occupation of input and output points, and thus can expand the remaining 10 to realize the combination of panel control and expansion 10, It saves costs, facilitates customer connections, reduces space usage, and increases reliability.
  • FIG. 1 is a circuit diagram of a PLC DC input module in the prior art.
  • FIG. 2 is a circuit diagram of a PLC DC output module in the prior art.
  • Fig. 3 is a circuit diagram of a prior art 8 X 8 key and lamp scanning.
  • Figure 4 is a flow chart of the working mode of the PLC matrix scan.
  • FIG. 5 Program execution flow chart of PLC matrix scan.
  • Figure 6 is a schematic view of the structure of the present invention.
  • FIG. 7 is a schematic structural view of a communication board of the present invention.
  • connection panel 8 is a schematic structural view of a connection panel of the present invention
  • FIG. 9 is a schematic diagram of the connection of the buttons, the indicator lights and the panel input and output ports of the present invention.
  • Figure 10 is a general block diagram of the present invention when using Ertec200
  • Figure 11 is a schematic diagram of an extended input circuit using the 54AC138.
  • Figure 12 is a circuit diagram of the XC-INPUTO corresponding to the first channel ( ⁇ 15 input port in Figure 11).
  • Figure 13 is a schematic diagram of an extended output circuit using the 54AC138.
  • Figure 14 is a schematic diagram of the circuit of the T15 bit output corresponding to the second channel of XCS-0UT1 in Figure 13.
  • Figure 15 is a schematic diagram of the voltage divider circuit of the extended input terminal.
  • Figure 16 is a schematic diagram of the amplifier circuit of the extended output terminal.
  • Figure 17 is a schematic diagram of a scanning circuit of the first embodiment.
  • Figure 18 is a schematic diagram showing the control flow of the first embodiment.
  • the control panel based on the Prof inet with extended input and output includes a power supply 1, a connection panel 4, and a host computer 3, and is characterized in that: a communication board 2 is further included; There is a first port 20 connected to the power supply, a second port 21 connected to the panel 4, a third port 22, and a fourth port 23 communicating with the host computer 3; 6; the communication chip 6 is provided with a first communication port 60, a second communication port 61 and a third communication port 62; a driver 7 is further provided; the input end of the first port 20 is connected to the output port of the power source 1 The output end of the first port 20 is connected to the input end of the DC transformer 24; the input end of the second port 21 is connected to the panel input/output port 43, and the output end of the second port 21 is connected to the first communication port 60 of the communication processing chip 6.
  • the input end of the fourth port 23 is connected to the input and output port of the upper computer 3, and the output end of the fourth port 23 is connected to the third communication port 62 of the communication processing chip 6.
  • the connecting panel 4 is provided with a button 41.
  • the indicator light 42; the fourth port 23 is adopted Physical the RJ45 interface; the fourth port 23 with the host computer 3 using the industry standard ethernet protocol Prof inet; 3 respectively the host computer 41 and the indicator button 42 a matrix scan mode scan, scanning
  • the result is transmitted to the host computer 3 through the communication chip 6; the host computer 3 processes the button 41 according to the state result of the scanned button 41, and determines the button 41 in the pressed state, and transmits the control signal to the connection panel 4 through the communication chip 6.
  • the corresponding indicator light 42 is turned on or off.
  • buttons 41 are arranged in a matrix to form a matrix type button; the indicator lights 42 are also arranged in a matrix, forming a matrix type indicator light; each row of buttons in the matrix type button is respectively Parallel through an output row line 44, the output row line 44 is connected to the panel input and output port 43; each column button in the matrix type button is connected in parallel through the input column line 46, and the input column line 46 is connected to the panel input/output port 43; Each row of indicator lights in the matrix indicator light is also connected in parallel by an output row line 44. Each column indicator in the matrix indicator light is connected in parallel through the output column line 45, and the output column line 45 and the panel input and output are connected.
  • the port 43 is connected; the host computer 3 first steps the output row line 44 from the nth line to the high level, and simultaneously sets the output column line 44 to the high level, and then checks the input of the input column line 46 column by column, if The input column line 46 is also at a high level, and the button 41 at the intersection of the high-level output row line 44 and the high-level input column line 46 is in a pressed state. The host computer 3 sets the corresponding output column line 45 to a low level, so that the corresponding indicator 42 lights up.
  • the expansion port 5 and the driver 7 are further included; the input port of the third port 22 is connected to the input and output port of the expansion port 5, the output end of the third port 22 is connected to the output end of the driver 7, and the input end of the driver 7 is connected to the communication processing chip.
  • the fourth port 23 includes two RJ45s.
  • the communication processing chip 6 selects an Ertec 200 chip, and the Erte C 200 is a dedicated chip for processing prof inet, and sends the input status to the primary station through the message in each bus cycle.
  • the output instruction of the read master station is written to the corresponding output point.
  • Two sets of 54AC138 are used to expand the input and output channels respectively, occupying only three address lines AB9 1, and distinguishing between read input and write output by control signals, as shown in Fig. 1 and Fig. 12, XRD-PER, XCS-PER1
  • XCS-INPUT0 corresponds to the first channel (T15 input port; as shown in Figure 13 and Figure 14
  • XWD-PER, XCS-PER2 is the write output
  • XCS-0UT1 corresponds to the second channel ( ⁇ 15-bit output.
  • System Up to 8 inputs and outputs can be read and written, each of which is 16 bits.
  • the input is read out from the data bus via the bus receiver 74HCT245.
  • the output is written by the bus through the flip-flop 74VHCT574, and finally amplified to 3. 3V by the amplifier circuit.
  • the X111 pin layout is shown in Table 1.
  • the key value table is shown in Table 2.
  • the LED lamp value table is shown in Table 3.
  • the X222 pin definition is shown in Table 4.
  • Table 1 X111 Pin Layout Table 5 Input 0. 2 I 6 Input 0. 3 I
  • the control panel based on Profinet with extended input and output controls the panel with input and output, and reduces the occupation of input and output by panel control through matrix mode. Due to the persistence of human vision and the afterglow effect of LED, the blinking of the LED within 20ms is undetectable by the human eye, while the scanning period of the PLC is 6ms, the period of the three-line scanning is 18ms, less than 20ms. Therefore, the 3 X 18 scanning circuit is used in actual production, as shown in Fig. 17, in Fig. 17, the key and the LED share three lines of output for scanning. The actual PLC program is changed to 3 X 18, and the control flow is shown in Figure 18. At run time, n starts at 0, and when the computed value is negative, it means that the line is not scanned.
  • the driver 7 is an output amplifying circuit, as shown in FIG. 15 and FIG. 16, since the common-purpose voltage for the extended input and output terminals is 24 V DC, and the input and output voltage for panel control is DC 3. 3 V, so Remaining 24 inputs
  • the 16 output is used for expansion, which requires voltage division on the input and drive amplification of the output.
  • buttons and the indicator lights of the embodiment are in one-to-one correspondence, forming a combined matrix arrangement, that is, a composite matrix keyboard and an indicator light.
  • This embodiment is based on Profinet communication technology, adopts PLC scanning mode to control the keys and indicator lights of the panel, effectively reduces the occupation of input and output points, and thus can expand the remaining 10 to realize the combination of panel control and expansion 10, It saves costs, facilitates customer connections, reduces space usage, and increases reliability.
  • the present embodiment is based on the input and output of profinet, and controls the connection panel by using the input and output, and reduces the occupation of the input and output by the connection panel control by the matrix mode, thereby leaving the 24 input 16 output for expansion.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

一种基于Profinet带扩展输入输出的控制面板,包括电源(1)、连接面板(4),还包括通讯板(2);通讯板(2)上设有第一端口(20)、第二端口(21)、第三端口(22)、第四端口(23);还设有通讯芯片(6);通讯芯片(6)设有第一通讯口(60)、第二通讯口(61)和第三通讯端口(62);还设有驱动器(7);该控制面板与上位机(3)相连,上位机(3)运行PLC程序,通过通讯芯片(6)分别对按钮(41)和指示灯(42)采用矩阵扫描的方式进行扫描;上位机(3)根据扫描的按钮(41)的状态结果进行处理后判断出处于按下状态的按钮(41),并将控制信号通过通讯芯片(6)传送给连接面板(4),使相应的指示灯(42)点亮或熄灭。该控制面板能将其余的IO扩展出来,实现面板控制与扩展IO的复合,大大节约了成本,方便了客户的连接,减少了空间的占用,增加了可靠性。

Description

基于 Profinet带扩展输入输出的控制面板
技术领域
本发明涉及一种基于工业网络总线 Profinet输入输出装置的控制面板, 尤其涉及一 种基于 Profinet带扩展输入输出的控制面板。 背景技术
目前在运动控制领域, 最典型为数控机床,, 国内还没有设计制造出基于 Profinet的 控制面板, 国外设计制造的 Prof inet面板不带 10扩展, 所以客户还需要再购买一套基于 Profinet 的输入输出模块, 一套输入输出模块带有 72输入 48输出, 一般用户只需 24输 入 16输出即足够, 余下大部分输入输出造成了浪费。 设计的键盘用来操作机器的运动, 并且安装了对应的指示灯, 例如发光二极管, 用来指示各个键按下后是否生效, 以便操作 者观察。 通常一个键或者一个指示灯需占用 PLC的一个 10点, 当需要大量的键和指示灯 时, 用于键盘和指示灯的输出点数往往大于用于控制的输出点数, 导致成本大幅度的增 高。
关于矩阵式扫描, 对键盘进行逐行扫描, 方法是: 依次将行线送高电平电平 1, 检查 对应列的状态; 若列线全为 0, 则按键不在此行; 若不全为 0, 则按键必在此行, 且是与 高电平列线相交的那个键。 最后, 确定键值, 并进入键处理程序。 对指示灯进行逐行扫 描。 方法是: 现将行全置为高电平 1, 然后依次置为低电平 0, 检查对应列的键是否生 效; 若生效则将指示灯的列置为 0, 则指示灯亮, 否则置为 1, 没有灯亮。
关于矩阵式设计硬件部分, PLC***中设计矩阵式键盘不仅要用到输入口, 而且也要 用到输出口, 因此, 了解 PLC 10 口内部电路的结构以及工作原理是十分重要的。 下面以 S7-200的 DC输入、 输出模块为例, 简要说明其工作原理。 如图 1所示, 为 PLC的 DC输入 模块, 其中, K1-输入开关, M-公共端, 10. 0-输入点, Rl、 R2 的典型值为 5. 6K、 1Κ。 工 作原理: 若输入开关 K1闭合, 则输入信号经 RC滤波和光电隔离后, 转换为 PLC的 CPU所 需的电平, 一般为 5V, 再经过输入选择器与 CPU 的总线相连, 从而将外部输入开关的 "0N"状态输入到 PLC内部, 此时输入指示灯亮, 且与该输入点对应的输入映像寄存器为 " 1 " 。 若输入开关断开, 则信号没有形成通路, 此时输入指示灯不亮, 表示为 " OFF " 状态。 如图 2所示, 为 PLC的 DC输出模块, 其中, L+接 DC24V; Q0. 0-输出点。 工作原 理: 若用户程序将输出置为 "0N"状态, 则在刷新输出阶段 CPU将 "0N"信号送给输出锁 存器, 再经过光电耦合送给场效应管, 使之饱和导通, 此时输出 指示灯亮, 且通过场效 应管将 DC24V 和负载连通, 从而使得负载获得工作电流。 反之, 若用户程序将输出置为 "OFF"状态, 则输出指示灯不亮, 情况与上述相反。 如图 3所示, 扫描电路为 8 X 8键和 灯扫描的电路图, 其中行扫描共用 8行输出。
关于 PLC的扫描工作方式, 当 PLC处于 "RUN"工作模式下时, 除上电初始化外, 其 它程序都采取周而复始的循环扫描方式, 称之为 "PLC的扫描工作方式", 其执行流程如图 4所示: 在设计键盘和灯时可暂不考虑通信和自诊断, 则在一个扫描周期内剩下以下三个 主要阶段: 输入采样阶段, CPU将所有物理输入点的状态存入对应的过程映像寄存器中, 到下次输入采样前, 过程映像寄存器的内容均保持不变; 程序执行阶段, CPU按照从左到 右、 从上到下的顺序执行程序, 将运算结果写到输出映像寄存器或数据存储区内; 输出刷 新阶段, 在程序执行完后, CPU将过程输出映像寄存器的状态几乎同时的更新到物理输出 点。 关于键盘及指示灯的设定, 键盘和指示灯都采用 8 X 8矩阵式设计: A设定 (Γ64号键 分别与 ΜΒ0 ΜΒ7对应, 键按下, 对应存储点为 " 1 " , 松开则为 "0" ; B 设定(Γ64号指 示灯分别与 ΜΒ112 ΜΒ119对应; C设定 QB0对应键盘的第 0行到第 7行(与指示灯复用), IB0对应键盘的第 0列到第 7列; D设定 QB0对应灯的第 0行到第 7行 (与键盘复用), QB1 对应键盘的第 0列到第 7列。 关于程序流程图, 如图 5所示, 程序说明: n从 0开始, 运 算值为负数时, 表示不扫描该行。 发明内容
本发明所要解决的技术问题是针对上述现有技术的不足,提供一种能够节省减少对 10 的占用, 从而带有扩展 10端口的基于 Profinet带扩展输入输出的控制面板。
为解决上述技术问题, 本发明采用的技术方案为: 一种基于 Profinet 带扩展输入输 出的控制面板, 包括电源、 连接面板, 其特征在于: 还包括通讯板; 所述的通讯板上设有 连接电源的第一端口, 还设有连接面板的第二端口, 还设有第三端口, 还设有与上位机 3 通讯的第四端口; 还设有通讯芯片;
所述的通讯芯片设有第一通讯口、 第二通讯口和第三通讯端口; 还设有驱动器; 所述的第一端口的输入端接电源的输出口, 第一端口的输出端连接直流变压器的输入 端;
所述的第二端口输入端连接面板输入输出端口, 第二端口的输出端连接通讯处理芯片 的第一通讯端口; 所述的第四端口的输入端连接上位机的输入输出端口, 第四端口的输出端连接通讯处 理芯片的第三通讯端口;
所述的连接面板上面设有按钮和指示灯;
所述的第四端口采用物理接口为 RJ45; 第四端口与上位机采用标准工业以太网 Profinet 通讯协议;
所述上位机分别对按钮和指示灯采用矩阵扫描的方式进行扫描, 扫描的结果通过通讯 芯片传送给上位机; 上位机根据扫描的按钮的状态结果进行处理后判断出处于按下状态的 按键, 并将控制信号通过通讯芯片传送给连接面板, 使相应的指示灯点亮或熄灭。
作为本发明进一步改进的技术方案, 所述按钮为矩阵式排列, 形成矩阵式按键; 所述 指示灯也为矩阵式排列, 形成矩阵式指示灯; 所述矩阵式按键内的每一行按键分别通过一 个输出行线并联, 所述输出行线与面板输入输出端口连接; 矩阵式按键内的每一列按键通 过输入列线相并联, 输入列线与面板输入输出端口连接; 所述矩阵式指示灯内的每一行指 示灯也通过一个输出行线相并联, 所述矩阵式指示灯内的每一列指示灯通过输出列线相并 联, 输出列线与面板输入输出端口连接; 上位机首先对输出行线从第 n行循环向后逐步置 高电平, 同时使输出列线全部置高电平, 然后逐列检查输入列线的输入, 如果有输入列线 也为高电平, 则高电平的输出行线与高电平的输入列线相交叉处的按钮为按下状态, 所述 上位机将相应的输出列线置为低电平, 使相应的指示灯点亮。
作为本发明进一步改进的技术方案, 还包括扩展端口和驱动器; 所述的第三端口输入 端连接扩展端口的输入输出端口, 第三端口的输出端连驱动器的输出端, 驱动器的输入端 连接通讯处理芯片的第二通讯端口。
作为本发明进一步改进的技术方案, 第四端口包括 2个 RJ45。
作为本发明进一步改进的技术方案, 所述的通讯处理芯片选用 ErteC200芯片。 本发明基于 Prof inet通讯技术, 采用 PLC扫描方式来控制面板的键和指示灯, 有效 地减少了输入输出点的占用, 从而能将其余的 10扩展出来, 实现面板控制与扩展 10的复 合, 大大节约了成本, 方便了客户的连接, 减少了空间的占用, 增加了可靠性。 附图说明
图 1为现有技术中 PLC直流输入模块电路图。
图 2为现有技术中 PLC直流输出模块电路图。
图 3为现有技术中 8 X 8键和灯扫描电路图。 图 4为 PLC矩阵扫描的工作方式流程图。
图 5 PLC矩阵扫描的程序执行流程图。
图 6为本发明的结构示意。
图 7为本发明的通讯板的结构示意图。
图 8为本发明的连接面板的结构示意图
图 9为本发明的按键、 指示灯和面板输入输出端口连接示意图。
图 10 为采用 Ertec200时本发明的总体框图
图 11为采用 54AC138的扩展输入电路示意图。
图 12为图 11中 XCS-INPUTO对应第一路 (Γ15输入口的电路示意图。
图 13为采用 54AC138的扩展输出电路示意图。
图 14为图 13中 XCS-0UT1对应第二路 (T15位输出的电路示意图。
图 15为扩展输入端分压电路示意图。
图 16为扩展输出端放大电路示意图。
图 17为本实施例 1的扫描电路示意图。
图 18为本实施例 1的控制流程示意图。
下面结合附图对本发明的具体实施方式作进一步说明。 具体实施方式
实施例 1
参见图 6、 图 7和图 8, 本基于 Prof inet带扩展输入输出的控制面板, 包括电源 1、 连接面板 4、 上位机 3, 其特征在于: 还包括通讯板 2 ; 所述的通讯板 2上设有连接电源的 第一端口 20, 还设有连接面板 4的第二端口 21, 还设有第三端口 22, 还设有与上位机 3 通讯的第四端口 23 ; 还设有通讯芯片 6; 所述的通讯芯片 6设有第一通讯口 60、 第二通讯 口 61和第三通讯端口 62 ; 还设有驱动器 7; 所述的第一端口 20的输入端接电源 1的输出 口, 第一端口 20的输出端连接直流变压器 24的输入端; 所述的第二端口 21输入端连接 面板输入输出端口 43, 第二端口 21的输出端连接通讯处理芯片 6的第一通讯端口 60; 所 述的第四端口 23的输入端连接上位机 3的输入输出端口, 第四端口 23的输出端连接通讯 处理芯片 6的第三通讯端口 62; 所述的连接面板 4上面设有按钮 41和指示灯 42; 所述的 第四端口 23采用物理接口为 RJ45 ;第四端口 23与上位机 3采用标准工业以太网 Prof inet 通讯协议; 所述上位机 3分别对按钮 41和指示灯 42采用矩阵扫描的方式进行扫描, 扫描 的结果通过通讯芯片 6传送给上位机 3;上位机 3根据扫描的按钮 41的状态结果进行处理 后判断出处于按下状态的按键 41, 并将控制信号通过通讯芯片 6传送给连接面板 4, 使相 应的指示灯 42点亮或熄灭。
作为优选方案, 参见图 9, 所述按钮 41为矩阵式排列, 形成矩阵式按键; 所述指示灯 42也为矩阵式排列, 形成矩阵式指示灯; 所述矩阵式按键内的每一行按键分别通过一个输 出行线 44并联, 所述输出行线 44与面板输入输出端口 43连接; 矩阵式按键内的每一列 按键通过输入列线 46相并联, 输入列线 46与面板输入输出端口 43连接; 所述矩阵式指 示灯内的每一行指示灯也通过一个输出行线 44相并联, 所述矩阵式指示灯内的每一列指 示灯通过输出列线 45相并联, 输出列线 45与面板输入输出端口 43连接; 上位机 3首先 对输出行线 44从第 n行循环向后逐步置高电平, 同时使输出列线 44全部置高电平, 然后 逐列检查输入列线 46的输入, 如果有输入列线 46也为高电平, 则高电平的输出行线 44 与高电平的输入列线 46相交叉处的按钮 41为按下状态, 所述上位机 3将相应的输出列线 45置为低电平, 使相应的指示灯 42点亮。
还包括扩展端口 5和驱动器 7;所述的第三端口 22输入端连接扩展端口 5的输入输出端口, 第三端口 22的输出端连驱动器 7的输出端, 驱动器 7的输入端连接通讯处理芯片 6的第 二通讯端口 61。 第四端口 23包括 2个 RJ45。 作为优选方案, 如图 10所示, 所述的通讯 处理芯片 6选用 Ertec200芯片, ErteC200是专用处理 prof inet的芯片, 在每个总线周期 将输入的状态通过报文发送给主站, 同时读主站的输出指令写入相应的输出点。
分别利用二片 54AC138扩展输入和输出通道, 只占用三路地址线 AB9 1, 通过控制信 号来区分是读出输入还是写入输出, 如图 1和图 12所示, XRD-PER、 XCS-PER1为读取输 入, XCS-INPUT0对应第一路(T15输入口; 如图 13和图 14所示 XWD-PER、 XCS-PER2为写 入输出, XCS-0UT1对应第二路 (Γ15位输出。 ***最多可对 8路输入输出进行读写, 每路 16位。 输入经总线接收器 74HCT245由数据总线读出。 输出由总线经触发器 74VHCT574写 入, 最后经放大电路放大至 3. 3V。
图 10中, X111引脚布局如表 1所示, 其按键键值表如表 2所示, LED灯值表如表 3所 示, X222引脚定义如表 4所示。
表 1 : X111引脚布局表
Figure imgf000007_0001
5 输入 0. 2 I 6 输入 0. 3 I
7 输入 0. 4 I 8 输入 0. 5 I
9 输入 0. 6 I 10 输入 0. 7 I
11 输入 1. 0 I 12 输入 1. 1 I
13 输入 1. 2 I 14 输入 1. 3 I
15 输入 1. 4 I 16 输入 1. 5 I
17 输入 1. 6 I 18 输入 1. 7 I
19 输入 2. 0 I 20 输入 2. 1 I
21 输入 2. 2 I 22 输入 2. 3 I
23 输入 2. 4 I 24 输入 2. 5 I
25 输入 2. 6 I 26 输入 2. 7 I
27 未占用 28 未占用
29 未占用 30 未占用
31 输出 0. 0 0 32 输出 0. 1 0
33 输出 0. 2 0 34 输出 0. 3 0
35 输出 0. 4 0 36 输出 0. 5 0
37 输出 0. 6 0 38 输出 0. 7 0
39 输出 1. 0 0 40 输出 1. 1 0
41 输出 1. 2 0 42 输出 1. 3 0
43 输出 1. 4 0 44 输出 1. 5 0
45 输出 1. 6 0 46 输出 1. 7 0
47 D0C0M1 VI 48 D0C0M1 VI
49 D0C0M1 VI 50 D0C0M1 VI
VI :电压输入 / V0 :电压输出
I:信号输入 / V0 :信号输出 / GND :基准电位 (接地) 表 2 : 按键键值表
Figure imgf000008_0001
第二列 REP0S KT2 Y
第三列 REF KT3 Z
第四列 TEACH IN KT4 4th AXIS
第五列 INC VAR KT5 5th AXIS
第六列 INC 1 KT6 6th AXIS
第七列 MDA KT7 7th AXIS
第八列 INC 10 KT8 8th AXIS
第九列 INC 100 KT9 9th AXIS
第十列 AUTO KT10 10th AXIS
第十一列 INC 1000 KT11 11th AXIS
第十二列 INC 10000 KT12 WCS/MCS
第十三列 RESET KT13 Direction -
SINGLE
第十四列 KT14 RAP ID
BLOCK
Direction
第十五列 CYCLE STOP KT15
+
CYCKE
第十六列 SPINDLE STOP FEED STOP
START
SPINDLE
第十七列 FEED START
START
第十八列 表 3 : LED灯值表
第一行 第二行 第三行 第一列 LED— J0G LED—KTl LED— X 第二列 LED— REPOS LED—KT2 LED— Y 第三列 LED— REF LED—KT3 LED— Z 第四列 LED— TEACH IN LED—KT4 LED— 4th AXIS 第五列 LED— INC VAR LED—KT5 LED— 5th AXIS 第六列 LED— INC 1 LED—KT6 LED— 6th AXIS 第七列 LED—MDA LED— KT7 LED— 7th AXIS 第八列 LED— INC 10 LED—KT8 LED— 8th AXIS 第九列 LED— INC 100 LED—KT9 LED— 9th AXIS 第十列 LED— AUTO LED—KT10 LED— 10th AXIS 第十一列 LED— INC 1000 LED—KTll LED— 11th AXIS 第十二列 LED— INC 10000 LED—KT12 LED— WCS/MCS 第十三列 LED— RESET LED—KT13 LED— Direction -
LED— SINGLE
第十四列 LED—KT14 LED— RAP ID
BLOCK
LED— CYCLE LED— Direction 第十五列 LED—KT15
STOP +
LED— CYCKE
第十六列 LED— SPINDLE STOP LED— FEED STOP
START
第十七列 LED— SPINDLE START LED— FEED START 第十八列 表 4 : X222引脚定义
Figure imgf000010_0001
19 第一列键 I 20 预留 GND
21 第二列键 I 21 预留 GND
23 第三列键 I 24 预留 GND
25 第四列键 I 26 预留 GND
27 第五列键 I 28 预留 GND
29 第六列键 I 30 预留 GND
31 第七列键 I 32 预留 GND
33 第八列键 I 34 预留 GND
35 第一列灯 0 36 未占用
37 第二列灯 0 38 未占用
39 第三列灯 0 40 未占用
41 第四列灯 0 42 未占用
43 第五列灯 0 44 第九列键 I
45 第六列灯 0 46 第十列键 I
47 第七列灯 0 48 第十一列键 I
49 第八列灯 0 50 第十二列键 I
51 第九列灯 0 52 第十三列键 I
53 第十列灯 0 54 第十四列键 I
55 第十一列灯 0 56 第十五列键 I
57 第十二列灯 0 58 第十六列键 I
59 第十三列灯 0 60 未占用
注: 预留的输入输出可用于扩展面板键; P LED
本基于 Profinet带扩展输入输出的控制面板利用输入输出对面板进行控制, 通过矩 阵方式减少面板控制对输入输出的占用。 由于人眼视觉暂留和 LED余辉效应, 在 LED在 20ms内的闪烁是人眼无法觉察的, 而 PLC的扫描周期是 6ms,则三行扫描的周期是 18ms, 小于 20ms。 所以采用故在实际生产中采用 3 X 18扫描电路, 如图 17所示, 图 17中键和 LED共用三行输出端进行扫描。 在实际使用的 PLC程序改为 3 X 18,控制流程如图 18所示。 运行时, n从 0开始, 当运算值为负数是, 表示不扫描该行。
所述驱动器 7为输出放大电路, 如图 15和图 16所示, 由于用于扩展的输入输出端通 用电压为直流 24V, 而用于面板控制的输入输出电压为直流 3. 3V, 所以要将余出 24输入 16输出用于扩展, 需要对输入端进行分压以及对输出进行驱动放大。
本实施例的按键和指示灯一一对应, 形成组合式的矩阵排列, 即复合式矩阵键盘和指 示灯。 本实施例基于 Profinet通讯技术, 采用 PLC扫描方式来控制面板的键和指示灯, 有效地减少了输入输出点的占用, 从而能将其余的 10扩展出来, 实现面板控制与扩展 10 的复合, 大大节约了成本, 方便了客户的连接, 减少了空间的占用, 增加了可靠性。 具体 而言, 本实施例基于 profinet 的输入输出, 利用输入输出对连接面板进行控制, 通过矩 阵方式减少连接面板控制对输入输出的占用, 从而余出 24输入 16输出用于扩展。

Claims

WO 2014/183621 权 禾1 J 要 求 书 PCT/CN2014/077270
1、 一种基于 Prof inet带扩展输入输出的控制面板, 包括电源 (1)、 连接面板 (4), 其特征在于: 还包括通讯板 (2); 所述的通讯板 (2) 上设有连接电源的第一端口 (20),
还设有连接面板(4) 的第二端口 (21), 还设有第三端口 (22), 还设有用于与上位机(3)
通讯的第四端口 (23); 还设有通讯芯片 (6);
所述的通讯芯片(6)设有第一通讯口 (60)、第二通讯口 (61)和第三通讯端口 (62);
还设有驱动器 (7);
所述的第一端口 (20) 的输入端接电源 ( 1) 的输出口, 第一端口 (20) 的输出端连
接直流变压器 (24) 的输入端;
所述的第二端口 (21) 输入端连接面板输入输出端口 (43), 第二端口 (21) 的输出
端连接通讯处理芯片 (6) 的第一通讯端口 (60);
所述的第四端口 (23) 的输入端连接上位机 (3) 的输入输出端口, 第四端口 23的输
出端连接通讯处理芯片 (6) 的第三通讯端口 (62);
所述的连接面板 (4) 上面设有按钮 (41) 和指示灯 (42);
所述的第四端口 (23) 采用物理接口为 RJ45; 第四端口 (23) 与上位机 (3) 采用标
准工业以太网 Prof inet通讯协议;
所述上位机 (3) 分别对按钮 (41) 和指示灯 (42) 采用矩阵扫描的方式进行扫描,
扫描的结果通过通讯芯片 (6) 传送给上位机 (3); 上位机 (3) 根据扫描的按钮 (41) 的
状态结果进行处理后判断出处于按下状态的按键 (41), 并将控制信号通过通讯芯片 (6)
传送给连接面板 (4), 使相应的指示灯 (42)点亮或熄灭。
2、 根据权利要求 1所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于:
所述按钮 (41) 为矩阵式排列, 形成矩阵式按键; 所述指示灯 (42) 也为矩阵式排列, 形
成矩阵式指示灯; 所述矩阵式按键内的每一行按键分别通过一个输出行线 (44) 并联, 所
述输出行线 (44) 与面板输入输出端口 (43) 连接; 矩阵式按键内的每一列按键通过输入
列线 (46) 相并联, 输入列线 (46) 与面板输入输出端口 (43) 连接; 所述矩阵式指示灯
内的每一行指示灯也通过一个输出行线 (44) 相并联, 所述矩阵式指示灯内的每一列指示
灯通过输出列线 (45) 相并联, 输出列线 (45) 与面板输入输出端口 (43) 连接; 上位机
(3) 首先对输出行线 (44) 从第 n行循环向后逐步置高电平, 同时使输出列线 (44) 全
部置高电平, 然后逐列检查输入列线 (46) 的输入, 如果有输入列线 (46) 也为高电平,
则高电平的输出行线(44)与高电平的输入列线(46)相交叉处的按钮(41)为按下状态, 所述上位机 (3) 将相应的输出列线 (45) 置为低电平, 使相应的指示灯 (42) 点亮。 3、 根据权利要求 2所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 还包括扩展端口 (5) 和驱动器 (7); 所述的第三端口 (22) 输入端连接扩展端口 (5) 的 输入输出端口, 第三端口 (22) 的输出端连驱动器 (7) 的输出端, 驱动器 (7) 的输入端 连接通讯处理芯片 (6) 的第二通讯端口 (61)。
4、 根据权利要求 3所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 第四端口 (23) 包括 2个 RJ45。
5、 根据权利要求 1或 2或 3或 4所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 所述的通讯处理芯片 (6) 选用 Ertec200芯片。
PCT/CN2014/077270 2013-05-13 2014-05-12 基于Profinet带扩展输入输出的控制面板 WO2014183621A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310173174.3 2013-05-13
CN201310173174.3A CN103324101B (zh) 2013-05-13 2013-05-13 基于Profinet带扩展输入输出的控制面板

Publications (1)

Publication Number Publication Date
WO2014183621A1 true WO2014183621A1 (zh) 2014-11-20

Family

ID=49192915

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077270 WO2014183621A1 (zh) 2013-05-13 2014-05-12 基于Profinet带扩展输入输出的控制面板

Country Status (2)

Country Link
CN (1) CN103324101B (zh)
WO (1) WO2014183621A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107841634A (zh) * 2017-11-02 2018-03-27 云南昆钢电子信息科技有限公司 一种电子束冷床熔炼炉操作控制器

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324101B (zh) * 2013-05-13 2015-04-01 胡友前 基于Profinet带扩展输入输出的控制面板
CN107241829A (zh) * 2017-07-04 2017-10-10 厦门芯阳科技股份有限公司 一种led灯和按键复用电路的控制方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2430416Y (zh) * 2000-06-26 2001-05-16 北京市设备安装工程公司电梯维修公司 电梯远程监控***中的信号采集装置
CN101464675A (zh) * 2009-01-09 2009-06-24 西安建筑科技大学 无限点plc开关量输入扩展模块
CN101626247A (zh) * 2008-07-08 2010-01-13 希姆通信息技术(上海)有限公司 键盘扫描方法
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN102522983A (zh) * 2011-12-16 2012-06-27 宝鸡石油机械有限责任公司 一种矩阵式开关量驱动器
CN202486575U (zh) * 2012-03-22 2012-10-10 上海三一精机有限公司 一种采用EtherCAT总线的数控机床控制接口装置
CN103324101A (zh) * 2013-05-13 2013-09-25 胡友前 基于Profinet带扩展输入输出的控制面板

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004032687B3 (de) * 2004-07-06 2005-12-29 Siemens Ag Verfahren zur Überwachung der Funktion eines Slaves in einem Netzwerk nach der PROFIBUS DP- oder PROFInet I/O-Spezifikation
CN1928784A (zh) * 2005-09-07 2007-03-14 李超 键盘及控制方法和***通信方法
CN201122242Y (zh) * 2007-11-30 2008-09-24 徐清泉 烟草切丝机的控制装置
ES2501593T3 (es) * 2010-11-19 2014-10-02 Siemens Aktiengesellschaft Nodo de red de conmutación modular para una red de comunicación
DE102011006668B3 (de) * 2011-04-01 2012-09-13 Siemens Aktiengesellschaft Schnittstellenmodul für ein modulares Steuerungsgerät
CN102156515B (zh) * 2011-04-28 2014-05-07 华南理工大学 一种强扩展性的嵌入式开发板
CN202443667U (zh) * 2012-03-07 2012-09-19 安徽工程大学 一种基于stc单片机教学实验装置
CN203250202U (zh) * 2013-05-13 2013-10-23 胡友前 基于Profinet带扩展输入输出的控制面板

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2430416Y (zh) * 2000-06-26 2001-05-16 北京市设备安装工程公司电梯维修公司 电梯远程监控***中的信号采集装置
CN101626247A (zh) * 2008-07-08 2010-01-13 希姆通信息技术(上海)有限公司 键盘扫描方法
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN101464675A (zh) * 2009-01-09 2009-06-24 西安建筑科技大学 无限点plc开关量输入扩展模块
CN102522983A (zh) * 2011-12-16 2012-06-27 宝鸡石油机械有限责任公司 一种矩阵式开关量驱动器
CN202486575U (zh) * 2012-03-22 2012-10-10 上海三一精机有限公司 一种采用EtherCAT总线的数控机床控制接口装置
CN103324101A (zh) * 2013-05-13 2013-09-25 胡友前 基于Profinet带扩展输入输出的控制面板

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107841634A (zh) * 2017-11-02 2018-03-27 云南昆钢电子信息科技有限公司 一种电子束冷床熔炼炉操作控制器

Also Published As

Publication number Publication date
CN103324101B (zh) 2015-04-01
CN103324101A (zh) 2013-09-25

Similar Documents

Publication Publication Date Title
CN201146580Y (zh) 一种自动测试***及具有接口自动测试功能的电视机
CN206711574U (zh) 显示屏控制器和显示屏控制***
CN201886419U (zh) 一种基于osd芯片的kvm装置
JP2009193561A (ja) Kvmスイッチ及びその作業方法
WO2014183621A1 (zh) 基于Profinet带扩展输入输出的控制面板
CN102096479B (zh) 一种基于smbus具有本地和远程功能的kvm切换器
CN104111390A (zh) 用于实现自动开关机测试的装置
CN102625539B (zh) 一种基于以太网接口的可级联景观照明控制***与方法
CN108520714B (zh) 一种支持oled屏多种工作模式的测试方法及***
CN105319453B (zh) 一种环保数据采集仪测试装置和***
CN201758011U (zh) 液晶电视多通道edid烧录***
CN203250202U (zh) 基于Profinet带扩展输入输出的控制面板
CN204481799U (zh) 一种键盘扫描电路
CN101206602A (zh) 计算机连接器测试仪
CN203025276U (zh) 电容触摸屏模组测试仪
CN204360319U (zh) 一种按键输入显示***
CN206872193U (zh) 无机房电梯监控板
CN216956264U (zh) 一种高集成芯片测试***
CN101702300B (zh) 以太网终端数码管显示装置
CN202168172U (zh) 一种显示产品前端信号的自动彩色校正***
CN204104023U (zh) 基于硬盘录像机的快捷控制键盘
CN204557092U (zh) 具有减少断线功能和蓝牙传输功能的电脑绗缝控制器
CN111711441A (zh) 一种运用于控制器的高低压信号可调接口电路
CN218384464U (zh) 一种多路串口显示器的测试设备
CN208092469U (zh) 一种油墨固化灯电源的通讯板

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14798492

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC

122 Ep: pct application non-entry in european phase

Ref document number: 14798492

Country of ref document: EP

Kind code of ref document: A1