WO2014183621A1 - Profinet-based control panel with extended input and output - Google Patents

Profinet-based control panel with extended input and output 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
French (fr)
Chinese (zh)
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/en

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

A profinet-based control panel with extended input and output (IO) comprises a power source (1) and a connection panel (4), and further comprises a communication plate (2). The communication plate (2) is provided with a first port (20), a second port (21), a third port (22), and a fourth port (23) and is further provided with a communication chip (6). The communication chip (6) is provided with a first communication port (60), a second communication port (61), and a third communication port (62), and is further provided with a driver (7). The control panel is connected to an upper computer (3). The upper computer (3) runs a PLC program, and separately scans a button (41) and an indicator light (42) in a matrix scanning manner by using the communication chip (6). The upper computer(3) performs processing according to a state result of the scanned button (41), and then determines a button (41) in a pressed state, and transfers a control signal to the connection panel (4) by using the communication chip (6), so as to light or extinguish a corresponding indicator light (42). The control panel can extend rest IO, and implement recombination of panel control and IO extension, so that the cost is greatly reduced, connection of a client is facilitated, space occupation is reduced, and the reliability is enhanced.

Description

基于 Profinet带扩展输入输出的控制面板  Control panel with extended input and output based on Profinet
技术领域 Technical field
本发明涉及一种基于工业网络总线 Profinet输入输出装置的控制面板, 尤其涉及一 种基于 Profinet带扩展输入输出的控制面板。 背景技术  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
目前在运动控制领域, 最典型为数控机床,, 国内还没有设计制造出基于 Profinet的 控制面板, 国外设计制造的 Prof inet面板不带 10扩展, 所以客户还需要再购买一套基于 Profinet 的输入输出模块, 一套输入输出模块带有 72输入 48输出, 一般用户只需 24输 入 16输出即足够, 余下大部分输入输出造成了浪费。 设计的键盘用来操作机器的运动, 并且安装了对应的指示灯, 例如发光二极管, 用来指示各个键按下后是否生效, 以便操作 者观察。 通常一个键或者一个指示灯需占用 PLC的一个 10点, 当需要大量的键和指示灯 时, 用于键盘和指示灯的输出点数往往大于用于控制的输出点数, 导致成本大幅度的增 高。  At present, in the field of motion control, the most typical is CNC machine tools. 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. Usually, a key or an indicator light occupies a 10 point of the PLC. When a large number of keys and indicators are required, the number of output points for the keyboard and the indicator light is often larger than the number of output points for control, resulting in a substantial increase in cost.
关于矩阵式扫描, 对键盘进行逐行扫描, 方法是: 依次将行线送高电平电平 1, 检查 对应列的状态; 若列线全为 0, 则按键不在此行; 若不全为 0, 则按键必在此行, 且是与 高电平列线相交的那个键。 最后, 确定键值, 并进入键处理程序。 对指示灯进行逐行扫 描。 方法是: 现将行全置为高电平 1, 然后依次置为低电平 0, 检查对应列的键是否生 效; 若生效则将指示灯的列置为 0, 则指示灯亮, 否则置为 1, 没有灯亮。  For matrix scanning, 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.
关于矩阵式设计硬件部分, 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行输出。 Regarding the hardware part of the matrix design, 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. As shown in Figure 1, 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Κ. Working principle: If the input switch K1 is closed, the input signal is converted to the level required by the CPU of the PLC after RC filtering and photoelectric isolation, usually 5V, and then connected to the bus of the CPU through the input selector, thus external input The "0N" state of the switch is input to the PLC. At this time, the input indicator lights, and the input image register corresponding to the input point is "1". If the input switch is off, the signal does not form a path, and the input indicator does not light, indicating "OFF" status. As shown in Figure 2, it is the DC output module of the PLC, where L+ is connected to DC24V; Q0. 0-output point. Working principle: If the user program sets the output to "0N" state, 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. At this time, 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. Conversely, if the user program sets the output to the "OFF" state, the output indicator does not light, as opposed to the above. As shown in FIG. 3, the scanning circuit is a circuit diagram of 8×8 keys and lamp scanning, wherein the line scanning shares 8 lines of output.
关于 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开始, 运 算值为负数时, 表示不扫描该行。 发明内容  Regarding the scanning mode of the PLC, 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. 4: In the design of the keyboard and lights can not consider communication and self-diagnosis, there are three main phases left in one scan cycle: 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. Regarding the setting of the keyboard and indicator light, 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. About the program flow chart, as shown in Figure 5, the program description: n starts from 0, and when the operation value is negative, it means that the line is not scanned.
本发明所要解决的技术问题是针对上述现有技术的不足,提供一种能够节省减少对 10 的占用, 从而带有扩展 10端口的基于 Profinet带扩展输入输出的控制面板。  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.
为解决上述技术问题, 本发明采用的技术方案为: 一种基于 Profinet 带扩展输入输 出的控制面板, 包括电源、 连接面板, 其特征在于: 还包括通讯板; 所述的通讯板上设有 连接电源的第一端口, 还设有连接面板的第二端口, 还设有第三端口, 还设有与上位机 3 通讯的第四端口; 还设有通讯芯片;  In order to solve the above technical problem, the technical solution adopted by the present invention is: 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 input of the transformer;
所述的第二端口输入端连接面板输入输出端口, 第二端口的输出端连接通讯处理芯片 的第一通讯端口; 所述的第四端口的输入端连接上位机的输入输出端口, 第四端口的输出端连接通讯处 理芯片的第三通讯端口; 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;
所述的连接面板上面设有按钮和指示灯;  a button and an indicator light are arranged on the connection panel;
所述的第四端口采用物理接口为 RJ45; 第四端口与上位机采用标准工业以太网 Profinet 通讯协议; 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.
作为本发明进一步改进的技术方案, 所述按钮为矩阵式排列, 形成矩阵式按键; 所述 指示灯也为矩阵式排列, 形成矩阵式指示灯; 所述矩阵式按键内的每一行按键分别通过一 个输出行线并联, 所述输出行线与面板输入输出端口连接; 矩阵式按键内的每一列按键通 过输入列线相并联, 输入列线与面板输入输出端口连接; 所述矩阵式指示灯内的每一行指 示灯也通过一个输出行线相并联, 所述矩阵式指示灯内的每一列指示灯通过输出列线相并 联, 输出列线与面板输入输出端口连接; 上位机首先对输出行线从第 n行循环向后逐步置 高电平, 同时使输出列线全部置高电平, 然后逐列检查输入列线的输入, 如果有输入列线 也为高电平, 则高电平的输出行线与高电平的输入列线相交叉处的按钮为按下状态, 所述 上位机将相应的输出列线置为低电平, 使相应的指示灯点亮。  As a further improvement of the technical solution of the present invention, the 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. From the nth line, 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.
作为本发明进一步改进的技术方案, 还包括扩展端口和驱动器; 所述的第三端口输入 端连接扩展端口的输入输出端口, 第三端口的输出端连驱动器的输出端, 驱动器的输入端 连接通讯处理芯片的第二通讯端口。  As a further improved technical solution of the present invention, 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.
作为本发明进一步改进的技术方案, 第四端口包括 2个 RJ45。  As a further improved technical solution of the present invention, the fourth port includes two RJ45s.
作为本发明进一步改进的技术方案, 所述的通讯处理芯片选用 ErteC200芯片。 本发明基于 Prof inet通讯技术, 采用 PLC扫描方式来控制面板的键和指示灯, 有效 地减少了输入输出点的占用, 从而能将其余的 10扩展出来, 实现面板控制与扩展 10的复 合, 大大节约了成本, 方便了客户的连接, 减少了空间的占用, 增加了可靠性。 附图说明 As a further improvement of the technical solution of the present invention, 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. DRAWINGS
图 1为现有技术中 PLC直流输入模块电路图。  1 is a circuit diagram of a PLC DC input module in the prior art.
图 2为现有技术中 PLC直流输出模块电路图。  2 is a circuit diagram of a PLC DC output module in the prior art.
图 3为现有技术中 8 X 8键和灯扫描电路图。 图 4为 PLC矩阵扫描的工作方式流程图。 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.
图 5 PLC矩阵扫描的程序执行流程图。  Figure 5 Program execution flow chart of PLC matrix scan.
图 6为本发明的结构示意。  Figure 6 is a schematic view of the structure of the present invention.
图 7为本发明的通讯板的结构示意图。  FIG. 7 is a schematic structural view of a communication board of the present invention.
图 8为本发明的连接面板的结构示意图  8 is a schematic structural view of a connection panel of the present invention
图 9为本发明的按键、 指示灯和面板输入输出端口连接示意图。  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.
图 10 为采用 Ertec200时本发明的总体框图  Figure 10 is a general block diagram of the present invention when using Ertec200
图 11为采用 54AC138的扩展输入电路示意图。  Figure 11 is a schematic diagram of an extended input circuit using the 54AC138.
图 12为图 11中 XCS-INPUTO对应第一路 (Γ15输入口的电路示意图。  Figure 12 is a circuit diagram of the XC-INPUTO corresponding to the first channel (Γ15 input port in Figure 11).
图 13为采用 54AC138的扩展输出电路示意图。  Figure 13 is a schematic diagram of an extended output circuit using the 54AC138.
图 14为图 13中 XCS-0UT1对应第二路 (T15位输出的电路示意图。  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.
图 15为扩展输入端分压电路示意图。  Figure 15 is a schematic diagram of the voltage divider circuit of the extended input terminal.
图 16为扩展输出端放大电路示意图。  Figure 16 is a schematic diagram of the amplifier circuit of the extended output terminal.
图 17为本实施例 1的扫描电路示意图。  Figure 17 is a schematic diagram of a scanning circuit of the first embodiment.
图 18为本实施例 1的控制流程示意图。  Figure 18 is a schematic diagram showing the control flow of the first embodiment.
下面结合附图对本发明的具体实施方式作进一步说明。 具体实施方式  The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. detailed description
实施例 1  Example 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点亮或熄灭。 Referring to FIG. 6, FIG. 7 and FIG. 8, 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. And 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.
作为优选方案, 参见图 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点亮。  As a preferred solution, referring to FIG. 9, the 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.
还包括扩展端口 5和驱动器 7;所述的第三端口 22输入端连接扩展端口 5的输入输出端口, 第三端口 22的输出端连驱动器 7的输出端, 驱动器 7的输入端连接通讯处理芯片 6的第 二通讯端口 61。 第四端口 23包括 2个 RJ45。 作为优选方案, 如图 10所示, 所述的通讯 处理芯片 6选用 Ertec200芯片, ErteC200是专用处理 prof inet的芯片, 在每个总线周期 将输入的状态通过报文发送给主站, 同时读主站的输出指令写入相应的输出点。 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 second communication port 61 of 6. The fourth port 23 includes two RJ45s. As a preferred solution, as shown in FIG. 10, 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.
分别利用二片 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。  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 To read the input, 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.
图 10中, X111引脚布局如表 1所示, 其按键键值表如表 2所示, LED灯值表如表 3所 示, X222引脚定义如表 4所示。  In Figure 10, 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.
表 1 : X111引脚布局表
Figure imgf000007_0001
5 输入 0. 2 I 6 输入 0. 3 I
Table 1: X111 Pin Layout Table
Figure imgf000007_0001
5 Input 0. 2 I 6 Input 0. 3 I
7 输入 0. 4 I 8 输入 0. 5 I7 Input 0. 4 I 8 Input 0. 5 I
9 输入 0. 6 I 10 输入 0. 7 I9 Input 0. 6 I 10 Input 0. 7 I
11 输入 1. 0 I 12 输入 1. 1 I11 Input 1. 0 I 12 Input 1. 1 I
13 输入 1. 2 I 14 输入 1. 3 I13 Input 1. 2 I 14 Input 1. 3 I
15 输入 1. 4 I 16 输入 1. 5 I15 Input 1. 4 I 16 Input 1. 5 I
17 输入 1. 6 I 18 输入 1. 7 I17 Input 1. 6 I 18 Input 1. 7 I
19 输入 2. 0 I 20 输入 2. 1 I19 Input 2. 0 I 20 Input 2. 1 I
21 输入 2. 2 I 22 输入 2. 3 I21 Input 2. 2 I 22 Input 2. 3 I
23 输入 2. 4 I 24 输入 2. 5 I23 Input 2. 4 I 24 Input 2. 5 I
25 输入 2. 6 I 26 输入 2. 7 I25 Input 2. 6 I 26 Input 2. 7 I
27 未占用 28 未占用 27 Unoccupied 28 Unoccupied
29 未占用 30 未占用  29 Unoccupied 30 Unoccupied
31 输出 0. 0 0 32 输出 0. 1 0 31 Output 0. 0 0 32 Output 0. 1 0
33 输出 0. 2 0 34 输出 0. 3 033 Output 0. 2 0 34 Output 0. 3 0
35 输出 0. 4 0 36 输出 0. 5 035 Output 0. 4 0 36 Output 0. 5 0
37 输出 0. 6 0 38 输出 0. 7 037 Output 0. 6 0 38 Output 0. 7 0
39 输出 1. 0 0 40 输出 1. 1 039 Output 1. 0 0 40 Output 1. 1 0
41 输出 1. 2 0 42 输出 1. 3 041 Output 1. 2 0 42 Output 1. 3 0
43 输出 1. 4 0 44 输出 1. 5 043 Output 1. 4 0 44 Output 1. 5 0
45 输出 1. 6 0 46 输出 1. 7 045 Output 1. 6 0 46 Output 1. 7 0
47 D0C0M1 VI 48 D0C0M1 VI47 D0C0M1 VI 48 D0C0M1 VI
49 D0C0M1 VI 50 D0C0M1 VI49 D0C0M1 VI 50 D0C0M1 VI
VI :电压输入 / V0 :电压输出 VI: Voltage input / V0 : Voltage output
I:信号输入 / V0 :信号输出 / GND :基准电位 (接地) 表 2 : 按键键值表
Figure imgf000008_0001
第二列 REP0S KT2 Y
I: Signal input / V0 : Signal output / GND : Reference potential (ground) Table 2 : Key value table
Figure imgf000008_0001
The second column REP0S KT2 Y
第三列 REF KT3 Z Third column REF KT3 Z
第四列 TEACH IN KT4 4th AXIS Fourth column TEACH IN KT4 4th AXIS
第五列 INC VAR KT5 5th AXIS Fifth column INC VAR KT5 5th AXIS
第六列 INC 1 KT6 6th AXIS Column 6 INC 1 KT6 6th AXIS
第七列 MDA KT7 7th AXIS Column 7 MDA KT7 7th AXIS
第八列 INC 10 KT8 8th AXIS Eighth column INC 10 KT8 8th AXIS
第九列 INC 100 KT9 9th AXIS Column 9 INC 100 KT9 9th AXIS
第十列 AUTO KT10 10th AXIS Tenth column AUTO KT10 10th AXIS
第十一列 INC 1000 KT11 11th AXIS Eleventh column INC 1000 KT11 11th AXIS
第十二列 INC 10000 KT12 WCS/MCS Twelfth column INC 10000 KT12 WCS/MCS
第十三列 RESET KT13 Direction -Thirteenth column RESET KT13 Direction -
SINGLE SINGLE
第十四列 KT14 RAP ID Fourteenth column KT14 RAP ID
BLOCK  BLOCK
Direction  Direction
第十五列 CYCLE STOP KT15 Fifteenth column CYCLE STOP KT15
+  +
CYCKE  CYCKE
第十六列 SPINDLE STOP FEED STOP Sixteenth column SPINDLE STOP FEED STOP
START START
SPINDLE SPINDLE
第十七列 FEED START Seventeenth column FEED START
START  START
第十八列 表 3 : LED灯值表 Eighteenth column Table 3: LED lamp value table
第一行 第二行 第三行 第一列 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 -First row, second row, third row, first column LED - J0G LED - KTl LED - X Second column LED - REPOS LED - KT2 LED - Y Third column LED - REF LED - KT3 LED - Z Fourth column LED - TEACH IN LED—KT4 LED — 4th AXIS Fifth Column LED — INC VAR LED—KT5 LED — 5th AXIS The sixth column of LEDs - INC 1 LED - KT6 LED - 6th AXIS The seventh column of LEDs - MDA LED - KT7 LED - 7th AXIS The eighth column of LEDs - INC 10 LED - KT8 LED - 8th AXIS ninth column LED - INC 100 LED - KT9 LED - 9th AXIS 10th LED - AUTO LED - KT10 LED - 10th AXIS 11th LED - INC 1000 LED - KTll LED - 11th AXIS 12th LED - INC 10000 LED - KT12 LED - WCS / MCS Thirteen columns of LEDs - RESET LED - KT13 LED - Direction -
LED— SINGLE LED — SINGLE
第十四列 LED—KT14 LED— RAP ID  Fourteenth column LED-KT14 LED - RAP ID
BLOCK BLOCK
LED— CYCLE LED— Direction 第十五列 LED—KT15 LED — CYCLE LED — Direction Column 15 LED—KT15
STOP + STOP +
LED— CYCKE LED — CYCKE
第十六列 LED— SPINDLE STOP LED— FEED STOP  Sixteenth column LED — SPINDLE STOP LED — FEED STOP
START  START
第十七列 LED— SPINDLE START LED— FEED START 第十八列 表 4 : X222引脚定义  Column 17 LED - SPINDLE START LED - FEED START Table 18 Table 4: X222 Pin Definition
Figure imgf000010_0001
19 第一列键 I 20 预留 GND
Figure imgf000010_0001
19 first column key I 20 reserved GND
21 第二列键 I 21 预留 GND  21 Second column key I 21 Reserved GND
23 第三列键 I 24 预留 GND  23 Third column key I 24 Reserved GND
25 第四列键 I 26 预留 GND  25 Fourth column key I 26 Reserved GND
27 第五列键 I 28 预留 GND  27 Fifth column key I 28 Reserved GND
29 第六列键 I 30 预留 GND  29 sixth column key I 30 reserved GND
31 第七列键 I 32 预留 GND  31 seventh column key I 32 reserved GND
33 第八列键 I 34 预留 GND  33 eighth column key I 34 reserved GND
35 第一列灯 0 36 未占用  35 First row of lights 0 36 Unoccupied
37 第二列灯 0 38 未占用  37 Second row of lights 0 38 Unoccupied
39 第三列灯 0 40 未占用  39 Third row of lights 0 40 Unoccupied
41 第四列灯 0 42 未占用  41 Fourth row of lights 0 42 Unoccupied
43 第五列灯 0 44 第九列键 I  43 fifth column light 0 44 ninth column key I
45 第六列灯 0 46 第十列键 I  45 sixth column light 0 46 tenth column key I
47 第七列灯 0 48 第十一列键 I  47 seventh column light 0 48 eleventh column key I
49 第八列灯 0 50 第十二列键 I  49 eighth column light 0 50 twelfth column key I
51 第九列灯 0 52 第十三列键 I  51 ninth column light 0 52 thirteenth column key I
53 第十列灯 0 54 第十四列键 I  53 Tenth column light 0 54 Fourteenth column key I
55 第十一列灯 0 56 第十五列键 I  55 eleventh column light 0 56 fifteenth column key I
57 第十二列灯 0 58 第十六列键 I  57 twelfth column lamp 0 58 column sixteen button I
59 第十三列灯 0 60 未占用  59 thirteenth column light 0 60 unoccupied
注: 预留的输入输出可用于扩展面板键; P LED Note: Reserved input and output can be used to expand the panel keys; P LED
本基于 Profinet带扩展输入输出的控制面板利用输入输出对面板进行控制, 通过矩 阵方式减少面板控制对输入输出的占用。 由于人眼视觉暂留和 LED余辉效应, 在 LED在 20ms内的闪烁是人眼无法觉察的, 而 PLC的扫描周期是 6ms,则三行扫描的周期是 18ms, 小于 20ms。 所以采用故在实际生产中采用 3 X 18扫描电路, 如图 17所示, 图 17中键和 LED共用三行输出端进行扫描。 在实际使用的 PLC程序改为 3 X 18,控制流程如图 18所示。 运行时, n从 0开始, 当运算值为负数是, 表示不扫描该行。  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.
所述驱动器 7为输出放大电路, 如图 15和图 16所示, 由于用于扩展的输入输出端通 用电压为直流 24V, 而用于面板控制的输入输出电压为直流 3. 3V, 所以要将余出 24输入 16输出用于扩展, 需要对输入端进行分压以及对输出进行驱动放大。 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.
本实施例的按键和指示灯一一对应, 形成组合式的矩阵排列, 即复合式矩阵键盘和指 示灯。 本实施例基于 Profinet通讯技术, 采用 PLC扫描方式来控制面板的键和指示灯, 有效地减少了输入输出点的占用, 从而能将其余的 10扩展出来, 实现面板控制与扩展 10 的复合, 大大节约了成本, 方便了客户的连接, 减少了空间的占用, 增加了可靠性。 具体 而言, 本实施例基于 profinet 的输入输出, 利用输入输出对连接面板进行控制, 通过矩 阵方式减少连接面板控制对输入输出的占用, 从而余出 24输入 16输出用于扩展。  The 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. Specifically, 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.

Claims

WO 2014/183621 权 禾1 J 要 求 书 PCT/CN2014/077270 WO 2014/183621 Quanhe 1 J Request for Proposal PCT/CN2014/077270
1、 一种基于 Prof inet带扩展输入输出的控制面板, 包括电源 (1)、 连接面板 (4), 其特征在于: 还包括通讯板 (2); 所述的通讯板 (2) 上设有连接电源的第一端口 (20), 1. A control panel based on Prof inet with extended input and output, comprising a power supply (1) and a connection panel (4), characterized in that: further comprising a communication board (2); wherein the communication board (2) is provided Connect the first port of the power supply (20),
还设有连接面板(4) 的第二端口 (21), 还设有第三端口 (22), 还设有用于与上位机(3) There is also a second port (21) of the connection panel (4), and a third port (22), which is also provided for use with the host computer (3)
通讯的第四端口 (23); 还设有通讯芯片 (6); The fourth port of communication (23); also has a communication chip (6);
所述的通讯芯片(6)设有第一通讯口 (60)、第二通讯口 (61)和第三通讯端口 (62);  The communication chip (6) is provided with a first communication port (60), a second communication port (61) and a third communication port (62);
还设有驱动器 (7); There is also a drive (7);
所述的第一端口 (20) 的输入端接电源 ( 1) 的输出口, 第一端口 (20) 的输出端连  The input end of the first port (20) is connected to the output port of the power source (1), and the output end of the first port (20) is connected.
接直流变压器 (24) 的输入端; Connect the input of the DC transformer (24);
所述的第二端口 (21) 输入端连接面板输入输出端口 (43), 第二端口 (21) 的输出  The second port (21) input is connected to the panel input/output port (43), and the output of the second port (21)
端连接通讯处理芯片 (6) 的第一通讯端口 (60); Connecting the first communication port (60) of the communication processing chip (6);
所述的第四端口 (23) 的输入端连接上位机 (3) 的输入输出端口, 第四端口 23的输  The input end of the fourth port (23) is connected to the input and output port of the upper computer (3), and the input of the fourth port 23
出端连接通讯处理芯片 (6) 的第三通讯端口 (62); The third communication port (62) of the communication processing chip (6) is connected to the output terminal;
所述的连接面板 (4) 上面设有按钮 (41) 和指示灯 (42);  The connecting panel (4) is provided with a button (41) and an indicator light (42);
所述的第四端口 (23) 采用物理接口为 RJ45; 第四端口 (23) 与上位机 (3) 采用标  The fourth port (23) adopts a physical interface of RJ45; the fourth port (23) and the upper computer (3) adopt a standard
准工业以太网 Prof inet通讯协议; Quasi-industrial Ethernet Prof inet communication protocol;
所述上位机 (3) 分别对按钮 (41) 和指示灯 (42) 采用矩阵扫描的方式进行扫描,  The upper computer (3) scans the button (41) and the indicator light (42) by matrix scanning.
扫描的结果通过通讯芯片 (6) 传送给上位机 (3); 上位机 (3) 根据扫描的按钮 (41) 的 The result of the scan is transmitted to the host computer via the communication chip (6) (3); the host computer (3) is based on the scanned button (41)
状态结果进行处理后判断出处于按下状态的按键 (41), 并将控制信号通过通讯芯片 (6) After the status result is processed, the button (41) in the pressed state is judged, and the control signal is passed through the communication chip (6).
传送给连接面板 (4), 使相应的指示灯 (42)点亮或熄灭。 Transfer to the connection panel (4) to turn the corresponding indicator (42) on or off.
2、 根据权利要求 1所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于:  2. The control panel based on the Prof inet band extended input and output according to claim 1, wherein:
所述按钮 (41) 为矩阵式排列, 形成矩阵式按键; 所述指示灯 (42) 也为矩阵式排列, 形 The buttons (41) are arranged in a matrix to form a matrix button; the indicator lights (42) are also arranged in a matrix,
成矩阵式指示灯; 所述矩阵式按键内的每一行按键分别通过一个输出行线 (44) 并联, 所 a matrix indicator light; each row of buttons in the matrix button is connected in parallel through an output row line (44), respectively
述输出行线 (44) 与面板输入输出端口 (43) 连接; 矩阵式按键内的每一列按键通过输入 The output line (44) is connected to the panel input/output port (43); each column button in the matrix button is input through
列线 (46) 相并联, 输入列线 (46) 与面板输入输出端口 (43) 连接; 所述矩阵式指示灯 The column lines (46) are connected in parallel, and the input column line (46) is connected to the panel input/output port (43); the matrix indicator light
内的每一行指示灯也通过一个输出行线 (44) 相并联, 所述矩阵式指示灯内的每一列指示 Each row of indicators within is also connected in parallel by an output row line (44), each column within the matrix indicator
灯通过输出列线 (45) 相并联, 输出列线 (45) 与面板输入输出端口 (43) 连接; 上位机 The lamps are connected in parallel through the output column line (45), and the output column line (45) is connected to the panel input/output port (43);
(3) 首先对输出行线 (44) 从第 n行循环向后逐步置高电平, 同时使输出列线 (44) 全  (3) First, the output row line (44) is gradually turned from the nth line to the high level, and the output column line (44) is fully
部置高电平, 然后逐列检查输入列线 (46) 的输入, 如果有输入列线 (46) 也为高电平, Set the high level, then check the input of the input column line (46) column by column, if the input column line (46) is also high,
则高电平的输出行线(44)与高电平的输入列线(46)相交叉处的按钮(41)为按下状态, 所述上位机 (3) 将相应的输出列线 (45) 置为低电平, 使相应的指示灯 (42) 点亮。 3、 根据权利要求 2所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 还包括扩展端口 (5) 和驱动器 (7); 所述的第三端口 (22) 输入端连接扩展端口 (5) 的 输入输出端口, 第三端口 (22) 的输出端连驱动器 (7) 的输出端, 驱动器 (7) 的输入端 连接通讯处理芯片 (6) 的第二通讯端口 (61)。 Then, the button (41) at the intersection of the high-level output line (44) and the high-level input column line (46) is in a pressed state, and the upper computer (3) will have a corresponding output column line (45). ) Set low to illuminate the corresponding indicator (42). 3. The control panel based on the Prof inet band extended input and output according to claim 2, further comprising: an expansion port (5) and a driver (7); and the third port (22) input connection extension The input port of port (5), the output of the third port (22) is connected to the output of the driver (7), and the input of the driver (7) is connected to the second communication port (61) of the communication processing chip (6).
4、 根据权利要求 3所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 第四端口 (23) 包括 2个 RJ45。  4. The control panel based on the Prof inet band extended input and output according to claim 3, wherein the fourth port (23) comprises two RJ45s.
5、 根据权利要求 1或 2或 3或 4所述的基于 Prof inet带扩展输入输出的控制面板, 其特征在于: 所述的通讯处理芯片 (6) 选用 Ertec200芯片。  The control panel based on the Prof inet band extension input/output according to claim 1 or 2 or 3 or 4, wherein: the communication processing chip (6) selects an Ertec 200 chip.
PCT/CN2014/077270 2013-05-13 2014-05-12 Profinet-based control panel with extended input and output WO2014183621A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310173174.3 2013-05-13
CN201310173174.3A CN103324101B (en) 2013-05-13 2013-05-13 Profinet-based control panel with expanded input and output

Publications (1)

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

Family

ID=49192915

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077270 WO2014183621A1 (en) 2013-05-13 2014-05-12 Profinet-based control panel with extended input and output

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107841634A (en) * 2017-11-02 2018-03-27 云南昆钢电子信息科技有限公司 A kind of electron beam cold hearth melting stove operational control device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324101B (en) * 2013-05-13 2015-04-01 胡友前 Profinet-based control panel with expanded input and output
CN107241829A (en) * 2017-07-04 2017-10-10 厦门芯阳科技股份有限公司 A kind of control method of LED and button multiplexing circuit

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2430416Y (en) * 2000-06-26 2001-05-16 北京市设备安装工程公司电梯维修公司 Signal collector in lift remote control system
CN101464675A (en) * 2009-01-09 2009-06-24 西安建筑科技大学 Infinite point PLC on-off value input expansion module
CN101626247A (en) * 2008-07-08 2010-01-13 希姆通信息技术(上海)有限公司 Method for scanning keyboard
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN102522983A (en) * 2011-12-16 2012-06-27 宝鸡石油机械有限责任公司 Matrix array switching value driver
CN202486575U (en) * 2012-03-22 2012-10-10 上海三一精机有限公司 Numerical control machine tool control interface device using EtherCAT bus
CN103324101A (en) * 2013-05-13 2013-09-25 胡友前 Profinet-based control panel with expanded input and output

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004032687B3 (en) * 2004-07-06 2005-12-29 Siemens Ag Method for monitoring function of slave in master-slave network e.g. in automation systems, involves master reading and testing output data in acyclic data traffic with slave
CN1928784A (en) * 2005-09-07 2007-03-14 李超 Keyboard, control method and system communication method
CN201122242Y (en) * 2007-11-30 2008-09-24 徐清泉 Control device of filament cutter for tobacco
ES2501593T3 (en) * 2010-11-19 2014-10-02 Siemens Aktiengesellschaft Modular switching network node for a communication network
DE102011006668B3 (en) * 2011-04-01 2012-09-13 Siemens Aktiengesellschaft Interface module for a modular control device
CN102156515B (en) * 2011-04-28 2014-05-07 华南理工大学 Embedded developing board having strong expansibility
CN202443667U (en) * 2012-03-07 2012-09-19 安徽工程大学 Experimental device based on STC MCU (micro controller unit) teaching
CN203250202U (en) * 2013-05-13 2013-10-23 胡友前 Control panel with expansion input and output and based on Profinet

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2430416Y (en) * 2000-06-26 2001-05-16 北京市设备安装工程公司电梯维修公司 Signal collector in lift remote control system
CN101626247A (en) * 2008-07-08 2010-01-13 希姆通信息技术(上海)有限公司 Method for scanning keyboard
WO2010072701A1 (en) * 2008-12-23 2010-07-01 Abb Research Ltd. Power over ethernet in a redundant ring data network
CN101464675A (en) * 2009-01-09 2009-06-24 西安建筑科技大学 Infinite point PLC on-off value input expansion module
CN102522983A (en) * 2011-12-16 2012-06-27 宝鸡石油机械有限责任公司 Matrix array switching value driver
CN202486575U (en) * 2012-03-22 2012-10-10 上海三一精机有限公司 Numerical control machine tool control interface device using EtherCAT bus
CN103324101A (en) * 2013-05-13 2013-09-25 胡友前 Profinet-based control panel with expanded input and output

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107841634A (en) * 2017-11-02 2018-03-27 云南昆钢电子信息科技有限公司 A kind of electron beam cold hearth melting stove operational control device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN201146580Y (en) Automatic test system and television with function of automatically testing interface
CN201886419U (en) KVM (K Virtual Machine) device based on OSD chip
JP2009193561A (en) Kvm switch and its work method
WO2014183621A1 (en) Profinet-based control panel with extended input and output
CN102096479B (en) SMBUS-based KVM switch with local and remote functions
CN208225041U (en) Bmc module display system
CN102625539B (en) Ethernet interface-based cascading landscape illumination control system and method
CN108520714B (en) Test method and system supporting multiple working modes of OLED screen
CN203250202U (en) Control panel with expansion input and output and based on Profinet
CN100573467C (en) Test board and test macro
CN204481799U (en) A kind of keyboard scanning circuit
CN101206602A (en) Computer connector tester
CN209590825U (en) A kind of monitor keyboard system
CN207115918U (en) Split screen device, combination of liquid crystals display screen under single-chip microcomputer control
CN203025276U (en) Tester of capacitive touch screen module
CN204360319U (en) A kind of key-press input display system
CN216956264U (en) High-integration chip test system
CN101702300B (en) Ethernet terminal digital tube display device
CN202168172U (en) Automatic color correction system of display product front-end signal
CN204104023U (en) Based on the quick supervisory keyboard of DVR
CN204557092U (en) There is the computer quilting controller reducing disconnection function and Bluetooth transmission function
CN111711441A (en) Apply to adjustable interface circuit of high-low pressure signal of controller
CN204302699U (en) A kind of control system being realized the control of touch-screen One screen multi-machine by short circuit port
CN100383685C (en) Programmable multi channels module for monitoring power supply based on HSP430 single chip
CN218384464U (en) Test equipment of multichannel serial ports display

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