KR20100125721A - Plc system and method for operating the same - Google Patents

Plc system and method for operating the same Download PDF

Info

Publication number
KR20100125721A
KR20100125721A KR1020090044567A KR20090044567A KR20100125721A KR 20100125721 A KR20100125721 A KR 20100125721A KR 1020090044567 A KR1020090044567 A KR 1020090044567A KR 20090044567 A KR20090044567 A KR 20090044567A KR 20100125721 A KR20100125721 A KR 20100125721A
Authority
KR
South Korea
Prior art keywords
output
data
cpu module
module
output modules
Prior art date
Application number
KR1020090044567A
Other languages
Korean (ko)
Inventor
박길환
Original Assignee
엘에스산전 주식회사
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 엘에스산전 주식회사 filed Critical 엘에스산전 주식회사
Priority to KR1020090044567A priority Critical patent/KR20100125721A/en
Publication of KR20100125721A publication Critical patent/KR20100125721A/en

Links

Images

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/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • 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/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1138Configuration of I-O
    • 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/10Plc systems
    • G05B2219/15Plc structure of the system
    • G05B2219/15112Two cpu control plc, select cpu, video switch, with special key

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE: A PLC system and a method for operating the same are provided to simultaneously output all output data to all low level devices through a plurality of output modules. CONSTITUTION: A PLC system comprises a plurality of loads(300-1~300-n), a plurality of output modules(200-1~200-n), and a CPU module(100). The plural output modules correspond to the plural loads respectively. The CPU module controls the plural module which output data each load at the same time.

Description

PLC 시스템 및 그를 이용한 구동방법{PLC SYSTEM AND METHOD FOR OPERATING THE SAME}PLC system and driving method using it {PLC SYSTEM AND METHOD FOR OPERATING THE SAME}

본 발명은 PLC(Programmable Logic controller, 이하 PLC) 시스템 및 그 구동방법에 관한 것으로, 특히 PLC 시스템의 데이터 출력동기화에 관련 것이다.The present invention relates to a programmable logic controller (PLC) system and a driving method thereof, and more particularly, to data output synchronization of a PLC system.

전통적인 산업현장에서 자동화 설비는 릴레이등을 사용한 기계적인 장비로 구성되어 있었다. 기계적인 장비로 되어 있는 자동화 설비의 기능을 바꾸기 위해서는 설비 내부회로의 배선을 다시 일일히 고쳐야 하는 어려움이 있었다. 이러한 점을 해결하고자 만들어진 것이 PLC이다.In traditional industrial sites, automation equipment consisted of mechanical equipment using relays. In order to change the function of the automated equipment, which is a mechanical device, there was a difficulty in rewiring the internal circuit of the equipment. PLC was created to solve this problem.

PLC는 프로그램 가능한 논리적인 컨트롤러이다. PLC는 일반적으로 컴퓨터와 같은 역할을 하는데, 설비에서 오는 신호를 받아서 내부에 프로그램된 내용대로 처리한 이후에 처리된 신호를 설비로 출력한다. PLC는 릴레이, 타이머 및 카운터 등과 같은 제어장치의 기능을 집적소자 및 트랜지스터 등과 같은 반도체 소자로 대체한 것으로서 기본적인 시퀀스 제어 기능에 수치 연산 기능을 추가하여 프로그램 제 어가 가능하고, 내부의 메모리에 미리 저장된 프로그램에 따라 소정의 로직을 수행한다. PLC는 장치제어, 장치 수치세팅, 시간제어, 실시간감시, 실시간 데이터 수집, 및 안전장치 가동 등 다양한 작업에 적용될 수 있다. The PLC is a programmable logical controller. The PLC generally acts like a computer. It receives signals from the facility and processes them as programmed inside, then outputs the processed signals to the facility. PLC replaces the functions of control devices such as relays, timers, and counters with semiconductor devices such as integrated devices and transistors, and adds arithmetic functions to basic sequence control functions, and enables program control. According to the predetermined logic. PLC can be applied to various tasks such as device control, device numerical setting, time control, real-time monitoring, real-time data collection, and safety device operation.

