KR20170111109A - Synchronize method for output of fixed cycle operation plc system - Google Patents

Synchronize method for output of fixed cycle operation plc system Download PDF

Info

Publication number
KR20170111109A
KR20170111109A KR1020160035929A KR20160035929A KR20170111109A KR 20170111109 A KR20170111109 A KR 20170111109A KR 1020160035929 A KR1020160035929 A KR 1020160035929A KR 20160035929 A KR20160035929 A KR 20160035929A KR 20170111109 A KR20170111109 A KR 20170111109A
Authority
KR
South Korea
Prior art keywords
output
modules
module
data
time
Prior art date
Application number
KR1020160035929A
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 KR1020160035929A priority Critical patent/KR20170111109A/en
Publication of KR20170111109A publication Critical patent/KR20170111109A/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
    • G05B19/054Input/output
    • 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/13Plc programming
    • G05B2219/13063Synchronization between modules

Abstract

본 발명은 고정주기 운전 PLC 시스템의 출력 동기화 방법에 대한 것으로서, 특히 모든 모듈에서 입출력 리프레시 시점이 동일한 고정주기 운전 PLC 시스템의 출력 동기화 방법에 관한 것이다. 이를 위해서, 본 발명은 다수의 기타 모듈과 CPU 모듈의 고정주기 시간 및 현재시간을 동기화한 후, 모든 기타 모듈에 CPU 모듈의 사용자 프로그램 연산 결과인 데이터가 수신되는 것을 확인한다. 이후, 일정시간 대기하고 모든 기타 모듈이 수신한 데이터를 출력한다. 이에 따라, 본 발명은 기타 모듈이 CPU 모듈에서 출력된 데이터를 사용자가 설정한 고정주기 시간에 맞춰 동시에 출력하여 정밀한 출력 제어가 가능하며 CPU 모듈의 부하를 감소시킬 수 있다. 또한, CPU 모듈에서 전송하는 데이터의 개수를 1개 추가 전송하여 기타 모듈의 출력 시간을 맞추는 방식이므로 기존 PLC 시스템을 구조 변경 없이 사용할 수 있다.The present invention relates to an output synchronization method of a fixed period operation PLC system, and more particularly, to an output synchronization method of a fixed period operation PLC system having the same input / output refresh time in all modules. To this end, the present invention synchronizes a fixed cycle time and a current time of a plurality of other modules with a CPU module, and confirms that all the other modules receive data as a result of a user program operation of the CPU module. Then, it waits for a certain time and outputs the data received by all other modules. Accordingly, the present invention can simultaneously output the data output from the CPU module by the other module in accordance with the fixed cycle time set by the user, thereby precisely controlling the output and reducing the load of the CPU module. In addition, since the number of data transmitted from the CPU module is further increased to one, the output time of the other module is matched, so that the existing PLC system can be used without modification.

Figure P1020160035929
Figure P1020160035929

Description

고정주기 운전 PLC 시스템의 출력 동기화 방법{SYNCHRONIZE METHOD FOR OUTPUT OF FIXED CYCLE OPERATION PLC SYSTEM}TECHNICAL FIELD [0001] The present invention relates to a synchronous output method for a PLC system,

본 발명은 고정주기 운전 PLC 시스템의 출력 동기화 방법에 대한 것으로서, 특히 모든 모듈에서 입출력 리프레시 시점이 동일한 고정주기 운전 PLC 시스템의 출력 동기화 방법에 관한 것이다.
The present invention relates to an output synchronization method of a fixed period operation PLC system, and more particularly, to an output synchronization method of a fixed period operation PLC system having the same input / output refresh time in all modules.

프로그램 가능 로직 제어기(Programmable Logic Controller, PLC 이하 PLC라 함)는 기존의 각종 릴레이와 타이머, 카운터 등의 기능을 마이크로프로세서를 이용한 프로그램으로 제어할 수 있게 통합시킨 장치를 의미한다. 이러한 PLC는 다양한 기능의 모듈들이 모여 유기적으로 시스템을 구성하고, 사용 목적에 따라 소규모 공장에서부터 대규모 플랜트까지 각종 제어기기들을 총괄 관리하는 핵심 제품이다.A programmable logic controller (PLC) is a device that integrates functions of existing relays, timers, counters, etc. in a controlled manner using a microprocessor. These PLCs are a core product that collectively manages various control devices from small scale plants to large plants according to the purpose of use by organizing system with various function modules gathered.

PLC는 각종 기능을 하는 모듈들이 모여 하나의 PLC 시스템을 이루며 이 시스템을 제어 및 감시하는 것은 CPU 모듈이다. CPU 모듈의 기능은 크게 3가지로 구분을 할 수 있는데 모듈 제어, 사용자 프로그램 연산, 시스템 진단 기능이다. 특히 사용자 프로그램 연산은 사용자가 작성한 다양한 기능들의 조합으로 구성되어 있으며 이러한 기능 조합들의 연산 결과를 바탕으로 CPU는 모듈에 데이터를 전달하거나 가져온다. 여기서 사용자 프로그램 연산의 방법은 대략 몇 가지 방법으로 운용을 하는데 정주기 연산 방식, 고정주기 연산 방식, 일반적인 스캔 연산 방식이 대표적인 운용방식이다.A PLC is a CPU module that controls and monitors this system. The functions of the CPU module can be classified into three types: module control, user program operation, and system diagnosis function. In particular, the user program operation consists of a combination of various functions created by the user. Based on the operation result of these function combinations, the CPU transfers or fetches the data to the module. Here, the user program operation method is operated by several methods. The regular operation method, the fixed cycle operation method, and the general scan operation method are typical operating methods.

도 1은 종래 기술에 따른 PLC 시스템의 고정주기 운전 방법에서 한 스캔의 순서도이며, 도 2는 종래 기술에 따른 PLC 시스템의 고정주기 운전 방법에서 사용자 프로그램 연산 종료 후 기타 모듈에 데이터 전송 및 기타 모듈의 출력 과정을 도시한 순서도이다. FIG. 1 is a flowchart of one scan in a fixed period operation method of a PLC system according to the related art. FIG. 2 is a flowchart illustrating a method of operating a fixed period operation of a PLC system according to the related art, And FIG.

