KR20170111207A - PLC system using change of status mode - Google Patents

PLC system using change of status mode Download PDF

Info

Publication number
KR20170111207A
KR20170111207A KR1020160036176A KR20160036176A KR20170111207A KR 20170111207 A KR20170111207 A KR 20170111207A KR 1020160036176 A KR1020160036176 A KR 1020160036176A KR 20160036176 A KR20160036176 A KR 20160036176A KR 20170111207 A KR20170111207 A KR 20170111207A
Authority
KR
South Korea
Prior art keywords
input data
master module
mode
communication
data
Prior art date
Application number
KR1020160036176A
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 KR1020160036176A priority Critical patent/KR20170111207A/en
Publication of KR20170111207A publication Critical patent/KR20170111207A/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/052Linking several PLC's
    • 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/058Safety, monitoring
    • 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/15018Communication, serial data transmission, modem

Landscapes

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

Abstract

The present invention relates to a PLC system using a data change detection mode, and more particularly, to a PLC system using a data change detection mode, in which a receiving unit for receiving a master frame from a master module, ) Mode and sets the communication history information performed in the COS mode according to a result of the check, a setting unit for setting the first input data inputted from the external device and the second input data inputted before the first input data Determining whether to include the first input data in the data frame to be transmitted to the master module based on the comparison result of the same or not and the communication history information, and a transmitter for transmitting the data frame to the master module .

Description

[0001] The present invention relates to a PLC system using a data change detection mode,

The present invention relates to a PLC system using a data change detection mode including a remote input / output module, and more particularly, to a PLC system using a data change detection mode including a remote input / And the second input data is included in the data frame based on the communication history information set after the first input data input from the external device and the second input data inputted before the first input data are identical to each other, The present invention relates to a PLC system using a data change detection mode that does not transmit or transmit data.

In a traditional industrial field, automation equipment consisted of mechanical equipment using relays and the like. In order to change the function of the automation equipment which is made of the mechanical equipment, it has been difficult to re-wire the internal circuit of the equipment again. To solve this problem, PLC (Programmable Logic Controller, hereinafter referred to as PLC) is one of network systems.

A PLC is a programmable logical controller, usually acting as a computer, which receives signals from equipment and processes them as programmed contents, and then outputs the processed signals to the equipment. In addition, the PLC replaces the functions of control devices such as relays, timers, and counters with semiconductor devices such as integrated devices and transistors, and can perform program control by adding a numerical calculation function to a basic sequence control function. And performs predetermined logic according to the stored program.

These PLCs can be applied to various tasks such as device control, device setting, time control, real-time monitoring, real-time data collection, and safety device operation.

To this end, the PLC is configured such that at least one or more remote devices are connected to one master module through a network in order to extend the input / output contacts remotely, wherein the remote device is connected to at least one or more external devices, And performs a function as a slave.

1 is a flowchart illustrating a process of transmitting and receiving data between a conventional master module and a remote device included in a conventional PLC system.

When the power is applied (S101), the conventional remote device initializes the communication direct circuit, the memory and the input / output buffer, and sets the pin assignment and the register in advance (S102).

Then, the conventional remote device receives a master frame including information on the input / output operation of the remote device from the master module (S103), analyzes the master frame, and determines a communication mode with the master module (S104).

Here, the communication mode with the master module may be any one of a cyclic mode for periodically transmitting input data and a data change detection (COS) mode for transmitting data when a change occurs in the input data have.

When the communication mode with the master module is determined to be the cycle mode, the conventional remote device receives the input data from the external device (S105), and transmits the input data to the master module periodically (S106).

In contrast, when the communication mode with the master module is determined to be the COS mode, the conventional remote device receives input data from an external device (S107) and compares input data previously input and stored in advance in the input / output buffer with currently input data (S108).

Then, if the input data currently input and the input data pre-stored in the input buffer are the same, the conventional remote apparatus returns to step S107 and receives the input data again from the external apparatus. The input data and the input data If the input data is not the same, the currently inputted input data is included in the data frame and transmitted to the master module (S109).

At this time, in the initial stage of the operation of the PLC system, the conventional remote apparatus initializes the input / output buffer in the above-described step S102 and stores the default data in the input / output buffer. The first input data input from the external device to the remote device at the beginning of the operation of the PLC system is default data. That is, the data stored in the input / output buffer and the input data first inputted from the external device are the same as the default data at the beginning of the operation of the PLC system.

Accordingly, the conventional remote device does not transmit the input data first inputted from the external device in the data frame at the initial stage of the operation of the PLC system to the master module, and the master module does not receive the first input data of the external device The PLC system can not be operated.

The present invention is characterized in that it is determined whether a communication mode with a master module is a change of status (COS) mode based on a master frame received from a master module, And to set communication history information.

