KR100287533B1 - Method for changing speed of communication between plc and computer - Google Patents
Method for changing speed of communication between plc and computer Download PDFInfo
- Publication number
- KR100287533B1 KR100287533B1 KR1019980004207A KR19980004207A KR100287533B1 KR 100287533 B1 KR100287533 B1 KR 100287533B1 KR 1019980004207 A KR1019980004207 A KR 1019980004207A KR 19980004207 A KR19980004207 A KR 19980004207A KR 100287533 B1 KR100287533 B1 KR 100287533B1
- Authority
- KR
- South Korea
- Prior art keywords
- plc
- communication speed
- computer
- communication
- speed
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/15—Plc structure of the system
- G05B2219/15021—Convertor between plc and pc built into serial communication line
Abstract
Description
본 발명은 PLC 와 컴퓨터 사이의 통신 속도 가변방법에 관한 것으로, 특히 PLC(Programmable Logic Controller : 프로그램 가능 논리 제어)와 PLC를 프로그래밍 하기 위한 PADT (Programming and debugging Tool : 프로그래밍 및 디버깅 툴)이 탑재된 컴퓨터를 연결하는 데 있어서 고정된 통신속도가 아닌 가변 통신속도에 의해 PADT가 탑재된 컴퓨터의 종류에 관계없이 PLC 와 PADT 가 신뢰성이 유지되면서 최고의 속도로 정보를 교환할 수 있도록 하기 위한 것이다.The present invention relates to a method of varying the communication speed between a PLC and a computer, and in particular, a computer equipped with a programmable logic controller (PLC) and a PADT (programming and debugging tool) for programming the PLC. This is to ensure that PLC and PADT can exchange information at the highest speed while maintaining reliability regardless of the type of computer equipped with PADT by variable communication speed, not fixed communication speed.
일반적으로 PLC(Programmable logic controller, 프로그램 가능 논리제어, 프로그램 가능 제어장치)는 입력, 출력, 기억, 연산 제어부를 갖추어 컴퓨터와 아주 닮은 구성인 시퀀스 제어장치이다. 보통 산업용 제어 업무로 사용되는 제어장치로써, 높은 신뢰성과 간편한 제어 소프트웨어, 보수 유지의 간편성, 저렴한 가격 등의 특징을 갖고 있기 때문에 많은 분야에서 사용되고 있다. 적용분야로는 대, 중, 소규모의 공장자동화나 송유관 가스관의 감시제어, 각종 시퀀스제어 등에 사용되고 있다.In general, a programmable logic controller (PLC) is a sequence controller having a configuration very similar to a computer having an input, an output, a memory, and an operation controller. As a control device that is usually used for industrial control tasks, it is used in many fields because of its high reliability, simple control software, ease of maintenance, and low cost. Applications include large, medium and small scale factory automation, monitoring and control of oil pipeline gas pipes, and various sequence control.
기존의 PLC는 PLC와 PADT를 연결하기 위해서는 고정된 통신속도로 연결하는 방법과 하드웨어적인 설정회로의 부가에 의한 가변 통신속도에 의한 연결방법 및 CPU 측에서 계속 통신 포트의 통신 속도를 바꿔가며 외부에서의 통신 요구를 검사하다가 같은 속도의 통신 요구가 감지되는 경우 통신을 시작하는 방법이 사용되고 있다.In order to connect PLC and PADT, existing PLC connects with fixed communication speed, variable communication speed by adding hardware setting circuit, and continuously changes communication speed of communication port on CPU side. The method of checking the communication request of the communication device and starting the communication when a communication request of the same speed is detected is used.
그러나 종래에서와 같이 고정 통신 속도의 경우는 사용자의 컴퓨터에서 지원하는 통신속도가 일정하지 않고 신형 컴퓨터 또는 고급 컴퓨터일수록 최고 지원 통신 속도가 빠르기 때문에 모든 컴퓨터와 연결을 가능하게 하기 위해서는 통신속도를 충분히 낮게 설정해야하는 문제점이 발생하였다.However, in the case of the fixed communication speed as in the prior art, the communication speed supported by the user's computer is not constant, and the newer or higher-end computer has the highest supported communication speed, so that the communication speed is low enough to enable connection with all computers. There is a problem that needs to be set.
또한 데이터의 교환량이 많은 경우에는 PLC와 컴퓨터 사이의 통신에 상당히 긴 시간이 소요되며 반대로 통신속도를 높게 설정하게 되면 컴퓨터에 따라서는 연결이 되지 않는 경우도 있다.In addition, when the amount of data exchange is large, communication between PLC and computer takes a long time. Conversely, if the communication speed is set high, some computers may not be connected.
이러한 점을 보완하여 PLC에 하드웨어적인 통신속도 설정회로를 부가하여 이를 통해 컴퓨터의 통신속도와 맞추는 방법을 사용하지만 이 방법은 하드웨어 회로를 필요로 하여 장비 가격의 상승요인이 된다.Complementing this point, a hardware communication speed setting circuit is added to the PLC, and this method is used to match the communication speed of a computer. However, this method requires a hardware circuit and increases the price of equipment.
그리고 PLC측에서의 통신 속도 가변에 의한 통신 요구 검사에 의한 접속은 PLC 의 CPU 가 항상 자신의 통신 포트의 속도를 바꿔가며 외부의 통신 요구를 검출해야 되기 때문에 접속이 되지 않은 상태에서는 CPU의 효율을 저하시키는 단점이 발생하였다.In case of connection by communication request inspection due to variable communication speed on PLC side, CPU of PLC always changes speed of its own communication port and detects external communication request, which reduces CPU efficiency when not connected. There was a disadvantage.
따라서 본 발명은 이와 같은 문제를 해결하기 위한 것으로 PLC와 컴퓨터의 연결통신속도를 하드웨어적인 회로의 추가 구성없이 소프트웨어적인 방법에 의해 CPU에 부하를 최소화하며 PLC와 PADT가 탑재된 컴퓨터의 통신능력을 최대한 이용할 수 있도록 하는 것에 목적이 있다.Therefore, the present invention is to solve this problem, the connection communication speed between the PLC and the computer to minimize the load on the CPU by software method without additional configuration of the hardware circuit and maximize the communication capability of the computer equipped with the PLC and PADT The purpose is to make it available.
본 발명은 이와 같은 목적을 달성하기 위하여 PADT가 탑재된 컴퓨터와 PLC에 전원이 온 되는 단계와, PLC의 CPU는 충분히 낮은 소정의 통신속도인 9600bps로 통신속도를 설정한 상태로 외부의 통신요구를 기다리는 단계와, PLC 제어용 소프트웨어인 PADT가 설치된 컴퓨터에서 PLC와 통신하기 위하여 초기에 충분히 낮은 속도인 9600bps로 PLC에 통신을 요구하는 신호를 전송하는 단계와, 상기 컴퓨터에서의 통신 요구신호를 접수한 PLC가 9600bps로 응답 신호를 전송하는 단계와, PLC의 응답신호를 접수한 컴퓨터에서는 PADT에 의해 새로운 통신속도로 변경하기 위하여 원하는 새로운 통신속도를 수치화한 정보를 초기 통신 속도인 9600bps의 속도로 PLC에 전송하는 단계와, 컴퓨터의 통신속도를 변경하기 원하는 새로운 통신속도로 변경하는 단계와, PLC에서는 새로운 통신속도 값에 대한 정보를 접수하고 접수된 새로운 통신속도 값으로 통신속도를 변경하는 단계와, 새로운 통신속도로 컴퓨터에 응답신호를 전송하는 단계와, 만약 통신이 끊어지거나 컴퓨터와 PLC가 1:N의 형태로 연결된 경우에는 통신 개시를 처음부터 다시 시도하여 초기 통신 속도로 통신을 시도하게 되는 단계들로 PLC와 컴퓨터의 통신속도를 설정하도록 한다.In order to achieve the above object, the present invention provides a step in which power is turned on to a computer equipped with a PADT and a PLC, and the CPU of the PLC sets an external communication request in a state where the communication speed is set to 9600bps, which is sufficiently low. A step of waiting, and transmitting a signal for requesting communication to the PLC at a speed sufficiently low at 9600bps to communicate with the PLC in a computer having PADT, which is a PLC control software, and a PLC having received the communication request signal from the computer. Transmits the response signal at 9600bps, and the computer that receives the response signal from the PLC transmits the information digitizing the desired new communication speed to the PLC at the speed of 9600bps, which is the initial communication speed, in order to change the new communication speed by PADT. Changing the communication speed of the computer to a new communication speed, and a new communication speed in the PLC. Receiving information about the value and changing the communication speed to the received new communication speed value, transmitting a response signal to the computer at the new communication speed, and if the communication is lost or the computer and PLC are in the form of 1: N In case of connection, the communication speed between the PLC and the computer is set by the steps of trying to start communication again from the beginning and attempting communication at the initial communication speed.
또한 컴퓨터와 PLC 사이에 통신이 개시될 때, 사용자가 PADT에서 통신속도를 선택할 수 있도록 하여 사용자가 선택한 통신 속도에 대한 정보를 초기 통신 속도로 PLC에 전송하여 사용자가 선택한 속도로 컴퓨터와 PLC 가 통신할 수 있도록 한 것이다.In addition, when communication between computer and PLC is initiated, the user can select the communication speed in PADT to transmit information about the communication speed selected by the user to the PLC at the initial communication speed so that the computer and PLC communicate at the speed selected by the user. It is to be done.
도 1 은 본 발명의 동작과정을 나타낸 플로우 차트1 is a flow chart showing the operation of the present invention
도 2 는 PADT가 탑재된 컴퓨터의 개략도2 is a schematic diagram of a computer equipped with a PADT;
도 3 은 본 발명의 다른 실시예에 의한 동작과정을 나타낸 플로우 차트3 is a flowchart illustrating an operation process according to another embodiment of the present invention.
이하, 첨부된 도면을 참고로 본 발명을 상세히 기술하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
도 1 는 본 발명에 의한 동작과정을 나타낸 플로우 차트로서, PADT가 탑재된 컴퓨터와 PLC에 전원이 온 되면(단계 1), PLC의 CPU는 충분히 낮은 소정의 통신속도인 9600bps로 통신속도를 설정한 상태로 외부의 통신요구를 기다리게 되고(단계 2), PLC 제어용 소프트웨어인 PADT가 설치된 컴퓨터에서 PLC와 통신하기 위하여 초기에 충분히 낮은 속도인 9600bps로 PLC에 통신을 요구하는 신호를 전송하게 되며(단계 3), 상기 컴퓨터에서의 통신 요구신호를 접수한 PLC가 응답 신호를 전송하게 되고(단계 4), PLC의 응답신호를 접수한 컴퓨터에서는 PADT에 의해 새로운 통신속도로 변경하기 위하여 원하는 새로운 통신속도를 수치화한 정보를 초기 통신 속도인 9600bps의 속도로 PLC에 전송하게 되며(단계 5), 컴퓨터의 통신속도를 변경하기 원하는 새로운 통신속도로 변경하게 되고(단계 6), PLC에서는 새로운 통신속도 값에 대한 정보를 접수하고 접수된 새로운 통신속도 값으로 통신속도를 변경하게 되며(단계 7), 새로운 통신속도로 컴퓨터에 응답신호를 전송하게 되고(단계 8), 만약 통신이 끊어지거나 컴퓨터와 PLC가 1:N의 형태로 연결된 경우에는 통신 개시를 처음부터 다시 시도하여 초기 통신 속도로 통신을 시도하게 된다(단계 9).1 is a flow chart showing an operation process according to the present invention. When the power source is turned on to a computer equipped with a PADT and a PLC (step 1), the CPU of the PLC sets the communication speed to 9600bps, which is a sufficiently low predetermined communication speed. It waits for an external communication request in the state (step 2), and transmits a signal requesting communication to the PLC at a speed sufficiently low at 9600bps to communicate with the PLC from a computer with PADT, which is a PLC control software. The PLC receiving the communication request signal from the computer transmits a response signal (step 4), and the computer receiving the response signal from the PLC digitizes the desired new communication speed in order to change to the new communication speed by the PADT. One information is transmitted to the PLC at the initial communication speed of 9600bps (step 5), and the new communication speed to change the communication speed of the computer ( In step 6), the PLC receives the information on the new communication speed value and changes the communication speed to the received new communication speed value (step 7), and transmits a response signal to the computer at the new communication speed (step 8). If communication is lost or the computer and the PLC are connected in the form of 1: N, communication start is attempted again from the beginning to attempt communication at the initial communication speed (step 9).
또한 PLC를 제어하는 PADT에 컴퓨터와 PLC 사이에 통신이 개시될 때, 사용자가 PADT에서 통신속도를 선택할 수 있도록 되어 있으면 도 2에 도시된 것과 같이 사용자가 PADT가 탑재된 컴퓨터(11)의 중앙제어장치(12)의 제어를 받는 입력부(13)를 통하여 통신속도를 입력하면 사용자가 선택한 통신속도를 중앙제어장치(12)의 제어에 의해 표시부(14)에 표시하고,In addition, when communication between the computer and the PLC is started in the PADT controlling the PLC, if the user can select a communication speed in the PADT, the user can centrally control the computer 11 equipped with the PADT as shown in FIG. 2. When the communication speed is input through the input unit 13 under the control of the device 12, the communication speed selected by the user is displayed on the display unit 14 under the control of the central controller 12,
도 3의 플로우 차트에 나타낸 것과 같이 PADT가 탑재된 컴퓨터와 PLC에 전원이 온 되면(단계 21), PLC의 CPU는 충분히 낮은 소정의 통신속도인 9600bps로 통신속도를 설정한 상태로 외부의 통신요구를 기다리게 되고(단계 22), PLC 제어용 소프트웨어인 PADT가 설치된 컴퓨터에서 PLC와 통신하기 위하여 초기에 충분히 낮은 속도인 9600bps로 PLC에 통신을 요구하는 신호를 전송하게 되며(단계 23), 상기 컴퓨터에서의 통신 요구신호를 접수한 PLC가 응답 신호를 전송하게 되고(단계 24), PLC의 응답신호를 접수한 컴퓨터에서는 사용자의 입력에 의한 새로운 통신 속도를 입력받게 되면(단계 25), PADT에서 사용자가 지정한 새로운 통신속도를 수치화한 정보를 초기 통신 속도인 9600bps의 속도로 PLC에 전송하게 되며(단계 26), 컴퓨터의 통신속도를 지정된 새로운 통신속도로 변경하게 되고(단계 27), PLC에서는 새로운 통신속도 값에 대한 정보를 접수하고 접수된 새로운 통신속도 값으로 통신속도를 변경하게 되며(단계 28), 새로운 통신속도로 컴퓨터에 응답신호를 전송하게 되고(단계 29), 만약 통신이 끊어지거나 컴퓨터와 PLC가 1:N의 형태로 연결된 경우에는 통신 개시를 처음부터 다시 시도하여 초기 통신 속도로 통신을 시도하게 된다(단계 30).As shown in the flow chart of Fig. 3, when the power is turned on to the computer equipped with the PADT and the PLC (step 21), the CPU of the PLC requests an external communication request with the communication speed set to 9600bps, which is a sufficiently low predetermined communication speed. (Step 22), a computer having PADT, which is a PLC control software, transmits a signal requesting communication to the PLC at a speed sufficiently low at 9600bps to communicate with the PLC (step 23). When the PLC that receives the communication request signal transmits a response signal (step 24), and the computer that receives the response signal from the PLC receives a new communication speed by the user's input (step 25), the user specifies the PADT. The numerical information of the new communication speed is transmitted to the PLC at the initial communication speed of 9600bps (step 26), and the computer communication speed is changed to the specified new communication speed. (Step 27), the PLC receives information on the new communication speed value and changes the communication speed to the received new communication speed value (step 28), and transmits a response signal to the computer at the new communication speed ( Step 29), if communication is lost or the computer and PLC are connected in the form of 1: N, communication start is attempted again from the beginning to attempt communication at the initial communication speed (step 30).
따라서 이와 같은 본 발명은 PLC의 CPU가 단순히 자신의 통신속도를 소정의 속도로 설정하고 외부의 통신 요구만을 기다리면 되므로 CPU의 동작효율을 높일 수 있으며, 별도의 하드웨어적인 회로를 구성하지 않아도 되므로 제품의 제작비용도 낮출 수 있는 효과가 있다.Therefore, the present invention can increase the operation efficiency of the CPU because the CPU of the PLC simply sets its communication speed to a predetermined speed and waits only for external communication requests, and does not need to configure a separate hardware circuit. Production costs can also be lowered.
또한 사용자가 직접 적절한 통신속도 값을 설정하도록 함으로 가장 안정적인 통신속도 값을 선택하여 사용할 수 있게 하는 효과가 있다.In addition, it is effective to select the most stable communication speed value by letting the user set the proper communication speed value.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980004207A KR100287533B1 (en) | 1998-02-12 | 1998-02-12 | Method for changing speed of communication between plc and computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980004207A KR100287533B1 (en) | 1998-02-12 | 1998-02-12 | Method for changing speed of communication between plc and computer |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19990069759A KR19990069759A (en) | 1999-09-06 |
KR100287533B1 true KR100287533B1 (en) | 2001-04-16 |
Family
ID=37515016
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019980004207A KR100287533B1 (en) | 1998-02-12 | 1998-02-12 | Method for changing speed of communication between plc and computer |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100287533B1 (en) |
-
1998
- 1998-02-12 KR KR1019980004207A patent/KR100287533B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR19990069759A (en) | 1999-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1029406B1 (en) | Method of reprogramming memories in field devices over a multidrop network | |
KR100631262B1 (en) | Welding system | |
US7058461B2 (en) | Page back system and method for remote paging in a control system | |
LU100947B1 (en) | Device connection system and method of operation | |
CN101630156B (en) | Programmable music fountain control system | |
KR100287533B1 (en) | Method for changing speed of communication between plc and computer | |
TW200412010A (en) | Embedded internet integrated chip controlled valve actuator | |
US5864300A (en) | Communication system for selecting a communication transmission method | |
JPH01135150A (en) | Node address setting system for network | |
US5940607A (en) | Device and method for automatically selecting a central processing unit driving frequency | |
US5828857A (en) | ASIC cell implementation of a bus controller with programmable timing value registers for the apple desktop bus | |
KR100759480B1 (en) | Serial communication transformation method of plc and transformation system thereof | |
EP4080298A1 (en) | Plc analog module comprising hart pass-through interface | |
CN217543715U (en) | High-performance bus adapter | |
KR20010009477A (en) | Automatic control system of projection machine | |
KR100262864B1 (en) | Communication protocol of plc | |
KR20030082797A (en) | DNC control apparatus and method using internet | |
CN111625255A (en) | Batch offline downloader based on ymodem protocol and upgrading method | |
KR920005234B1 (en) | System network architecture converter system | |
CN202206298U (en) | Non-inductive vector frequency converter | |
KR100446684B1 (en) | Profibus unit with embedded I/O | |
KR200269636Y1 (en) | Auto control system using power line communication | |
KR19990066206A (en) | Remote power control circuit and method using modem and LAN | |
CN114443546A (en) | Data terminal based on industrial control | |
KR930004422B1 (en) | Keyboard connecting apparatus and method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
N231 | Notification of change of applicant | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20091223 Year of fee payment: 10 |
|
LAPS | Lapse due to unpaid annual fee |