PLC 시스템은 한 베이스에 다양한 기능을 하는 모듈을 구비하고, 이들 모듈을 제어하기 위한 중앙연산장치(Central Process Unit, 이하 CPU)를 두고 있다. 각 모듈중에서는 CPU에서 처리된 데이터를 각 부하로 전달하는 출력모듈이 있다. 여기서 부하란 최종적으로 기능을 수행하기 위한 하위단계에 있는 장치들로, 예를 들면, 리밋스위치, 센서등이 있다. CPU에서 각 출력모듈로 전달되는 데이터의 동기화가 이루어지지 않아서 최종 부하로 데이터가 전달되는 데 상당한 시간이 걸리는 것이 PLC 시스템을 구동하는데 문제가 되고 있다.The PLC system includes a module having various functions in one base and a central processing unit (CPU) for controlling these modules. Among each module is an output module that delivers the data processed by the CPU to each load. Here, the load is a device in the lower stage for finally performing a function, for example, a limit switch, a sensor, and the like. The problem of driving the PLC system is that it takes a considerable time for the data to be transferred to the final load because the data transmitted from the CPU to each output module is not synchronized.

본 발명은 PLC 시스템의 CPU가 입출력 제어를 하는데 있어서, 모든 출력데이터가 하위 모든 디바이스로 실질적으로 동시에 출력되도록 하기 위한 PLC 시스템을 제공함을 목적으로 한다. SUMMARY OF THE INVENTION An object of the present invention is to provide a PLC system for outputting all output data to the lower all devices at the same time when the CPU of the PLC system performs input / output control.

본 발명은 다수의 부하; 상기 다수의 부하에 각각 대응하는 다수의 출력 모듈; 및 상기 다수의 출력 모듈이 각각 대응하는 부하에 데이터를 실질적으로 동시에 출력할 수 있도록 상기 다수의 출력 모듈을 제어하는 CPU 모듈을 구비하는 PLC 시스템을 제공한다.The present invention provides a plurality of loads; A plurality of output modules corresponding to the plurality of loads, respectively; And a CPU module for controlling the plurality of output modules such that the plurality of output modules can output data to the corresponding loads substantially simultaneously.

또한, 본 발명의 CPU 모듈은 상기 다수의 출력모듈을 그룹화하여, 그룹화된 다수의 출력 모듈은 대응하는 부하에 실질적으로 동시에 데이터가 출력될 수 있도록 제어하고, 그룹간에는 순차적으로 데이터가 부하로 출력될 수 있도록 제어한다.In addition, the CPU module of the present invention groups the plurality of output modules so that the grouped output modules can be controlled so that data can be output to the corresponding load substantially simultaneously, and the data can be sequentially output to the loads between the groups. To control.

또한, 본 발명은 CPU 모듈과 다수의 출력모듈을 구비한 PLC 시스템의 구동방법에 있어서, 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계; 상기 CPU 모듈은 상기 다수의 출력모듈로 출력 명령어를 전달하는 단계; 및 상기 다수의 출력모듈이 전달받은 데이터를 실질적으로 동시에 대응하는 부하로 출력하는 단계를 포함하는 PLC 시스템을 제공한다. In addition, the present invention provides a method of driving a PLC system having a CPU module and a plurality of output modules, the method comprising: transferring data from the CPU module to the plurality of output modules; The CPU module transferring output commands to the plurality of output modules; And outputting data received by the plurality of output modules to a corresponding load at substantially the same time.

또한, 본 발명은 상기 출력 명령어에 응답하여는 응답신호를 상기 CPU 모듈 로 전달하는 단계를 더 포함한다.The present invention may further include transmitting a response signal to the CPU module in response to the output command.

또한, 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계는 상기 CPU 모듈에서 상기 다수의 출력모듈로 동기화 명령어를 전달하는 단계; 상기 동기화 명령어에 응답하여 상기 다수의 출력모듈이 CPU 모듈로 제1 응답신호를 출력하는 단계; 및 상기 다수의 출력모듈로 데이터를 전달하는 단계를 포함한다.The transferring of data from the CPU module to the plurality of output modules may include: transmitting a synchronization command from the CPU module to the plurality of output modules; Outputting, by the plurality of output modules, a first response signal to a CPU module in response to the synchronization command; And transferring data to the plurality of output modules.

또한, 상기 다수의 출력모듈로 데이터를 전달하는 단계는 상기 출력모듈이 상기 CPU 모듈에서 전송된 데이터에 응답하여 제2 응답신호를 상기 CPU 모델로 전달하는 단계; 상기 제2 응답신호가 정상적으로 발생하지 않으면, 상기 CPU 모듈에서 상기 출력모듈로 데이터를 재전송하는 단계; 및 상기 재전송된 데이터에 응답하여 제3 응답신호가 발생하지 않으면, 출력모듈에 에러가 있음을 판단하는 단계를 더 포함한다.The transmitting of the data to the plurality of output modules may include: transmitting, by the output module, a second response signal to the CPU model in response to data transmitted from the CPU module; Retransmitting data from the CPU module to the output module if the second response signal does not occur normally; And if the third response signal does not occur in response to the retransmitted data, determining that there is an error in the output module.

