KR20170111207A - PLC system using change of status mode - Google Patents
PLC system using change of status mode Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/052—Linking several PLC's
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/058—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/15—Plc structure of the system
- G05B2219/15018—Communication, 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
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)
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)
Referring to FIG. 2, the
At least one
Meanwhile, the
The
Here, the
3 is a diagram showing a specific configuration of a
3, a
The concrete structure and role of the
The
Here, the master frame may include information on a communication mode performed between the
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
That is, the
When the
The setting unit 120 can determine whether the communication mode with the
As described above, the communication mode to be executed between the
The setting unit 120 may set the communication history information for communication performed in the COS mode with the
More specifically, when it is determined that the communication mode with the
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
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
The concrete role of the setting unit 120 in this case will be described together with the
When the communication mode is determined between the
The determining
In one embodiment, when the input order of the first input data to the receiving
The
More specifically, if the first input data and the second input data are not the same, the
If the determining unit 120 determines that the first input data should be included in the data frame to be transmitted to the
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
Accordingly, the
The determining
For this, the
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
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
As described above, when the determining unit 120 determines to include the first input data in the data frame to be transmitted to the
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
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
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)
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 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 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 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 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 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 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.
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) |
-
2016
- 2016-03-25 KR KR1020160036176A patent/KR20170111207A/en unknown
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 |