종래 기술에 따른 PLC 시스템의 고정주기 운전 방법은 도 1에 도시된 바와 같이 한 스캔(한 주기)이, 초기화 처리 단계(S1)와 입력 이미지 영역 리프레시 단계(S2), 프로그램 연산 처리 단계(S3), 출력 이미지 영역 리프레시 단계(S4) 및 종료 처리 단계(S5)를 포함한다. PLC 시스템에서는 사용자 프로그램 연산이 종료되면 처리된 결과값을 실제 모듈에 전달하기 위해서 출력 리프레시를 수행한다. 따라서, 출력 리프레시의 시작 시간은 사용자 프로그램 연산 종료 시간에 의해 결정된다. 즉, 실제 기타 모듈에서의 출력은 프로그램 연산이 종료되고 기타 모듈로의 출력 리프레시 이후에 수행된다. 하지만, 사용자 프로그램은 매 스캔마다 연산 시간이 상이할 수 있으며, 이에 따라 실제 기타 모듈에서의 출력 시점, 즉, 출력 리프레시 시점은 매 스캔마다 상이할 수 있는 문제점이 있다.The fixed period operation method of the PLC system according to the related art is characterized in that one scan (one cycle) is performed in the initialization processing step S1, the input image area refresh step S2, the program operation processing step S3, An output image area refresh step S4, and an end processing step S5. In the PLC system, when user program operation is completed, output refresh is performed to transfer the processed result value to the actual module. Therefore, the start time of the output refresh is determined by the user program operation end time. That is, the output from the actual other module is executed after the program operation is terminated and after the output refresh to the other module. However, the user program may have a different computation time for each scan, and accordingly, there is a problem that the output timing in the actual other module, that is, the output refresh timing may be different every scan.

또한, 도 2를 참조하면, 종래 기술에 따른 PLC 시스템은 프로그램 연산이 종료(S1)되면, 기타 모듈n에 출력 데이터를 전송하는 단계(S2)를 수행한다. 또한, 모듈n이 전송받은 데이터를 출력(S3)하면 해당 모듈n이 마지막 기타 모듈인이 확인(S4)한다. 이때, 해당 모듈이 마지막 기타 모듈이 아니라면 모듈 번호를 증가(S5)시키며, 모듈n+1에 출력 데이터를 전송한다. 하지만, 모듈n이 마지막 기타 모듈이라면 종료처리(S6)를 수행한다. 즉, CPU는 사용자 프로그램 연산이 종료되면 0번 기타 모듈부터 순차적으로 출력 리프레시를 수행하고, 수신한 기타 모듈은 데이터를 바로 출력한다. 출력 리프레시는 PLC 시스템에 장착된 기타 모듈의 개수만큼 출력 리프레시를 반복하고, 마지막 기타 모듈까지 완료되면 스캔 종료 처리를 한다. CPU 모듈은 기타 모듈의 순서대로 출력 리프레시를 순차적으로 수행하고, 기타 모듈은 수신 받은 출력 데이터를 바로 출력하는 구조이므로, 모든 기타 모듈이 출력을 완료했을 때 처음 출력을 완료한 기타 모듈과 마지막으로 출력을 완료한 기타 모듈에 출력 시간 오차가 발생한다. 또한, 기타 모듈의 개수가 증가할수록 첫 번째 기타 모듈과 마지막 기타 모듈의 출력 시간 오차는 더욱 크게 벌어지는 문제점이 있다.
Referring to FIG. 2, the PLC system according to the related art performs a step S2 of transmitting output data to the other module n when the program operation ends (S1). When the module n outputs the received data (S3), it is confirmed that the module n is the last other module (S4). At this time, if the corresponding module is not the last other module, the module number is incremented (S5), and the output data is transmitted to module n + 1. However, if module n is the last other module, it performs termination processing (S6). That is, when the user program operation is finished, the CPU sequentially executes the output refresh from the 0th module, and the received other module outputs the data directly. The output refresh repeats the output refresh by the number of other modules installed in the PLC system, and finishes the scan end process when the last guitar module is completed. Since the CPU module performs the output refresh sequentially in order of the other modules and the other module outputs the received output data immediately, the other modules that have completed the output first when all the other modules have completed the output, The output time error occurs in the other modules that have completed the operation. Also, as the number of other modules increases, the output time error of the first other module and the last other module becomes larger.

본 발명의 목적은 매 스캔시마다 출력 리프레시 시점이 동일한 고정주기 운전 PLC 시스템의 출력 동기화 방법을 제공하는 것이다.SUMMARY OF THE INVENTION An object of the present invention is to provide an output synchronization method of a fixed period operation PLC system having an output refresh time at every scan.

모든 모듈에서 출력 리프레시 시점이 동일한 고정주기 운전 PLC 시스템의 출력 동기화 방법을 제공하는 것이다.And to provide an output synchronization method of a fixed period operation PLC system having the same output refresh time in all modules.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.
The objects of the present invention are not limited to the above-mentioned objects, and other objects and advantages of the present invention which are not mentioned can be understood by the following description and more clearly understood by the embodiments of the present invention. It will also be readily apparent that the objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.

이러한 목적을 달성하기 위한 본 발명은 하나의 스캔마다 CPU 모듈이 사용자 프로그램을 연산한 결과인 데이터를 다수의 기타 모듈에 출력하는 고정주기 운전 PLC 시스템의 출력 동기화 방법으로서, CPU 모듈이 다수의 기타 모듈에 출력 데이터를 전송하는 단계와, 상기 다수의 기타 모듈이 사용자가 설정한 고정주기 시간에 따라 상기 출력 데이터를 동시에 출력하는 단계를 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법을 제공한다.According to another aspect of the present invention, there is provided an output synchronizing method of a fixed period operation PLC system for outputting data, which is a result of a CPU module operating a user program, to a plurality of other modules for each scan, And outputting the output data simultaneously according to a fixed cycle time set by the user. The present invention also provides a method of synchronizing an output of a fixed period operation PLC system.

상기 CPU 모듈이 다수의 기타 모듈에 출력 데이터를 전송하는 단계는, 상기 CPU 모듈이 사용자가 설정한 사용자 프로그램을 수행하는 단계와, 상기 사용자 프로그램의 수행이 종료되면 CPU 모듈이 다수의 기타 모듈에 상기 사용자 프로그램 수행 결과인 출력 데이터를 전송하는 단계를 포함한다.The step of transmitting the output data to the plurality of other modules by the CPU module may include the steps of: executing the user program set by the user by the CPU module; and, when the execution of the user program is completed, And outputting the output data as a result of executing the user program.