또한, 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계는 상기 다수의 모듈에 순차적으로 데이터를 제공하는 것을 특징으로 한다.The transferring of data from the CPU module to the plurality of output modules may be performed by sequentially providing data to the plurality of modules.

또한, 상기 CPU 모듈은 상기 다수의 출력모듈을 그룹화하고, 상기 출력 명령어는 그룹별로 출력되며, 그에 따라 그룹화된 출력모듈은 대응하는 출력 명령어에 따라 대응하는 부하에 데이터를 출력한다.In addition, the CPU module groups the plurality of output modules, and the output commands are output for each group, whereby the grouped output modules output data to corresponding loads according to corresponding output commands.

본 발명에 의한 PLC 시스템을 활용하면, 산업현장에서의 각각 공정끼리 또는 다양한 제어대상의 동작상 동기화 공정을 용이하게 할 수 있다. 미세하고 섬세한 공정 및 동기화가 꼭 필요한 산업현장에서 유용하게 PLC 시스템을 활용할 수 있다.By utilizing the PLC system according to the present invention, it is possible to facilitate the operation synchronization process of each process or various control objects in the industrial field. PLC systems can be used in industrial sites where fine and delicate processes and synchronization are essential.

이하, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 가장 바람직한 실시예를 첨부된 도면을 참조하여 설명하기로 한다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings, in order to facilitate a person skilled in the art to easily carry out the technical idea of the present invention. do.

본 발명은 PLC 시스템의 CPU가 입출력 제어를 하는데 있어서, 모든 출력데이터가 하위 모든 디바이스로 실질적으로 동시에 출력되도록 하는 것이 특징이다. 이로 인해 PLC 시스템의 모든 하위 디바이스 및 각 구동 단계별로 동기화가 용이하다.The present invention is characterized in that in the CPU of the PLC system to control the input and output, all the output data is output at the same time to all the lower devices. This makes it easy to synchronize all the subdevices of each PLC system and each drive step.

도1은 PLC 시스템이 데이터를 출력할 때의 방법을 나타내는 블럭도이다.1 is a block diagram showing a method when a PLC system outputs data.

도1을 참조하여 살펴보면, PLC 시스템의 CPU 모듈(10)은 최종적으로 부하1~n(30_1~30_n)로 출력할 데이터를 가지고 있는데, 먼저 첫번째 출력모듈(20_1)로 출력데이터1을 출력한다. 출력모듈1(20_1)은 이 데이터를 정상적으로 받은 후에 정상적으로 받았음을 알리는 신호인 응답신호(Ack1)를 CPU 모듈(10)로 보낸다. 이어서, CPU 모듈(10)은 출력데이터2를 출력모듈2(20_2)로 출력한다. 출력모듈2(20_2)는 이 데이터를 정상적으로 받은 후에 응답신호(Ack2)를 CPU 모듈(10)로 출력한다. 이런 과정을 n번째 출력모듈(20_n)까지 반복한다. 각 출력모듈(20_1~20_n)은 CPU 모듈(10)로 부터 받은 데이터를 대응하는 부하로 출력한다. 여기서 부하란 최종적으로 기능을 수행하기 위한 하위단계에 있는 장치들로, 예를 들면, 리밋스위치, 센 서등이 있다. Referring to FIG. 1, the CPU module 10 of the PLC system has data to be finally output to the loads 1 to n (30_1 to 30_n), and first outputs the output data 1 to the first output module 20_1. After receiving this data normally, the output module 1 (20_1) sends a response signal (Ack1), which is a signal indicating that the data was received normally, to the CPU module (10). Subsequently, the CPU module 10 outputs the output data 2 to the output module 2 20_2. The output module 2 (20_2) outputs a response signal (Ack2) to the CPU module 10 after receiving this data normally. This process is repeated up to the nth output module 20_n. Each output module 20_1 to 20_n outputs data received from the CPU module 10 to a corresponding load. Here, the load is the devices in the lower stage to finally perform the function, for example, limit switch, sensor.

도2는 도1에 도시된 데이터 출력방법을 자세히 나타내는 플로차트이다.FIG. 2 is a flowchart showing the data output method shown in FIG. 1 in detail.