In addition, the present invention compares the first input data input from the external device with the second input data input before the first input data, and when the first input data and the second input data are the same as the comparison result, And to determine whether to include the first input data in the data frame to be transmitted to the master module based on the information.

In addition, when it is determined that the first input data includes the first input data in the data frame to be transmitted to the master module, communication is performed a plurality of times using the master module and the COS mode, and the communication history information is set .

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.

In order to achieve the above object, a PLC system using a data change detection mode includes a receiving unit for receiving a master frame from a master module, a receiving unit for receiving data from the master module, And a setting unit for setting the communication history information performed in the COS mode according to a result of the check, comparing whether the first input data inputted from the external device is the same as the second input data inputted before the first input data A determination unit for determining whether to include first input data in a data frame to be transmitted to the master module based on the comparison result of the same or not and communication history information and a transmitter for transmitting the data frame to the master module, do.

According to the present invention as described above, it is determined whether the communication mode with the master module is the Change of Status (COS) mode based on the master frame received from the master module, and the COS mode By setting the communication history information with the master module used, it is possible to confirm whether or not the communication with the master module is first performed using the COS mode.

According to the present invention, when the first input data input from the external device and the second input data input before the first input data are the same, the communication history information first performs communication with the master module using the COS mode It is determined whether the first input data is included in the data frame and the data frame is transmitted to the master module so that the first communication with the master module is performed using the COS mode even if the first and second input data are the same The first input data can be transmitted to the master module.

1 is a flowchart showing a process of transmitting and receiving data between a conventional master device and a PLC system.
2 is a diagram illustrating a connection configuration between a PLC (Programmable Logic Controller) system 100 using a data change detection mode, a master module 200, and an external device 300 according to an embodiment of the present invention.
3 is a diagram illustrating a specific configuration of a PLC system using a data change detection mode according to an embodiment of the present invention.
4 is a flowchart illustrating a data transmission / reception process of a PLC system using a data change detection mode according to an embodiment of 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.

FIG. 2 is a diagram illustrating a connection configuration between a PLC (Programmable Logic Controller) system 100 using a data change detection mode, a master module 200, and an external device 300 according to an embodiment of the present invention.

Referring to FIG. 2, the PLC system 100 may form one network while communicating with the master module 200 and the external device 300 by a predetermined communication protocol. At this time, the PLC system 100 operates as a slave of the master module 200 on the network 10.

At least one PLC system 100 may be included in the network 10, and overall communication may be controlled by the master module 200. Generally, the PLC system 100 may be installed at a predetermined distance or more from the master module 200 depending on the industrial field.

Meanwhile, the master module 200 transmits the master frame including the communication mode and the register setting information to the PLC system 100.

The PLC system 100 receives input data from the external device 300 and transmits the input data to the master module 200 in a data frame according to a communication mode included in the master frame.

Here, the external device 300 may be a valve 310 and an actuator 320 whose operation is controlled from the PLC system 100.

3 is a diagram showing a specific configuration of a PLC system 100 according to an embodiment of the present invention.

3, a PLC system 100 according to an exemplary embodiment of the present invention may include a receiving unit 110, a setting unit 120, a determining unit 130, and a transmitting unit 140. The PLC system 100 shown in FIG. 3 is according to one embodiment, and the components thereof are not limited to the embodiment shown in FIG. 3, and some components may be added, changed or deleted as necessary .

The concrete structure and role of the PLC system 100 according to one embodiment of the present invention will be described with reference to FIGS. 2 and 3. FIG.