상기 다수의 기타 모듈이 사용자가 설정한 고정주기 시간에 따라 상기 출력 데이터를 동시에 출력하는 단계는, 상기 다수의 기타 모듈 각각이 자신을 포함한 다른 기타 모듈이 데이터 수신을 완료하였는지 확인하는 단계와, 상기 다수의 기타 모듈이 데이터 수신을 완료한 경우, 상기 다수의 기타 모듈은 현재시간이 사용자가 설정한 고정주기 시간과 현재 스캔 이전에 수행된 스캔에서 기타 모듈이 데이터를 출력한 시간인 이전출력시간을 더한 값이 될 때까지 데이터 출력을 대기하는 단계, 및 상기 다수의 기타 모듈이 상기 사용자가 설정한 고정주기 시간 동안 대기한 후 데이터를 출력하는 단계를 포함한다. 즉, 본 발명은 다수의 기타 모듈이 데이터 수신을 완료하면, 일정시간 대기한 후 동시에 데이터를 출력한다. 물론, 여기서, 일정시간을 대기하지 않고, 다수의 기타 모듈이 데이터 수신을 완료한 것이 확인되면 그 즉시 다수의 기타 모듈이 데이터를 출력할 수도 있다.The step of simultaneously outputting the output data according to the fixed cycle time set by the user by the plurality of other modules comprises the steps of: checking whether each of the plurality of other modules has completed data reception by the other module including itself; When the plurality of other modules have completed receiving data, the plurality of other modules may transmit the fixed time period set by the user and the previous output time, which is the time when the other module outputs data in the scan performed before the current scan, Waiting for data output until a value is reached, and outputting data after waiting for a fixed period of time set by the user by the plurality of other modules. That is, according to the present invention, when a plurality of other modules complete data reception, they wait for a predetermined time and output data at the same time. Of course, if it is confirmed that a plurality of other modules have completed data reception without waiting for a predetermined time, many other modules may output data immediately.

상기 다수의 기타 모듈 각각이 자신을 포함한 다른 기타 모듈이 데이터 수신을 완료하였는지 확인하는 단계, 이전에, 상기 CPU 모듈이, 상기 다수의 기타 모듈 고정주기 시간 및 현재시간을 상기 CPU 모듈의 고정주기 시간 및 현재시간과 동기화하는 단계를 더 포함할 수 있다.Checking whether each of the plurality of other modules completes data reception by the other module including itself; and before the CPU module transmits the plurality of other module fixed cycle time and the current time to the fixed cycle time And synchronizing with the current time.

또한, 상기 다수의 기타 모듈이 데이터 수신을 완료한 경우, 상기 다수의 기타 모듈이 사용자가 설정한 고정주기 시간 동안 데이터 출력을 대기하는 단계, 이후, 상기 다수의 기타 모듈의 이전출력시간을, 상기 다수의 기타 모듈이 상기 사용자가 설정한 고정주기 시간 동안 대기한 후 데이터를 출력한 시간으로 업데이트하는 단계를 더 포함할 수 있다.
The method of claim 1, further comprising: waiting for data output during a fixed period of time set by a user when the plurality of other modules have finished receiving data, And updating the data output time after waiting for a fixed period of time set by the user by the plurality of other modules.

본 발명은 기타 모듈이 CPU 모듈에서 출력된 데이터를 사용자가 설정한 고정주기 시간에 맞춰 동시에 출력하여 정밀한 출력 제어가 가능하며 CPU 모듈의 부하를 감소시킬 수 있다.The present invention can simultaneously output the data output from the CPU module by the other module in accordance with the fixed cycle time set by the user so as to precisely control the output and reduce the load of the CPU module.

또한, 본 발명은 CPU 모듈에서 전송하는 데이터의 개수를 1개 추가 전송하여 기타 모듈의 출력 시간을 맞추는 방식이므로 기존 PLC 시스템을 구조 변경 없이 사용할 수 있다.
In addition, since the present invention is a method in which the number of data transmitted from the CPU module is further increased, and the output time of the other module is matched, the conventional PLC system can be used without modification.

도 1은 종래 기술에 따른 PLC 시스템의 고정주기 운전 방법에서 한 스캔의 순서도.
도 2는 종래 기술에 따른 PLC 시스템의 고정주기 운전 방법에서 사용자 프로그램 연산 종료 후 기타 모듈에 데이터 전송 및 기타 모듈의 출력 과정을 도시한 순서도.
도 3과 도 4는 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 블록도.
도 5는 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 CPU와 모듈 간 리프레시 구조 개념도.
도 6은 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 RI RAM 구조를 도시한 개념도.
도 7과 도 8은 본 발명에 따른 고정주기 운전 PLC 시스템의 출력 동기화 방법 의 순서도.
1 is a flowchart of a scan in a fixed cycle operation method of a PLC system according to the related art.
2 is a flowchart showing data transmission to other modules and output processes of other modules after completion of user program operation in a fixed cycle operation method of a PLC system according to the related art.
FIGS. 3 and 4 are block diagrams of a fixed period operation PLC system in which outputs are synchronized according to the present invention. FIG.
5 is a conceptual diagram illustrating a refresh structure between a CPU and a module of a fixed periodic operation PLC system in which outputs are synchronized according to the present invention.
6 is a conceptual diagram showing a RI RAM structure of a fixed period operation PLC system in which outputs are synchronized according to the present invention.
7 and 8 are flowcharts of an output synchronization method of a fixed period operation PLC system according to the present invention.

전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.The above and other objects, features, and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, which are not intended to limit the scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to denote the same or similar elements.

도 3과 도 4는 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 블록도이다.FIGS. 3 and 4 are block diagrams of a fixed period operation PLC system in which outputs are synchronized according to the present invention.