도2를 참조하여 살펴보면, 먼저, CPU 모듈이 출력리프레쉬 상태가 된다. 이어서, 출력모듈1에게 데이터를 송신한다. 출력모듈1이 데이터를 정상적으로 전달받아 응답신호(Ack1)를 CPU 모듈로 출력하고, 이어서 출력모듈1은 대응하는 부하1로 전달받은 데이터를 출력한다. 이어서, CPU 모듈은 출력모듈2에게 데이터를 전달한다. 만약 CPU 모듈이 정상적으로 응답신호(Ack1)를 출력모듈1로부터 받지 못하면, 다시 출력모듈1에게 데이터를 재송신하고, 이를 출력모듈1이 정상적으로 전달받게 되면, 대응하는 부하1에 전달받은 데이터를 출력한다. 만약 이때에도 출력모듈1이 정상적으로 데이터를 전달받지 못하면, CPU 모듈은 출력모듈1이 이상이 있다고 판단한다. Referring to Figure 2, first, the CPU module is in the output refresh state. Then, data is sent to the output module 1. The output module 1 receives the data normally and outputs the response signal Ack1 to the CPU module, and then the output module 1 outputs the data received to the corresponding load 1. Subsequently, the CPU module delivers data to the output module 2. If the CPU module does not normally receive the response signal Ack1 from the output module 1, it retransmits the data to the output module 1 again, and if the output module 1 is normally received, it outputs the data transmitted to the corresponding load 1. If the output module 1 does not receive data normally, the CPU module determines that the output module 1 is abnormal.

이어서 출력모듈2는 CPU 모듈로부터 정상적으로 데이터를 전달받았으면, 그에 대응하여 응답신호(Ack2)를 CPU 모듈로 출력한다. CPU 모듈은 각 출력모듈에 대응하는 전술한 과정을 n번째 출력모듈까지 계속 수행한다.(A과정 및 B 과정 참조)최종적으로 CPU 모듈은 n 번째 출력모듈까지 데이터를 전달하고, 출력모듈n이 대응하는 부하에 전달받은 데이터를 출력하면, CPU 모듈은 출력리프레쉬 상태를 종료한다. Subsequently, when the output module 2 normally receives data from the CPU module, the output module 2 outputs a response signal Ack2 to the CPU module correspondingly. The CPU module continues to perform the above-described process corresponding to each output module to the nth output module (see steps A and B). Finally, the CPU module delivers data to the nth output module, and output module n responds. When outputting the data transmitted to the load, the CPU module terminates the output refresh state.

도3은 도1에 도시된 PLC 시스템의 데이터 출력방법에 따른 문제점을 나타내는 블럭도이다. 3 is a block diagram illustrating a problem according to a data output method of the PLC system shown in FIG. 1.

도3에 도시된 바와 같이, CPU 모듈이 먼저 출력모듈1로 전달하고, 출력모듈1 은 부하1로 전달받은 데이터를 출력한다. 이때 부하가 전달받은 데이터를 이용하여 예정된 동작을 하는데 걸리는 시간을 x라고 하자. 그러면 n번째 출력모듈에 대응하는 n번째 부하가 데이터를 전달받고, 예정된 동작을 하는데 걸리는 지연시간은 nx+α가 된다. 여기서 α는 부하가 동작하는 시간외의 기타 필요한 시간을 나타낸다. 이와 같이 지연시간이 발생하는 이유는 출력모듈이 순차적으로 대응하는 부하로 데이터를 출력함으로써, 지연이 일어나기 때문이다.As shown in FIG. 3, the CPU module first transmits to the output module 1, and the output module 1 outputs the data received from the load 1. At this time, let x be the time it takes to perform the scheduled operation using the data received from the load. Then, the nth load corresponding to the nth output module receives the data and the delay time for performing the predetermined operation becomes nx + α. Where α represents the required time other than the time that the load operates. The reason for the delay time as described above is that the delay occurs because the output module sequentially outputs data to the corresponding load.

지금까지 살펴본 PLC 시스템의 데이터 출력방법은 각 출력모듈이 각 부하로 데이터를 출력할 때 동기화가 이루어지지 않아서 전체적으로 동작시간이 너무 많은 시간이 걸린다는 문제가 있었다. 본 발명은 이를 해결하기 위해, 각 출력모듈이 대응하는 부하로 데이터를 출력할 때 동기화를 이룰 수 있는 PLC 시스템을 제안한다.The data output method of the PLC system described so far has a problem that the operation time takes too much time because the synchronization is not performed when each output module outputs data to each load. To solve this problem, the present invention proposes a PLC system capable of synchronizing when each output module outputs data to a corresponding load.