The receiving unit 110 may receive the master frame from the master module 200 using the network 10. [

Here, the master frame may include information on a communication mode performed between the PLC system 100 and the master module 200.

For example, the master frame may include either a cyclic mode or a data change status (COS) mode in a communication mode.

The cyclic mode is a communication mode for transmitting data every predetermined transmission cycle, and the COS mode can be a communication mode for transmitting data when input data is changed.

Meanwhile, the master module 200 can transmit the master frame to the PLC system 100 when power is supplied to the PLC system 100 and operation is started.

That is, the master module 200 does not transmit a master frame in the middle of driving the PLC system 100 but sends a master frame to establish communication with the PLC system 100 at the start of operation of the PLC system 100 Can be transmitted.

When the PLC system 100 receives power and starts operation, it initializes the communication direct circuit, the memory and the input / output buffer, and sets the register according to the communication protocol.

The setting unit 120 can determine whether the communication mode with the master module 200 is the COS mode based on the master frame received by the receiving unit 110. [

As described above, the communication mode to be executed between the PLC system 100 and the master module 200 is determined in the master frame, and the setting unit 120 can check whether the determined communication mode is the COS mode.

The setting unit 120 may set the communication history information for communication performed in the COS mode with the master module 200 according to the confirmation result of the communication mode.

More specifically, when it is determined that the communication mode with the master module 200 is the COS mode based on the master frame, the setting unit 120 performs communication for the first time with the master module 200 using the COS mode, History information can be set.

For example, the communication history information set by the setting unit 120 may be 'COS Flag'. The COS flag may be set to '1' when the setting unit 120 sets the communication history information by first communicating with the master module 200 using the COS mode.

The setting unit 120 may set the communication history information according to a determination as to whether to include the first input data of the determining unit 130, which will be described later, in the data frame to be transmitted to the master module 200. [

The concrete role of the setting unit 120 in this case will be described together with the determination unit 130, which will be described later.

When the communication mode is determined between the PLC system 100 and the master module 200 after the communication integrated circuit, the memory, and the input / output buffer of the PLC system 100 are initialized and the register is set according to the communication protocol, It is possible to wait for reception of input data from the control unit 300.

The determining unit 130 may compare the first input data input to the receiving unit 110 with the second input data input before the first input data.

In one embodiment, when the input order of the first input data to the receiving unit 110 is the n-th order, the input order of the second input data to the receiving unit 110 may be n-1.

The determination unit 130 compares the first input data with the second input data and transmits the first input data to the master module 200 based on the comparison result and the communication history information set from the setting unit 120 To be included in the data frame to be transmitted.

More specifically, if the first input data and the second input data are not the same, the determination unit 130 can determine that the first input data is included in the data frame to be transmitted to the master module 200 regardless of the communication history information have.

If the determining unit 120 determines that the first input data should be included in the data frame to be transmitted to the master module 200, the setting unit 120 may perform communication with the master module 200 using the COS mode a plurality of times The communication history information can be set.

For example, when the setting unit 120 performs communication with the master module 200 a plurality of times by using the COS mode, it may set 'COS Flag' to '0' when setting the communication history information.

Then, the transmitting unit 140 may transmit the first input data to the master module 200 by including the first input data in the data frame.

Accordingly, the PLC system 100 according to the embodiment of the present invention transmits input data included in the data frame to the master module 200 only when the input data inputted from the external device 300 is changed, The change of the input data can effectively reduce the network load in the non-periodic and infrequent industrial field.

The determining unit 130 may determine that the first input data is included in the data frame to be transmitted to the master module 200 based on the communication history information if the first input data and the second input data are the same.

For this, the determination unit 130 can confirm that the communication history information is set to perform communication first with the master module 200 using the COS mode if the first input data and the second input data are the same.

If the first input data and the second input data are identical and the communication history information is set to perform the communication first using the COS mode with the master module 200, the determining unit 130 transmits the first input data to the master module 200 in the data frame to be transmitted.

In the conventional PLC system, if the first input data and the second input data are the same, the first input data is included in the data frame and transmitted to the master module without confirming other setting information.

However, when power is applied to the conventional PLC system and operation is started, default data is input in advance due to the initialization process, and input data initially input from the external device is also input to the default data.

Here, the default data input in advance may be the second input data described above, and the default data initially input from the external device may be the first input data.

Accordingly, the conventional PLC system has a problem in that input data first inputted from an external device is not transmitted to the master module because the first input data and the second input data are the same when the power is applied and operation is started.

However, even if the first input data and the second input data are the same, the PLC system 100 according to the embodiment of the present invention is set to perform the communication first using the COS mode with the master module 200 It is possible to transmit the input data most input from the external device 300 at the beginning of the operation to the master module 200 by determining whether to include the first input data in the data frame.

As described above, when the determining unit 120 determines to include the first input data in the data frame to be transmitted to the master module 200, the setting unit 120 performs communication with the master module 200 using the COS mode The communication history information can be set.

On the other hand, if the first input data and the second input data are identical and the communication history information is not set to perform communication first using the COS mode with the master module 200, May not be included in the data frame to be transmitted to the master module 200.

That is, when it is determined that the first input data and the second input data are the same and communication has been performed a plurality of times using the COS mode through the communication history information, the determining unit 130 transmits the first input data to the master module 200 It can be determined not to be included in the data frame to be transmitted.

4 is a flowchart illustrating a data transmission / reception process of a PLC system according to an embodiment of the present invention.

Referring to FIG. 4, when power is supplied to the PLC system to start operation (S401), the communication integrated circuit, the memory and the input / output buffer are initialized and the register is set according to the communication protocol (S402).

Thereafter, the receiving unit of the PLC system receives the master frame from the master module (S403), and the setting unit of the PLC system checks whether the communication mode with the master module is the COS mode based on the master frame (S404).

If it is determined that the communication mode with the master module is the COS mode, the setting unit of the PLC system sets communication history information by performing communication with the master module for the first time using the COS mode (S405).

The receiving unit of the PLC system receives the first and second input data from the external device (S406), and the determining unit of the PLC system compares the first input data with the second input data (S407).

The determination unit of the PLC system determines whether the first input data and the second input data are the same or not and if the first input data and the second input data are not the same, the first input data is included in the data frame (S408) .

On the other hand, if the first input data and the second input data are the same, the communication history information first communicates with the master module using the COS mode (Step S409)

The determination unit of the PLC system returns to step S406 and receives input data from the external device if the communication history information is not set to perform communication with the master module for the first time using the COS mode.

On the other hand, if the communication history information is set to perform communication with the master module for the first time using the COS mode, the determination unit of the PLC system determines that the first input data is included in the data frame as in step S408.

After step S408, the setting unit of the PLC system sets the communication history information by performing communication with the master module a plurality of times or more using the COS mode (S409).

Then, the transmitter of the PLC system transmits the first input data to the master module by including the data in the data frame (S410).

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 (7)

A receiving unit for receiving a master frame from the master module;
And a setting unit configured to determine whether a communication mode with the master module is a Change of Status (COS) mode based on the master frame, and to set communication history information performed in the COS mode according to the confirmation result, ;
Comparing the first input data inputted from the external device with the second input data inputted before the first input data and comparing the first input data with the second input data based on the comparison result of the same or the same and the communication history information A determination unit determining whether to include in a data frame to be transmitted to the master module; And
And a transmitter for transmitting the data frame to the master module
PLC system using data change detection mode.
The method according to claim 1,
The setting unit
And the communication history information is set by the first communication with the master module using the COS mode if the communication mode with the master module is confirmed to be the COS mode.
The method according to claim 1,
The determination unit
Wherein the communication history information is set to perform communication with the master module using the COS mode when the first input data and the second input data are the same.
The method of claim 3,
The determination unit
When the communication history information is set to initially perform communication using the master module and the COS mode, it is determined that the first input data is included in a data frame to be transmitted to the master module PLC system.
The method of claim 3,
The determination unit
Determining whether the first input data is not included in a data frame to be transmitted to the master module if the communication history information is not set to perform the communication first using the master module and the COS mode; PLC system using.
The method according to claim 1,
The determination unit
And determines to include the first input data in a data frame to be transmitted to the master module if the first input data and the second input data are not the same.
The method according to claim 1,
The setting unit
When the determining unit determines that the first input data should be included in a data frame to be transmitted to the master module, the communication unit performs communication using the COS mode and the master module a plurality of times, PLC system using sensing mode.
KR1020160036176A 2016-03-25 2016-03-25 PLC system using change of status mode KR20170111207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160036176A KR20170111207A (en) 2016-03-25 2016-03-25 PLC system using change of status mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160036176A KR20170111207A (en) 2016-03-25 2016-03-25 PLC system using change of status mode

Publications (1)

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

Family

ID=60140850

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160036176A KR20170111207A (en) 2016-03-25 2016-03-25 PLC system using change of status mode

Country Status (1)

Country Link
KR (1) KR20170111207A (en)

Similar Documents

Publication Publication Date Title
EP2618227B1 (en) Analog input and output module
CN104380216A (en) Use of an IO link for linking field devices
US10466670B2 (en) Field bus module, machine controller, and method for parameterizing a field bus module, in particular a safety-oriented field bus module
CN107924168B (en) Transfer device, control method of transfer device, and readable recording medium
EP1473606A9 (en) Safety network system, safety slave, and communication method
EP2804110B1 (en) Apparatus for setting network of decentralized Profibus peripheral devices
US20180373213A1 (en) Fieldbus coupler and system method for configuring a failsafe module
EP1533670A1 (en) Programmable controller and communication interface therefor
EP2804063B1 (en) Master device of process field bus decentralized periphery
CN110300055B (en) Gateway system for heterogeneous field bus
KR20160147901A (en) Terminal for an automation system, terminal arrangement, and method for operating a terminal for an automation system
US10274912B2 (en) Independent automation technology field device for remote monitoring
US20210303488A1 (en) Real-Time Automation Device having a Real-Time Data Bus
KR20180124340A (en) Programmable logic controller
CN104126287A (en) Updating parameters in a network
CN107340733B (en) Electrical device with functional device
US20100211196A1 (en) Communication module for an automation system
US11196812B2 (en) Method for establishing a network communication in an automation system
KR20170111207A (en) PLC system using change of status mode
KR101332726B1 (en) Controller-field bus data converter
US10264418B2 (en) Method and system for wireless transmission of information in automation technology
EP3474097A1 (en) Output unit, input unit and input-output system
KR101733817B1 (en) Plc system for choosing between input or output contact
US9360862B2 (en) PLC network extension system
KR20100125722A (en) Hmi system