본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템은 도 3에 도시된 바와 같이, 전원 모듈(200)과, CPU 모듈(300), 및 기타 모듈(400)을 포함한다. 여기서, 기타 모듈(400)은 하나 이상의 통신 모듈(410)과 입출력(I/O) 모듈(420) 등을 포함할 수 있으며, 전원 모듈(200)과 CPU 모듈(300) 및 기타 모듈(400)은 베이스(100)를 통해 서로 연결된 것을 예시한다. 또한, 본 실시예는 기타 모듈(400)이 통신 모듈(410)과 입출력 모듈(420)을 포함하는 것을 예시하였으나, 본 발명은 이에 한정되는 것은 아니며, 기타 모듈(400)은 통신 모듈(410)과 입출력 모듈(420) 이외에 연산 모듈을 포함할 수도 있다.The fixed period operation PLC system in which the output according to the present invention is synchronized includes a power module 200, a CPU module 300, and other modules 400 as shown in FIG. The other module 400 may include one or more communication modules 410 and an input / output (I / O) module 420. The power module 200, the CPU module 300, Are connected to each other through the base 100. [ The other module 400 may include a communication module 410 and an input / output module 420, but the present invention is not limited thereto. The other module 400 may include a communication module 410, And an input / output module 420, as shown in FIG.

전원 모듈(200)은 전력을 생성하며, 생성된 전력을 CPU 모듈(300)과 기타 모듈(400)에 공급한다. 또한, 전원 모듈(200)은 종류에 따라서 서로 상이한 용량을 가질 수 있다. 물론, 본 발명에서 전원 모듈(200)은 생략될 수 있으며, 이 경우, 외부에서 전원이 공급될 수도 있다.The power module 200 generates electric power and supplies the generated electric power to the CPU module 300 and the other modules 400. In addition, the power module 200 may have different capacities depending on the type. Of course, in the present invention, the power module 200 may be omitted, and in this case, power may be supplied from the outside.

CPU 모듈(300)은 전원 모듈(200)로부터 전원을 공급받아 작동하며, 도 4에 도시된 바와 같이, PLC 시스템의 동작을 위해 필요한 연산 기능과 기타 모듈(400)에 대한 제어 기능 및 사용자 데이터를 관리하는 기능을 수행하는 CPU(310)와, 입출력부(320) 및 PLC 시스템의 동작에 필요한 각종 데이터를 저장하는 메모리부(330)를 포함한다.The CPU module 300 receives power from the power module 200 and operates as shown in FIG. 4. The CPU module 300 includes a calculation function required for operation of the PLC system, a control function for the other module 400, and user data And a memory unit 330 for storing various data necessary for the operation of the input / output unit 320 and the PLC system.

도 5는 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 CPU와 모듈 간 리프레시 구조 개념도이고, 도 6은 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 RI RAM 구조를 도시한 개념도이다.FIG. 5 is a conceptual diagram illustrating a refresh structure between a CPU and a module of a fixed periodic operation PLC system synchronized with the present invention, FIG. 6 is a conceptual diagram illustrating a RI RAM structure of a fixed periodic operation PLC system synchronized with the output of the present invention, to be.

CPU(310)는 사용자가 작성한 프로그램인 사용자 프로그램을 연산하는 사용자 프로그램의 수행 결과를 바탕으로 내부 처리를 위해 운영체제 수행을 한다.The CPU 310 executes the operating system for internal processing based on the execution result of the user program for operating the user program, which is a program created by the user.

입출력부(320)는 CPU(310)의 연산 결과를 기타 모듈(400)에 출력하거나 기타 모듈(400) 등으로부터 데이터를 입력받는다.The input / output unit 320 outputs the calculation result of the CPU 310 to the other module 400 or receives data from the other module 400 or the like.

메모리부(330)는 PLC 시스템의 동작에 필요한 각종 데이터를 저장되며, 예를 들어, 사용자 프로그램과 운영체제 및 펌웨어 바이너리(firmware binary) 등이 기록될 수 있다. 이러한 메모리부(330)는 도 5에 도시된 바와 같이, RI(Refresh Information) RAM과 RD(Refresh Data) RAM을 포함하며, RI RAM은 도 6에 도시된 바와 같이, 슬롯 번호와 주소, 읽기쓰기, 기준 주소 및 데이터 크기로 구성된다. 따라서, 리프레시 수행 시 RI RAM에 저장되어 있는 데이터를 분석해서 각 모듈에 데이터를 전송한다. RD RAM에 저장된 데이터는 읽기/쓰기에 따라 각 모듈의 리프레시 맵(refresh map)에 있는 데이터를 읽거나 해당 영역에 데이터를 저장한다. 여기서, 본 실시예는 CPU 모듈(300)이 고정주기 시간 설정부(331)와, 입출력 리프레시부(332), 및 사용자 프로그램 수행부(331)를 포함한다.The memory unit 330 stores various data necessary for the operation of the PLC system. For example, a user program, an operating system, and a firmware binary may be recorded. 5, the memory unit 330 includes an RI (Refresh Information) RAM and an RD (Refresh Data) RAM. The RI RAM includes a slot number and address, a read / write , A reference address, and a data size. Therefore, when the refresh is executed, the data stored in the RI RAM is analyzed and the data is transmitted to each module. The data stored in the RD RAM reads data in the refresh map of each module according to the reading / writing or stores the data in the corresponding area. The CPU module 300 includes a fixed cycle time setting unit 331, an input / output refresh unit 332, and a user program executing unit 331.

고정주기 시간 설정부(331)는 사용자가 설정한 고정주기 시간대로 PLC 시스템의 고정주기 시간을 설정한다. 여기서, 사용자가 설정하는 고정주기 시간은 PLC 프로그램 작성 툴을 이용하여 고정주기 시간을 파라미터의 형태로 설정된다. 설정된 고정주기 시간은 사용자가 프로그램을 PLC에 다운로드 할 때 파라미터도 함께 전송된다. PLC는 전송된 파라미터를 분석하여 고정주기 운전을 시작하고 래더 프로그램을 수행한다. 여기서 고정주기 시간 설정은 현재 스캔 시간보다 길게 설정해야 한다. 이에 따라, CPU 모듈(300)은 사용자가 작성한 사용자 프로그램 연산이 종료되면, 후술될 통신 모듈과 입출력 모듈에 순차적으로 출력 데이터를 전송한다. 또한, 마지막 모듈까지 전송이 완료되면 실제 모듈 출력의 제어권한은 데이터를 전송받은 기타 모듈(400), 즉, 통신 모듈과 입출력 모듈이 가지게 되며, 사용자가 지정한 고정주기 시간이 되었을 때 출력을 내보낸다.The fixed cycle time setting unit 331 sets the fixed cycle time of the PLC system in the fixed cycle time zone set by the user. Here, the fixed cycle time set by the user is set in the form of the parameter of the fixed cycle time using the PLC program creation tool. The set fixed cycle time is also transmitted when the user downloads the program to the PLC. The PLC analyzes the transmitted parameters and starts the fixed cycle operation and executes the ladder program. Here, the fixed cycle time setting should be set longer than the current scan time. Accordingly, when the user program operation created by the user is completed, the CPU module 300 sequentially transmits the output data to the communication module and the input / output module, which will be described later. When the transmission to the last module is completed, the control authority of the actual module output is held by the other module 400, i.e., the communication module and the input / output module, to which the data is transmitted. .

입출력 리프레시부(332)는 사용자 프로그램이 수행된 결과에 따라 입출력 모듈에 출력하거나 입출력부로부터 데이터를 가져오는 입출력 리플레시를 수행한다. 이를 위해서, 입출력 리프레시부는 사용자 프로그램 수행의 결과로 입력된 데이터를 가져와 CPU에 전달하도록 하는 입력 리프레시부와, CPU에서 처리된 연산 결과를 출력하도록 하는 출력 리프레시부를 포함할 수 있다.The input / output refresh unit 332 performs input / output refresh by outputting to the input / output module or fetching data from the input / output unit according to the result of execution of the user program. To this end, the input / output refresh unit may include an input refresh unit for fetching data input as a result of executing the user program and transmitting the input data to the CPU, and an output refresh unit for outputting the operation result processed by the CPU.

사용자 프로그램 수행부(333)는 CPU가 사용자가 작성한 프로그램을 수행하도록 한다. 여기서, 사용자 프로그램 수행부가 사용자 프로그램을 실행하도록 하면 운영체제는 그 내용을 메모리상으로 로딩하여 처리한다. 또한, 사용자 프로그램은 사용자 프로그램 수행부가 수행할 때마다 그 실행시간이 상이할 수 있다.The user program executing section 333 allows the CPU to execute a program created by the user. Here, when the user program executing unit executes the user program, the operating system loads the content into the memory and processes the contents. In addition, the execution time of the user program may be different each time the user program executing unit executes.

통신 모듈(410)은 CPU 모듈(300)의 입출력부(320)에서 출력된 데이터를 전송받으며, 전송받은 데이터에 따라 출력을 내보낸다. 이러한 통신 모듈은 전술된 CPU 모듈(300)의 CPU에 해당하는 MCU(411)와, 전송받은 데이터에 따라 출력을 내보내는 입출력부(412), 및 전송받은 데이터 등이 저장되는 메모리부(413)를 포함한다. 또한, 통신 모듈(410)은 시간 동기화부(413a)와 고정주기 대기부(413b), 출력 리프레시부(413c) 및 이전출력시간 업데이트부(413d)를 포함한다. 여기서, 시간 동기화부(413a)와 고정주기 대기부(413b), 출력 리프레시부(413c) 및 이전출력시간 업데이트부(413d)는 MCU(411) 또는 메모리부(413)에 포함되거나 통신 모듈(410) 내에서 별도로 구비될 수 있다.The communication module 410 receives the data output from the input / output unit 320 of the CPU module 300 and outputs the output according to the received data. The communication module includes an MCU 411 corresponding to the CPU of the CPU module 300 described above, an input / output unit 412 for outputting data according to the received data, and a memory unit 413 for storing the received data and the like . The communication module 410 includes a time synchronization unit 413a, a fixed period waiting unit 413b, an output refresh unit 413c, and a previous output time update unit 413d. Here, the time synchronization unit 413a, the fixed cycle standby unit 413b, the output refresh unit 413c and the previous output time update unit 413d may be included in the MCU 411 or the memory unit 413, As shown in FIG.

시간 동기화부(413a)는 현재시간과 사용자가 설정한 고정주기 시간을 CPU(310)의 시간에 맞춰 동기화한다. 여기서, 시간 동기화부(413a)는 GPS, IEEE 1588 등을 이용하여 시간 동기화를 수행할 수 있다. 이는 후술될 입출력 모듈(420) 등 모든 모듈에서 수행되며, 이에 따라, CPU 모듈(300)을 포함하는 모든 모듈의 시간이 동기화된다.The time synchronization unit 413a synchronizes the current time and the fixed cycle time set by the user according to the time of the CPU 310. [ Here, the time synchronization unit 413a may perform time synchronization using GPS, IEEE 1588, or the like. This is performed in all the modules, such as the input / output module 420, which will be described later, so that the time of all the modules including the CPU module 300 is synchronized.

고정주기 대기부(413b)는 기타 모듈(400) 중 마지막 모듈, 본 실시예에서는 입출력 모듈(420)까지 CPU 모듈(300)로부터 데이터를 수신한 것을 확인하고 현재시간과 사용자가 설정한 고정주기 시간을 비교하여, 사용자가 설정한 고정주기 시간만큼 고정주기 대기를 수행하여 출력 리프레시를 대기시킨다.The fixed period waiting unit 413b confirms that data is received from the CPU module 300 up to the last one of the other modules 400, in this embodiment, the input / output module 420, And performs a fixed cycle wait for a fixed cycle time set by the user to wait for output refresh.

출력 리프레시부(413c)는 고정주기 대기 후 출력 리프레시를 수행하여 출력 데이터를 입출력부(412)를 통해 내보낸다.The output refresh unit 413c performs an output refresh after waiting for a fixed period and outputs the output data through the input / output unit 412. [

이전출력시간 업데이트부(413d)는 현재 스캔의 출력 리프레시 시간을 다음 스캔에서 사용될 이전출력시간으로 업데이트한다.The previous output time update unit 413d updates the output refresh time of the current scan to the previous output time to be used in the next scan.

입출력 모듈(420)은 CPU 모듈(300)의 입출력부(320)에서 출력된 데이터를 전송받으며, 전송받은 데이터에 따라 출력을 내보낸다. 이러한 입출력 모듈(420) 역시 전술된 통신 모듈(410)처럼 CPU 모듈(300)의 CPU에 해당하는 MCU(421)와, 전송받은 데이터에 따라 출력을 내보내는 입출력부(422), 및 전송받은 데이터 등이 저장되는 메모리부(423)를 포함한다. 또한, 메모리부(423)는 시간 동기화부(423a)와 고정주기 대기부(423b), 출력 리프레시부(423c) 및 이전출력시간 업데이트부(423d)를 포함한다.The input / output module 420 receives the data output from the input / output unit 320 of the CPU module 300 and outputs the output according to the received data. The input / output module 420 also includes an MCU 421 corresponding to the CPU of the CPU module 300, an input / output unit 422 for outputting data according to the received data, And a memory unit 423 for storing the data. The memory unit 423 includes a time synchronization unit 423a, a fixed cycle standby unit 423b, an output refresh unit 423c, and a previous output time update unit 423d.

상술한 바와 같이, 본 발명은 기타 모듈이 CPU 모듈에서 출력된 데이터를 사용자가 설정한 고정주기 시간에 맞춰 동시에 출력하여 정밀한 출력 제어가 가능하며 CPU 모듈의 부하를 감소시킬 수 있다. 또한, 본 발명은 CPU 모듈에서 전송하는 데이터의 개수를 1개 추가 전송하여 기타 모듈의 출력 시간을 맞추는 방식이므로 기존 PLC 시스템을 구조 변경 없이 사용할 수 있다.
As described above, according to the present invention, other modules simultaneously output data output from the CPU module according to a fixed cycle time set by the user, thereby enabling precise output control and reducing the load of the CPU module. In addition, since the present invention is a method in which the number of data transmitted from the CPU module is further increased, and the output time of the other module is matched, the conventional PLC system can be used without modification.

다음은 본 발명에 따른 고정주기 운전 PLC 시스템의 출력 동기화 방법 에 대해 도면을 참조하여 설명한다. 후술될 내용 중 전술된 본 발명에 따른 출력이 동기화된 고정주기 운전 PLC 시스템의 설명과 중복되는 내용은 생략하거나 간략히 설명한다.Hereinafter, an output synchronization method of the fixed period operation PLC system according to the present invention will be described with reference to the drawings. In the following description, redundant description of the synchronized fixed period operation PLC system according to the present invention is omitted or briefly described.

도 7과 도 8은 본 발명에 따른 고정주기 운전 PLC 시스템의 출력 동기화 방법의 순서도이다.FIGS. 7 and 8 are flowcharts of an output synchronization method of the fixed period operation PLC system according to the present invention.

본 발명에 따른 고정주기 운전 PLC 시스템의 출력 동기화 방법은 도 7에 도시된 바와 같이, 출력 데이터를 전송하는 단계(S1)와, 설정된 고정주기 시간에 따라 기타 모듈이 데이터를 출력하는 단계(S2)를 포함한다.As shown in FIG. 7, the output synchronization method of the fixed period operation PLC system according to the present invention includes a step S1 of transmitting output data, a step S2 of outputting data by the other module according to the set fixed cycle time, .

기타 모듈에 출력 데이터를 전송하는 단계(S1)는 CPU 모듈이 기타 모듈에 출력 데이터를 전송한다. 이는 사용자 프로그램 연산이 종료되는 단계(S1-1)와, 기타 모듈에 출력 데이터를 전송하는 단계(S1-2), 마지막 모듈인지 판단하는 단계(S1-3)를 포함한다.In step S1 of transmitting output data to the other module, the CPU module transmits output data to the other module. This includes a step S1-1 in which the user program operation is terminated, a step S1-2 in which output data is transmitted to the other module, and a step S1-3 in which it is determined whether it is the last module.

사용자 프로그램 연산이 종료되는 단계(S1-1)에서는 CPU 모듈에서 사용자가 설정한 사용자 프로그램의 연산 수행이 완료되면 사용자 프로그램 연산이 종료된다.In step S1-1 in which the user program operation is terminated, the user program operation is terminated when the operation of the user program set by the user is completed in the CPU module.

기타 모듈에 출력 데이터를 전송하는 단계(S1-2)는 사용자 프로그램 연산이 종료되는 단계(S1-1)에서 사용자 프로그램 연산이 종료되면 CPU 모듈은 기타 모듈, 예를 들어, 통신 모듈과 입출력 모듈 및 연산 모듈 등에 사용자 프로그램 연산 결과인 출력 데이터를 전송한다.In step S1-2 of transmitting the output data to the other module, when the user program operation is completed in the step S1-1 in which the user program operation is terminated, the CPU module transmits the other module, for example, the communication module and the input / And transmits the output data that is the result of the user program operation to the operation module.

마지막 모듈인지 판단하는 단계(S1-3)는 기타 모듈에 출력 데이터를 전송하는 단계(S1-2)에서 출력 데이터가 전송된 대상인 기타 모듈이 마지막 기타 모듈인지 판단한다. 여기서, 해당 모듈이 마지막 기타 모듈이 아닌 경우, 모듈 번호를 증가시킨 후 다음 모듈에 출력 데이터를 전송하며, 해당 모듈이 마지막 기타 모듈인 경우, 후술될 설정된 고정주기 시간에 따라 기타 모듈이 데이터를 출력하는 단계(S2)를 수행한다. 즉, 마지막 기타 모듈까지 데이터 전송이 완료되면 실제 모듈 출력의 제어권은 CPU 모듈이 아닌 기타 모듈이 가짐을 의미한다.Step S1-3 of determining whether it is the last module determines whether the other module to which the output data is transmitted in the step S1-2 of transmitting the output data to the other module is the last other module. If the module is not the last other module, the module number is increased and the output data is transmitted to the next module. If the module is the last other module, the other module outputs data according to the fixed cycle time described later (S2). That is, when the data transmission to the last other module is completed, the control of the actual module output means that the other module is not the CPU module.

설정된 고정주기 시간에 따라 기타 모듈이 데이터를 출력하는 단계(S2)는 모든 기타 모듈에 출력 데이터가 전송되면 사용자가 설정한 고정주기 시간에 따라 모든 기타 모듈이 데이터를 동시에 출력한다. 이를 위해서 설정된 고정주기 시간에 따라 기타 모듈이 데이터를 출력하는 단계(S2)는 도 8에 도시된 바와 같이, 고정주기 시간 및 현재시간 동기화 단계(S1)와, 데이터 수신 완료를 확인하는 단계(S2), 고정주기 시간동안 대기하는 단계(S3), 이전출력시간을 업데이트하는 단계(S4), 및 기타 모듈이 출력을 보내는 단계(S5)를 포함한다.If the output data is transmitted to all the other modules in step S2, the other modules output data according to the fixed cycle time set by the user. As shown in FIG. 8, the step S2 of outputting the data by the other module according to the fixed cycle time set for this purpose includes a fixed cycle time and current time synchronization step S1, a step S2 , Waiting for a fixed period of time (S3), updating the previous output time (S4), and sending the output of other modules (S5).

고정주기 시간 및 현재시간 동기화 단계(S1)는 모든 기타 모듈의 고정주기 시간과 현재 시간을 CPU 모듈의 고정주기 시간과 현재 시간에 맞춰 동기화한다. 이러한 고정주기 시간 및 현재시간 동기화 단계(S1)는 고정주기 시간 및 현재시간이 동기화되었는지 판단하는 단계(S1-1)와, 고정주기 시간 및 현재시간을 요청하고 동기화하는 단계(S1-2)를 포함한다.The fixed cycle time and current time synchronization step (S1) synchronizes the fixed cycle time and the current time of all other modules according to the fixed cycle time and the current time of the CPU module. The fixed cycle time and current time synchronization step S1 includes a step S1-1 of determining whether the fixed cycle time and the current time are synchronized and a step S1-2 of requesting and synchronizing the fixed cycle time and the current time .

고정주기 시간 및 현재시간이 동기화되었는지 판단하는 단계(S1-1)는 기타 모듈의 고정주기 시간과 현재시간이 CPU 모듈의 고정주기 시간 및 현재시간과 동일한지 판단한다. 여기서, 기타 모듈이 고정주기 시간 및 현재시간이 CPU 모듈의 고정주기 시간 및 현재시간과 상이하다면 후술될 고정주기 및 현재시간을 요청하고 동기화하는 단계(S1-2)를 수행한다. 물론, CPU 모듈과 기타 모듈의 고정주기 시간과 현재시간이 동일하다면, 후술될 고정주기 시간 및 현재시간을 요청하고 동기화하는 단계(S1-2)는 생략된다.The step S1-1 of determining whether the fixed cycle time and the current time are synchronized determines whether the fixed cycle time and the current time of the other module are the same as the fixed cycle time and the current time of the CPU module. Here, if the fixed cycle time and the current time of the other module are different from the fixed cycle time and the current time of the CPU module, a step (S1-2) of requesting and synchronizing a fixed cycle and a current time to be described later is performed. Of course, if the fixed cycle time and the current time of the CPU module and the other modules are the same, step (S1-2) of requesting and synchronizing the fixed cycle time and the current time to be described later is omitted.

고정주기 시간 및 현재시간을 요청하고 동기화하는 단계(S1-2)는 CPU 모듈이 고정주기 시간과 현재시간을 요청하여 기타 모듈의 고정주기 시간과 현재시간을 CPU 모듈의 고정주기 시간 및 현재시간과 동기화한다. 이는 전술된 바와 같이 GPS, IEEE1588 등을 이용할 수 있다. 또한, 고정주기 시간 및 현재시간을 요청하고 동기화하는 단계(S1-2)까지 CPU 모듈이 주체가 되어 수행되며, 후술될 단계는 각각의 기타 모듈이 주체가 되어 수행된다.The step (S1-2) of requesting and synchronizing the fixed cycle time and the current time is a step in which the CPU module requests the fixed cycle time and the current time and sets the fixed cycle time and the current time of the other module to the fixed cycle time and the current time Synchronize. It can use GPS, IEEE1588, etc. as described above. In addition, until the step S1-2 of requesting and synchronizing the fixed cycle time and the current time, the CPU module is performed as a main body, and a step to be described later is performed by each other module as a subject.

데이터 수신 완료를 확인하는 단계(S2)는 마지막 기타 모듈까지 CPU 모듈로부터 데이터 수신을 완료하였는지 해당 기타 모듈이 확인한다. 즉, 데이터 수신 완료를 확인하는 단계(S2)는 모든 기타 모듈에서 개별적으로 수행된다.In step S2 of confirming completion of data reception, the other module confirms whether data reception from the CPU module to the last other module is completed. That is, step S2 of confirming completion of data reception is performed individually in all other modules.

고정주기 시간동안 대기하는 단계(S3)는 사용자가 설정한 고정주기 시간동안 기타 모듈이 데이터 출력을 하지 않고 대기한다. 즉, 기타 모듈의 현재시간이 사용자가 설정한 고정주기 시간과 현재 스캔 이전에 수행된 스캔의 이전출력시간을 더한 값 이상이 될 때까지 대기한다. 물론, 여기서, 일정시간을 대기하지 않고, 다수의 기타 모듈이 데이터 수신을 완료한 것이 확인되면, 모든 기타 모듈이 데이터를 수신한 것이므로, 그 즉시 다수의 기타 모듈이 데이터를 출력할 수도 있다.The step S3 of waiting for the fixed cycle time waits for the other module not to output data during the fixed cycle time set by the user. That is, the current time of the other module waits until it is equal to or more than the fixed cycle time set by the user and the previous output time of the scan performed before the current scan. Of course, if it is confirmed that a plurality of other modules have completed the data reception without waiting for a predetermined time, all other modules have received data, so that many other modules may output data immediately.

이전출력시간을 업데이트하는 단계(S4)는 다음 스캔에서 현재 스캔의 데이터 출력시간이 이전출력시간이 되도록 이전출력시간을 업데이트한다. The step S4 of updating the previous output time updates the previous output time so that the data output time of the current scan is the previous output time in the next scan.

기타 모듈이 출력을 보내는 단계(S5)는 이전출력시간을 업데이트하는 단계(S4)를 수행한다. 모든 기타 모듈이 데이터 출력을 동시에 내보낸다. 여기서, 이전출력시간을 업데이트하는 단계(S4)는 기타 모듈이 출력을 보내는 단계(S5)와 동시에 수행되거나 이후에 수행될 수 있다.The step S5 of sending the output of the other module performs the step S4 of updating the previous output time. All other modules export the data output at the same time. Here, the step S4 of updating the previous output time may be performed simultaneously with or after the step S5 of outputting the other module.

전술한 본 발명은, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 있어 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하므로 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니다.While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, But the present invention is not limited thereto.

Claims (5)

하나의 스캔마다 CPU 모듈이 연산한 결과인 데이터를 하나 이상의 기타 모듈에 출력하는 고정주기 운전 PLC 시스템의 출력 동기화 방법으로서,
CPU 모듈이 다수의 기타 모듈에 출력 데이터를 전송하는 단계와,
상기 다수의 기타 모듈이 기 설정된 고정주기 시간에 따라 상기 출력 데이터를 동시에 출력하는 단계를 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법.
A method for synchronizing an output of a fixed period operation PLC system in which data resulting from an operation of a CPU module is output to one or more other modules for each scan,
The CPU module sending output data to a plurality of other modules,
And outputting the output data at the same time according to a predetermined fixed cycle time.
제1항에 있어서,
상기 CPU 모듈이 다수의 기타 모듈에 출력 데이터를 전송하는 단계는,
상기 CPU 모듈이 사용자로부터 입력받은 사용자 프로그램을 수행하는 단계와,
상기 사용자 프로그램의 수행이 종료되면 CPU 모듈이 다수의 기타 모듈에 상기 사용자 프로그램 수행 결과인 출력 데이터를 전송하는 단계를 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법.
The method according to claim 1,
Wherein the step of the CPU module transmitting output data to a plurality of other modules comprises:
Executing the user program received from the user by the CPU module;
And transmitting the output data, which is a result of the user program execution, to the plurality of other modules when the execution of the user program is terminated.
제2항에 있어서,
상기 다수의 기타 모듈이 기 설정된 고정주기 시간에 따라 상기 출력 데이터를 동시에 출력하는 단계는,
상기 다수의 기타 모듈 각각이 자신을 포함한 다른 기타 모듈이 데이터 수신을 완료하였는지 확인하는 단계와,
상기 다수의 기타 모듈이 데이터 수신을 완료한 경우, 상기 다수의 기타 모듈은 현재시간이 기 설정된 고정주기 시간과 현재 스캔 이전에 수행된 스캔에서 기타 모듈이 데이터를 출력한 시간인 이전출력시간을 더한 값이 될 때까지 데이터 출력을 대기하는 단계,
상기 다수의 기타 모듈이 상기 기 설정된 고정주기 시간 동안 대기한 후 데이터를 출력하는 단계를 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법.
3. The method of claim 2,
Wherein the plurality of other modules simultaneously outputting the output data according to a predetermined fixed cycle time comprises:
Confirming that each of the plurality of other modules has completed data reception by another module including itself,
When the plurality of other modules have completed receiving data, the plurality of other modules may include a predetermined fixed cycle time plus a previous output time that is a time at which the other modules output data in the scan performed before the current scan, Waiting for data output until a value is reached,
And outputting data after the plurality of other modules wait for the preset fixed cycle time.
제3항에 있어서,
상기 다수의 기타 모듈 각각이 자신을 포함한 다른 기타 모듈이 데이터 수신을 완료하였는지 확인하는 단계, 이전,
상기 CPU 모듈이, 상기 다수의 기타 모듈 고정주기 시간 및 현재시간을 상기 CPU 모듈의 고정주기 시간 및 현재시간과 동기화하는 단계를 더 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법.
The method of claim 3,
Confirming that each of the plurality of other modules has completed receiving data from another module including itself,
Further comprising synchronizing the plurality of other module fixed cycle time and current time with the fixed cycle time and the current time of the CPU module by the CPU module.
제4항에 있어서,
상기 다수의 기타 모듈이 데이터 수신을 완료한 경우, 상기 다수의 기타 모듈이 사용자가 설정한 고정주기 시간 동안 데이터 출력을 대기하는 단계, 이후,
상기 다수의 기타 모듈의 이전출력시간을, 상기 다수의 기타 모듈이 상기 사용자가 설정한 고정주기 시간 동안 대기한 후 데이터를 출력한 시간으로 업데이트하는 단계를 더 포함하는 고정주기 운전 PLC 시스템의 출력 동기화 방법.
5. The method of claim 4,
Waiting for data output for a fixed period of time set by a user when the plurality of other modules have finished receiving data,
Further comprising the step of updating the previous output time of the plurality of other modules with the output time of the data after waiting for the fixed cycle time set by the user by the plurality of other modules, Way.
KR1020160035929A 2016-03-25 2016-03-25 Synchronize method for output of fixed cycle operation plc system KR20170111109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160035929A KR20170111109A (en) 2016-03-25 2016-03-25 Synchronize method for output of fixed cycle operation plc system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160035929A KR20170111109A (en) 2016-03-25 2016-03-25 Synchronize method for output of fixed cycle operation plc system

Publications (1)

Publication Number Publication Date
KR20170111109A true KR20170111109A (en) 2017-10-12

Family

ID=60141356

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160035929A KR20170111109A (en) 2016-03-25 2016-03-25 Synchronize method for output of fixed cycle operation plc system

Country Status (1)

Country Link
KR (1) KR20170111109A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190105356A (en) * 2018-03-05 2019-09-17 엘에스산전 주식회사 Programmable logic controller system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190105356A (en) * 2018-03-05 2019-09-17 엘에스산전 주식회사 Programmable logic controller system

Similar Documents

Publication Publication Date Title
EP3076251B1 (en) Information processing apparatus, information processing program, and information processing method
JP6626240B2 (en) controller
EP3076293A2 (en) Control apparatus
JP6433635B1 (en) Simulation apparatus and simulation method
US10356006B2 (en) Control system, development support apparatus, controller, and control method
WO2015136973A1 (en) Control device and control system
JP2016194830A (en) Control device
JP2016110458A (en) Programmable logic controller, basic unit, control method and program
US11287793B2 (en) Control device, control method for control device, information processing program, and recording medium
CN104364721A (en) I/O device, programmable logic controller and calculation method
KR20170111109A (en) Synchronize method for output of fixed cycle operation plc system
WO2015140910A1 (en) Programmable logic controller
CN112639636A (en) Development support program, development support device, and development support method
CN102193884B (en) Data transfer circuit and method
KR101332726B1 (en) Controller-field bus data converter
EP4036670A1 (en) Control device
KR20220005537A (en) controller
CN108541307B (en) Programmable controller and synchronization control method
JP6529670B2 (en) Programmable logic controller
JP6257768B2 (en) Network system and control device
JP2017034433A (en) Communication control device and method
JPH11288307A (en) Fa system
CN112639637A (en) Control system, control method, and control program
KR100843105B1 (en) computer based controller, control system, and controlling method
CN116917818A (en) Development support device, development support method, and development support program