도4는 본 발명의 바람직한 실시예에 따른 PLC 시스템이 데이터를 출력할 때의 방법을 나타내는 블럭도이다.4 is a block diagram showing a method when a PLC system outputs data according to a preferred embodiment of the present invention.

도4를 참조하여 살펴보면, CPU 모듈(100)은 각 출력모듈(200_1~200_n)로 전송할 데이터를 가지고 있으며, 먼저 동기화 명령어를 각 출력모듈(200_1~200_n)로 출력한다. 이에 각 출력모듈(200_1~200_n)이 응답신호(Ack0)를 CPU 모듈로 출력한다. 이어서, CPU 모듈은 각 출력모듈(200_1~200_n)에 대응하는 출력데이터를 전달하고, 각각의 출력모듈(200_1~200_n)은 그에 대응하는 응답신호(Ack0~Ackn)를 CPU 모듈로 출력한다. 이어서 CPU 모듈은 출력 명령어를 모든 출력모듈(200_1~200_n)에게 전송하고, 각 출력모듈(200_1~200_n)은 이에 응답하여 각각 대응하는 부하(300_1~300_n)에 CPU 모듈로부터 전송받은 데이터를 출력한다. 출력모 듈(200_1~200_n)은 데이터의 출력 이후에 그에 응답하는 응답신호(Ackx)를 CPU 모듈로 출력한다. 여기서 부하는 전술한 바와 같이, 최종적으로 기능을 수행하기 위한 하위단계에 있는 장치들로, 예를 들면, 리밋스위치, 센서등이 있다. Referring to FIG. 4, the CPU module 100 has data to be transmitted to each output module 200_1 to 200_n, and first outputs a synchronization command to each output module 200_1 to 200_n. Accordingly, each output module 200_1 to 200_n outputs a response signal Ack0 to the CPU module. Subsequently, the CPU module transmits output data corresponding to each output module 200_1 to 200_n, and each output module 200_1 to 200_n outputs a corresponding response signal Ack0 to Ackn to the CPU module. Subsequently, the CPU module transmits an output command to all the output modules 200_1 to 200_n, and each output module 200_1 to 200_n outputs data received from the CPU module to the corresponding loads 300_1 to 300_n, respectively. . The output modules 200_1 to 200_n output a response signal Ackx corresponding thereto after outputting data to the CPU module. Here, as described above, the devices in the lower stage for finally performing a function are, for example, a limit switch and a sensor.

도5는 도4에 도시된 데이터 출력방법을 자세히 나타내는 플로차트이다.FIG. 5 is a flowchart showing the data output method shown in FIG. 4 in detail.

도5를 참조하여 살펴보면, 먼저, CPU 모듈이 출력 리프레쉬 상태가 된다. 이어서, 동기화명령어를 모든 출력모듈(200_1~200_n)에 전송하고, 각 출력모듈(200_1~200_n)은 응답신호(Ack0)를 CPU 모듈(100)로 출력한다. 만약 CPU 모듈(100)이 응답신호(Ack0)를 받지 못한다면, 동기화 명령어를 재송신한다. 이 경우 CPU 모듈(100)이 응답신호(Ack0)를 받는다면, 출력모듈1에게 데이터를 송신하고, 받지 못한다면, 출력모듈에 이상이 있는 것으로 판단한다.Referring to Figure 5, first, the CPU module is in the output refresh state. Subsequently, the synchronization command is transmitted to all output modules 200_1 to 200_n, and each output module 200_1 to 200_n outputs a response signal Ack0 to the CPU module 100. If the CPU module 100 does not receive the response signal Ack0, it retransmits the synchronization command. In this case, if the CPU module 100 receives the response signal Ack0, it transmits data to the output module 1, and if not, it is determined that there is an error in the output module.

계속해서 살펴보면, CPU 모듈(100)은 출력모듈1에게 데이터를 송신하고, 응답신호(Ack1)를 받는다, 만약 응답신호(Ack1)가 CPU 모듈(100)로 전달되지 않으면 CPU 모듈(100)은 데이터를 출력모듈1에게 재전송한다. 이 경우에도 응답신호(Ack1)가 CPU 모듈(100)로 전달되지 않으면, CPU 모듈(100)은 출력모듈1에게 에러가 있는 것으로 판단한다. 응답신호(Ack1)가 CPU 모듈(100)로 전달되면, CPU 모듈(100)은 출력모듈2에게 데이터를 출력한다. 이와 같은 과정으로, CPU 모듈(100)은 n번째 출력모듈(200_n)까지 데이터를 출력하고 나면, 동기화된 출력 명령어를 모든 출력모듈(200_1~200_n)에 전송한다. 출력모듈(200_1~200_n)은 동기화된 출력명령에 응답하여 대응하는 부하로 데이터를 실질적으로 동기시켜 전송하고, 응답신호(Ackx)를 CPU 모듈로 전송한다. CPU 모듈은 응답신호(Ackx)를 입력받으면, 출력 리프레쉬 상 태를 종료한다. Continuing with reference, the CPU module 100 transmits data to the output module 1 and receives a response signal Ack1. If the response signal Ack1 is not transmitted to the CPU module 100, the CPU module 100 transmits the data. Resend to output module 1. Also in this case, if the response signal Ack1 is not transmitted to the CPU module 100, the CPU module 100 determines that the output module 1 has an error. When the response signal Ack1 is transmitted to the CPU module 100, the CPU module 100 outputs data to the output module 2. In this process, after the CPU module 100 outputs data to the nth output module 200_n, the CPU module 100 transmits the synchronized output commands to all the output modules 200_1 to 200_n. The output modules 200_1 to 200_n substantially transmit data in synchronization with the corresponding load in response to the synchronized output command, and transmit a response signal Ackx to the CPU module. When the CPU module receives the response signal Ackx, the output refresh state ends.

이 과정에서 CPU 모듈은 각 출력모듈의 위치에 따라 전달되는 전송시간을 고려하여 각각의 출력모듈로 데이터를 전달할 수 있다. In this process, the CPU module may transfer data to each output module in consideration of the transmission time delivered according to the position of each output module.

또한, 각 출력모듈의 위치적으로 서로 CPU 모듈과 상이한 거리에 위치할 수 있는데, 이 경우 동기화를 이루는데 적당한 출력모듈들을 그룹화시킨다. 그룹화된 출력모듈들로부터 부하로 데이터가 전달되는 경우 동기화를 시키고, 서로 다른 그룹으로 되어 있는 경우에는 순차적으로 데이터를 전달한다.In addition, the position of each output module may be located at a different distance from each other, the CPU module, in this case, group the output modules suitable for achieving synchronization. When data is transferred from the grouped output modules to the load, the data is synchronized. If the data is grouped in different groups, the data is sequentially transmitted.

도6은 도4의 데이터 출력방법을 수행하는데 있어서, 출력모듈을 그룹화할 때를 나타내는 플로차트이다.FIG. 6 is a flowchart illustrating when output modules are grouped in performing the data output method of FIG. 4.

도6에 도시된 바와 같이, 출력모듈을 그룹화하고, 그룹된 출력모듈들의 데이터의 출력타이밍을 동기화시키는 방법을 살펴보면, 먼저 동기화 확인이 되면, 동기지령상태로 가고, 동기화확인이 되지 않으면, 이전과 같은 출력지령으로 출력시퀀스를 수행하여 PLC 시스템에 있는 출력모듈에서는 순차적으로 데이터를 부하로 출력한다. 동기지령 상태에서는 그룹화된 출력모듈에 그룹지령을 내릴 것인지 아닌지를 판단한다. 그룹지령을 내리게 되면, 그룹 동기화 지령 상태에서 그룹화된 출력모듈이 동기화되고, 그룹지령이 없는 상태가 되면, 구비된 출력모듈 전체가 동기화된다.As shown in FIG. 6, a method of grouping output modules and synchronizing output timings of data of the grouped output modules, first, when the synchronization is confirmed, goes to the synchronization command state, and if the synchronization is not confirmed, Output sequence is executed with the same output command, and output module in PLC system outputs data to load sequentially. In the synchronous command state, it is determined whether or not to give a group command to the grouped output modules. When the group command is issued, the grouped output modules are synchronized in the group synchronization command state, and when there is no group command, the entire output module is synchronized.

지금까지 살펴본 바와 같이, 본 실시에에 따른 PLC 시스템은 여러 대의 출력모듈(디지털 입출력 또는 아날로그 입출력)들이 각기 다른 디바이스 및 동일 디바이스들의 출력제어를 할 경우, 출력동기화 명령을 위한 플로우를 추가함으로서, 실 질적으로 동일시간상에 모든 부하를 제어할 수 있다. 따라서 본 실시예에 따른 PLC 시스템이 배치된 곳의 각 공정 및 제어대상의 동기화 공정을 용이하게 할 수 있다. 즉, 미세하고 섬세한 공정 및 동기화가 꼭 필요한 산업현장에서 유용하게 PLC 시스템을 활용할 수 있는 것이다.As described above, the PLC system according to the present embodiment adds a flow for an output synchronization command when multiple output modules (digital input / output or analog input / output) control output of different devices and the same device. Qualitatively all loads can be controlled at the same time. Therefore, it is possible to facilitate the synchronization process of each process and the control object where the PLC system according to the present embodiment is arranged. In other words, the PLC system can be usefully used in the industrial field where minute and delicate processes and synchronization are required.

이상에서 대표적인 실시예를 통하여 본 발명에 대하여 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다. 그러므로 본 발명의 권리범위는 설명된 실시예에 국한되어 정해져서는 안되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Although the present invention has been described in detail with reference to exemplary embodiments above, those skilled in the art to which the present invention pertains can make various modifications to the above-described embodiments without departing from the scope of the present invention. Will understand. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined by the scope of the appended claims, as well as the appended claims.

도1은 PLC 시스템이 데이터를 출력할 때의 방법을 나타내는 블럭도.1 is a block diagram showing a method when a PLC system outputs data.

도2는 도1에 도시된 데이터 출력방법을 자세히 나타내는 플로차트.FIG. 2 is a flowchart showing the data output method shown in FIG. 1 in detail. FIG.

도3은 도1에 도시된 PLC 시스템의 데이터 출력방법에 따른 문제점을 나타내는 블럭도.3 is a block diagram showing a problem according to the data output method of the PLC system shown in FIG.

도4는 본 발명의 바람직한 실시예에 따른 PLC 시스템이 데이터를 출력할 때의 방법을 나타내는 블럭도.4 is a block diagram showing a method when a PLC system outputs data according to a preferred embodiment of the present invention.

도5는 도4에 도시된 데이터 출력방법을 자세히 나타내는 플로차트.FIG. 5 is a flowchart showing in detail the data output method shown in FIG. 4; FIG.

도6은 도4의 데이터 출력방법을 수행하는데 있어서, 출력모듈을 그룹화할 때를 나타내는 플로차트.FIG. 6 is a flowchart showing when output modules are grouped in performing the data output method of FIG. 4; FIG.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

100: CPU 모듈 200_1~200_n: 출력모듈100: CPU module 200_1 to 200_n: output module

300_1~300_n:부하300_1 to 300_n: Load

Claims (8)

다수의 부하;Multiple loads; 상기 다수의 부하에 각각 대응하는 다수의 출력 모듈; 및A plurality of output modules corresponding to the plurality of loads, respectively; And 상기 다수의 출력 모듈이 각각 대응하는 부하에 데이터를 실질적으로 동시에 출력할 수 있도록 상기 다수의 출력 모듈을 제어하는 CPU 모듈A CPU module controlling the plurality of output modules such that the plurality of output modules can output data to a corresponding load substantially simultaneously, respectively 을 구비하는 PLC 시스템.PLC system having a. 제 1 항에 있어서,The method of claim 1, 상기 CPU 모듈은 상기 다수의 출력모듈을 그룹화하여, 그룹화된 다수의 출력 모듈은 대응하는 부하에 실질적으로 동시에 데이터가 출력될 수 있도록 제어하고, 그룹간에는 순차적으로 데이터가 부하로 출력될 수 있도록 제어하는 것을 특징으로 하는 PLC 시스템.The CPU module groups the plurality of output modules so that the grouped output modules control the data to be output to the corresponding load substantially simultaneously, and control the data to be sequentially output to the load between the groups. PLC system, characterized in that. CPU 모듈과 다수의 출력모듈을 구비한 PLC 시스템의 구동방법에 있어서,In a method of driving a PLC system having a CPU module and a plurality of output modules, 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계;Transferring data from the CPU module to the plurality of output modules; 상기 CPU 모듈은 상기 다수의 출력모듈로 출력 명령어를 전달하는 단계; 및The CPU module transferring output commands to the plurality of output modules; And 상기 다수의 출력모듈이 전달받은 데이터를 실질적으로 동시에 대응하는 부 하로 출력하는 단계Outputting the data received by the plurality of output modules to a corresponding load at substantially the same time; 를 포함하는 PLC 시스템.PLC system comprising a. 제 3 항에 있어서,The method of claim 3, wherein 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계는The step of transferring data from the CPU module to the plurality of output modules 상기 CPU 모듈에서 상기 다수의 출력모듈로 동기화 명령어를 전달하는 단계;Transmitting a synchronization command from the CPU module to the plurality of output modules; 상기 동기화 명령어에 응답하여 상기 다수의 출력모듈이 CPU 모듈로 제1 응답신호를 출력하는 단계; 및Outputting, by the plurality of output modules, a first response signal to a CPU module in response to the synchronization command; And 상기 다수의 출력모듈로 데이터를 전달하는 단계를 포함하는 것을 특징으로 하는 PLC 시스템.PLC system comprising the step of transmitting data to the plurality of output modules. 제 3 항에 있어서,The method of claim 3, wherein 상기 출력 명령어에 응답하는 응답신호를 상기 CPU 모듈로 전달하는 단계를 더 포함하는 것을 특징으로 하는 PLC 시스템.And transmitting a response signal in response to the output command to the CPU module. 제 4 항에 있어서,The method of claim 4, wherein 상기 출력모듈이 상기 CPU 모듈에서 전송된 데이터에 응답하여 제2 응답신호 를 상기 CPU 모델로 전달하는 단계;Transmitting, by the output module, a second response signal to the CPU model in response to data transmitted from the CPU module; 상기 제2 응답신호가 정상적으로 발생하지 않으면, 상기 CPU 모듈에서 상기 출력모듈로 데이터를 재전송하는 단계; 및Retransmitting data from the CPU module to the output module if the second response signal does not occur normally; And 상기 재전송된 데이터에 응답하여 제3 응답신호가 발생하지 않으면, 출력모듈에 에러가 있음을 판단하는 단계를 더 포함하는 것을 특징으로 하는 PLC 시스템.And determining that there is an error in the output module if a third response signal does not occur in response to the retransmitted data. 제 3 항에 있어서,The method of claim 3, wherein 상기 CPU 모듈에서 상기 다수의 출력모듈로 데이터를 전달하는 단계는 상기 다수의 모듈에 순차적으로 데이터를 제공하는 것을 특징으로 하는 PLC 시스템.The transferring of data from the CPU module to the plurality of output modules is a PLC system, characterized in that to sequentially provide data to the plurality of modules. 제 3 항에 있어서,The method of claim 3, wherein 상기 CPU 모듈은 상기 다수의 출력모듈을 그룹화하고, 상기 출력 명령어는 그룹별로 출력되며, 그에 따라 그룹화된 출력모듈은 대응하는 출력 명령어에 따라 대응하는 부하에 데이터를 동기시켜 출력하는 것을 특징으로 하는 PLC 시스템.The CPU module groups the plurality of output modules, and the output commands are output for each group, and the grouped output modules accordingly output data in synchronization with a corresponding load according to a corresponding output command. system.
KR1020090044567A 2009-05-21 2009-05-21 Plc system and method for operating the same KR20100125721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090044567A KR20100125721A (en) 2009-05-21 2009-05-21 Plc system and method for operating the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090044567A KR20100125721A (en) 2009-05-21 2009-05-21 Plc system and method for operating the same

Publications (1)

Publication Number Publication Date
KR20100125721A true KR20100125721A (en) 2010-12-01

Family

ID=43503785

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090044567A KR20100125721A (en) 2009-05-21 2009-05-21 Plc system and method for operating the same

Country Status (1)

Country Link
KR (1) KR20100125721A (en)

Similar Documents

Publication Publication Date Title
CN111034128B (en) Control system and control device
US9836038B2 (en) Control device, and control method for link activating and deactivating
JP5408445B2 (en) Programmable controller and master communication circuit
US7877625B2 (en) Efficient architecture for interfacing redundant devices to a distributed control system
KR101555812B1 (en) Data transfer device
US8516355B2 (en) System and method for fault tolerant computing using generic hardware
JP6946024B2 (en) Equipment and methods for controlling automated equipment
US9176919B2 (en) Process controller having multi-channel serial communications link
US10409244B2 (en) Controller and control method
US10452033B2 (en) Process control system
US8521925B2 (en) Method and communication system for determining the time of an event in an IO device
CN107924168B (en) Transfer device, control method of transfer device, and readable recording medium
KR20160125942A (en) Programmable controller system and controller therefor
EP3026556A1 (en) Event generation management for an industrial controller
US11379391B2 (en) Real-time automation device having a real-time data bus
KR20100125721A (en) Plc system and method for operating the same
EP3851925A1 (en) Control system and control device
US11947329B2 (en) Execution environment for running an event-oriented control program
US7636866B2 (en) Situational aware output configuration and execution
US10872044B1 (en) Distributed processing via open ring bus structure
JPH07312787A (en) Remote supervisory controller
JPH11338518A (en) I/o device, input and output method, and control system using i/o device
KR101273812B1 (en) Control module for programmable logic controller and control system using the control module
CN111033400A (en) Control device, control method, and control program
WO2022153557A1 (en) Communication unit, network system, method for controlling output unit, and control program

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination