CN210377133U - Master-slave configurable PLC controller based on CAN bus - Google Patents

Master-slave configurable PLC controller based on CAN bus Download PDF

Info

Publication number
CN210377133U
CN210377133U CN201921817549.4U CN201921817549U CN210377133U CN 210377133 U CN210377133 U CN 210377133U CN 201921817549 U CN201921817549 U CN 201921817549U CN 210377133 U CN210377133 U CN 210377133U
Authority
CN
China
Prior art keywords
module
bus
plc
slave
master
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201921817549.4U
Other languages
Chinese (zh)
Inventor
赵德政
林浩
陈海
郭佳
郭肖旺
原惠峰
张彪
王永峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cec Intelligent Technology Co ltd
Original Assignee
Cec Intelligent Technology Co ltd
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 Cec Intelligent Technology Co ltd filed Critical Cec Intelligent Technology Co ltd
Priority to CN201921817549.4U priority Critical patent/CN210377133U/en
Application granted granted Critical
Publication of CN210377133U publication Critical patent/CN210377133U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model provides a principal and subordinate CAN dispose PLC controller based on CAN bus, include: the PLC modules are provided with IO units and CAN be configured to be in a CAN master station mode or a CAN slave station mode; the CAN bus is in communication connection with each PLC module; and the upper computer is in communication connection with each PLC module through an Ethernet module, and is used for configuring the PLC modules into a CAN master station or a CAN slave station and sending configuration information to the CAN master station through the Ethernet module. The utility model discloses master-slave CAN dispose PLC controller based on CAN bus reduces the construction cost of the redundant control system of PLC duplex.

Description

Master-slave configurable PLC controller based on CAN bus
Technical Field
The utility model relates to an industrial control automation technology field especially relates to a principal and subordinate CAN dispose PLC controller based on CAN bus.
Background
Programmable Logic Controllers (PLC) are a type of embedded control devices that employ programming, the programming specifications of which conform to the IEC61131 standard. The operation mechanism can be summarized into communication, data acquisition, logic operation, data output and fault diagnosis. The PLC itself has a programmable function and supports module expansion, and thus is widely used in the field of industrial control. The PLC is classified into a large PLC, a medium PLC, and a small PLC according to the size of a controlled system.
At present, the existing small PLC is mostly integrated, the controller module integrates the IO function, and the number of control points can be increased through the expansion of the IO module. But the expansion module cannot be used alone. Spare parts and maintenance cost in the later period are improved.
SUMMERY OF THE UTILITY MODEL
The utility model provides a master-slave CAN dispose PLC controller based on CAN bus, extension IO module CAN cooperate arbitrary PLC module to form the main website.
The utility model provides a principal and subordinate CAN dispose PLC controller based on CAN bus, include:
the PLC modules are provided with IO units and CAN be configured to be in a CAN master station mode or a CAN slave station mode;
the CAN bus is in communication connection with each PLC module;
and the upper computer is in communication connection with each PLC module through an Ethernet module, and is used for configuring the PLC modules into a CAN master station or a CAN slave station and sending configuration information to the CAN master station through the Ethernet module.
Optionally, the PLC controller has a software program, and the architecture of the software program includes: a driver layer, a platform adaptation layer, a system layer, and an application layer.
Optionally, the application layer includes:
the CAN protocol stack module is used for field bus communication and sending the received data to the shared data area;
the IO data acquisition and processing module transmits input data to the shared data area and transmits output data to the local hardware module;
the IEC task module is used for acquiring input data from the IEC data area, performing operation according to IEC logic and storing the calculated output data into the IEC data area; the IEC data area and the shared data area carry out periodic data interaction;
and the communication processing module is used for receiving the control command or the data sent by the upper computer and forwarding the control command or the data to the corresponding functional module.
Optionally, the PLC module includes:
the power panel is used for supplying power to the whole module;
the local IO signal board is used for driving and receiving a local IO signal;
and the CPU board is used for supporting software operation and a backboard bus, a communication bus and a network.
Optionally, the number of PLC modules includes: the device comprises two digital quantity modules, two analog quantity modules, two mixing modules and two thermocouple modules.
Optionally, the CAN master station runs an IO acquisition and output module of an application layer of the software, a CAN protocol stack module, an IEC task module, an upper computer communication module, and a communication processing module.
Optionally, the CAN slave station runs an IO acquisition and output module and a CAN protocol stack module of an application layer of the software.
Optionally, the shared data area is consistent with the IEC data area structure.
Optionally, the controller module supplies power to the IO expansion module and the communication expansion module.
Optionally, the controller module communicates with the IO extension module and the communication extension module through a CAN link.
The utility model discloses master-slave configurable PLC controller based on CAN bus has broken away from the two redundant technologies of PLC of special redundant communication module restriction, need not the user and participates in redundant data synchronization, failure diagnosis judgement and state switching, realizes the two redundant functions of PLC of high reliability, high robustness in a flexible way, reduces the cost of constructing of two redundant control systems of PLC.
Drawings
Fig. 1 is a system diagram of an embodiment of the master-slave configurable PLC controller based on the CAN bus of the present invention;
fig. 2 is an architecture diagram of an embodiment of the master-slave configurable PLC controller based on the CAN bus of the present invention;
fig. 3 is a schematic diagram of an input interface of an embodiment of the master-slave configurable PLC controller based on the CAN bus of the present invention;
fig. 4 is the utility model discloses PLC controller embodiment frame schematic CAN be joined in marriage to principal and subordinate based on CAN bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.
This embodiment provides a master-slave CAN configure PLC controller based on CAN bus, and master-slave CAN configure PLC controller based on CAN bus includes:
the PLC modules are provided with IO units and CAN be configured to be in a CAN master station mode or a CAN slave station mode;
the CAN bus is in communication connection with each PLC module;
and the upper computer is in communication connection with each PLC module through an Ethernet module, and is used for configuring the PLC modules into a CAN master station or a CAN slave station and sending configuration information to the CAN master station through the Ethernet module.
As an optional implementation manner of this embodiment, the small-sized CAN bus PLC system maximally supports two digital quantity modules, two analog quantity modules, two mixing modules, and two thermocouple modules. Each PLC module CAN be configured in both CAN master mode and CAN slave mode.
When the module is configured to be in a master station mode, the module supports Ethernet communication, IEC master task, power failure protection, data interaction with slave stations and other functions.
When the module is configured as a slave, the IEC task is not run any more, and only the slave IO function and the field bus slave function are run. And the controller module sends the configuration information to each slave station module through the field bus according to the actual situation when receiving the configuration file.
The PLC control system based on the CAN bus is expanded through the CAN bus, and the control system is formed by one CAN master station module and seven CAN slave station modules. As shown in fig. 1. The utility model discloses a biggest characteristics are that every module both CAN configure into the CAN main website, also CAN configure into the CAN slave station. The flexibility of network configuration is increased. When the CAN slave station runs, the data collected by the module CAN be directly transmitted to the CAN master station module, the slave station module does not run an IEC task, and the output data of the slave station module comes from the CAN master station.
In the above embodiment:
and the digital quantity input and output module supports 16 digital quantity inputs and 16 digital quantity outputs at most. And the field 16-path digital quantity signals enter the module through the connector and are isolated from the field through the optical coupler. Under the module voltage mode, when the input voltage is 5V-30 VDC, the input voltage is logic 1; when the input voltage is 0V-3 VDC, it is logic 0.
And the analog input module supports 16 maximum analog inputs. And the field 16-path analog quantity signals enter the module through the connector and are isolated from the field through the optical coupler. The current input range supported by the module is 4-20mA, and the supported voltage range is-5V.
The multi-channel mixing module supports 8 digital quantity inputs, 8 digital quantity outputs, 8 analog quantity inputs and 2 analog quantity outputs at most. 8 on-site digital quantity signals enter the module through the connector and are isolated from the on-site through the optical coupler. Under the module voltage mode, when the input voltage is 5V-30 VDC, the input voltage is logic 1; when the input voltage is 0V-3 VDC, it is logic 0. Through controlling 8 relays, digital control signals are provided to the outside in the form of relay output through a digital output channel. The analog input has 8 independent channels, and supports a voltage input mode and a current input mode. The voltage input supports-5V- +5V, the current input supports 4-20mA, and the connection of the two-wire system sensor is supported. The analog output has 2 independent channels, so that the current output mode is supported at present, and the output current range is 4-20 mA.
Optionally, the number of PLC modules includes: the device comprises two digital quantity modules, two analog quantity modules, two mixing modules and two thermocouple modules.
Optionally, the CAN master station runs an IO acquisition and output module of an application layer of the software, a CAN protocol stack module, an IEC task module, an upper computer communication module, and a communication processing module.
Optionally, the CAN slave station runs an IO acquisition and output module and a CAN protocol stack module of an application layer of the software.
Optionally, the shared data area is consistent with the IEC data area structure.
Optionally, the controller module supplies power to the IO expansion module and the communication expansion module.
Optionally, the controller module communicates with the IO extension module and the communication extension module through a CAN link.
Optionally, as shown in fig. 2, the PLC controller has a software program, and an architecture of the software program includes: a driver layer, a platform adaptation layer, a system layer, and an application layer.
Optionally, the application layer includes:
the CAN protocol stack module is used for field bus communication and sending the received data to the shared data area;
the IO data acquisition and processing module transmits input data to the shared data area and transmits output data to the local hardware module;
the IEC task module is used for acquiring input data from the IEC data area, performing operation according to IEC logic and storing the calculated output data into the IEC data area; the IEC data area and the shared data area carry out periodic data interaction;
and the communication processing module is used for receiving the control command or the data sent by the upper computer and forwarding the control command or the data to the corresponding functional module.
Specifically, the upper computer software configures different modules as a CAN master station or a CAN slave station respectively, generates a configuration file, transmits the configuration file to a default CAN master station module through an Ethernet communication module, and the CAN master station analyzes the configuration file according to a preset format after receiving the configuration file and transmits a configuration command to each module for hardware configuration according to an analysis result. If a module is configured as a CAN master station, an IO acquisition and output module, a CAN protocol stack module, an IEC task module, an upper computer communication module and a ModbusRTU communication module CAN be operated, and if a module is configured as a slave station, the IO acquisition and output module and the CAN protocol stack module CAN only be operated. In addition, in both the CAN master and CAN slave modes, a driver layer program, a platform adaptation layer program and a runtime system program are run.
The IEC data area is divided into an input area I area, an output area Q area, a global variable area G area, a power failure holding variable area R area and a diagnosis variable area D area. The structure and size of the shared data area are consistent with those of the IEC data area.
The interactive processes of the I area, the Q area and the D area are all unidirectional, namely, only one partition is copied to another partition.
The data carrying process of the I area is carried from the I area of the shared data area to the I area of the IEC.
The data carrying process of the Q area is carried from the IEC Q area to the Q area of the shared data area.
The data carrying process of the D area is carried from the D area of the shared data area to the D area of the IEC.
Optionally, the PLC module includes:
the power panel is used for supplying power to the whole module;
the local IO signal board is used for driving and receiving a local IO signal;
and the CPU board is used for supporting software operation and a backboard bus, a communication bus and a network.
The functional block diagram of the system is shown in fig. 4, and the hardware board card of the PLC module is divided into three parts: power panel, local IO signal board, CPU board. The power panel is responsible for the power supply of whole module, and local IO signal board is responsible for driving and receiving local IO signal, and the CPU board is responsible for supporting software operation and backplate bus, communication bus, network. The controller module supplies power to the IO expansion module and the communication expansion module through the interfaces on the two sides of the module. The controller module communicates with the IO expansion module and the communication expansion module through the CAN link. A three-port network switching chip is designed in the controller module, so that the controller supports two-way Ethernet communication.
Alternatively, the IO signal board hardware principle is as shown in fig. 3. IN is the positive end of the analog input, AIN is the negative end of the analog input, and OPT is the voltage signal or current signal switching end. When OPT is 1, TLP3123 is turned off, and the current does not pass through resistor R3, and the external input is a voltage signal of-5V to + 5V. When the OPTO _ AN is 0, the TLP3123 is turned on, a current passes through the resistor R3, and a 4-20mA current signal is inputted from the outside.
It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A master-slave configurable PLC controller based on a CAN bus is characterized in that: the method comprises the following steps:
the PLC modules are provided with IO units and CAN be configured to be in a CAN master station mode or a CAN slave station mode;
the CAN bus is in communication connection with each PLC module;
and the upper computer is in communication connection with each PLC module through an Ethernet module, and is used for configuring the PLC modules into a CAN master station or a CAN slave station and sending configuration information to the CAN master station through the Ethernet module.
2. The CAN-bus based master-slave configurable PLC controller of claim 1, wherein: the PLC controller is provided with a software program, and the architecture of the software program comprises: a driver layer, a platform adaptation layer, a system layer, and an application layer.
3. The CAN-bus based master-slave configurable PLC controller of claim 2, wherein: the application layer comprises:
the CAN protocol stack module is used for field bus communication and sending the received data to the shared data area;
the IO data acquisition and processing module transmits input data to the shared data area and transmits output data to the local hardware module;
the IEC task module is used for acquiring input data from the IEC data area, performing operation according to IEC logic and storing the calculated output data into the IEC data area; the IEC data area and the shared data area carry out periodic data interaction;
and the communication processing module is used for receiving the control command or the data sent by the upper computer and forwarding the control command or the data to the corresponding functional module.
4. The CAN-bus based master-slave configurable PLC controller of claim 1, wherein: the PLC module includes:
the power panel is used for supplying power to the whole module;
the local IO signal board is used for driving and receiving a local IO signal;
and the CPU board is used for supporting software operation and a backboard bus, a communication bus and a network.
5. The CAN-bus based master-slave configurable PLC controller of claim 1, wherein: the plurality of PLC modules include: the device comprises two digital quantity modules, two analog quantity modules, two mixing modules and two thermocouple modules.
6. The CAN-bus based master-slave configurable PLC controller of claim 3, wherein: the CAN master station runs an IO acquisition and output module of an application layer of the software, a CAN protocol stack module, an IEC task module, an upper computer communication module and a communication processing module.
7. The CAN-bus based master-slave configurable PLC controller of claim 3, wherein: and the CAN slave station runs an IO acquisition and output module and a CAN protocol stack module of an application layer of the software.
8. The CAN-bus based master-slave configurable PLC controller of claim 3, wherein: and the shared data area has the same structure with the IEC data area.
9. The CAN-bus based master-slave configurable PLC controller of claim 4, wherein: the controller module supplies power to the IO expansion module and the communication expansion module.
10. The CAN-bus based master-slave configurable PLC controller of claim 9, wherein: and the controller module is communicated with the IO expansion module and the communication expansion module through a CAN link.
CN201921817549.4U 2019-10-25 2019-10-25 Master-slave configurable PLC controller based on CAN bus Active CN210377133U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201921817549.4U CN210377133U (en) 2019-10-25 2019-10-25 Master-slave configurable PLC controller based on CAN bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201921817549.4U CN210377133U (en) 2019-10-25 2019-10-25 Master-slave configurable PLC controller based on CAN bus

Publications (1)

Publication Number Publication Date
CN210377133U true CN210377133U (en) 2020-04-21

Family

ID=70256883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201921817549.4U Active CN210377133U (en) 2019-10-25 2019-10-25 Master-slave configurable PLC controller based on CAN bus

Country Status (1)

Country Link
CN (1) CN210377133U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882420A (en) * 2021-01-18 2021-06-01 广州虹科电子科技有限公司 Universal IO-Link slave station system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882420A (en) * 2021-01-18 2021-06-01 广州虹科电子科技有限公司 Universal IO-Link slave station system

Similar Documents

Publication Publication Date Title
US8509927B2 (en) Control system for controlling safety-critical processes
US20130007319A1 (en) Method and system for implementing redundant network interface modules in a distributed i/o system
CN104169822A (en) Control device and control method
US9934111B2 (en) Control and data transmission system, process device, and method for redundant process control with decentralized redundancy
KR100689323B1 (en) Fieldbus network multiplexing system
CN110099402B (en) Wireless IO link communication network with additional master and method of operation thereof
CN101013316A (en) Bus-type numerical control system and control method thereof
KR101370836B1 (en) An interface module for transferring data between MES and PLC
CN202362658U (en) High-speed field bus control system based on optical fiber
CN110799912A (en) Safety-critical and non-safety-critical process control system with master-slave functionality
CN210377133U (en) Master-slave configurable PLC controller based on CAN bus
US20160103436A1 (en) Control device and method for switching input/output units of a controller
US20050132037A1 (en) Programmable controller and communication interface therefor
CN201035392Y (en) Bus type numerical control system
CN112711217A (en) Master-slave configurable PLC controller based on CAN bus
KR101240703B1 (en) Network extension method of programmable logic controller and network extention system using the same
JP5301088B2 (en) Serial communication device for motor control
KR20180123627A (en) Automation system and method for operation
CN103430109A (en) CPU of PLC, system program for PLC, and recording medium storing system program for PLC
EP2547045A1 (en) Field communication system
US8578077B2 (en) Group master communication system and method for serially transmitting data in automation systems
KR101081935B1 (en) Apparatus for controlling multi-axis motion based on a plurality of channels network and method for the same
CN110663226B (en) Data bus user device
CN201000571Y (en) Optical fiber transmission based bus type numerical control system
US11550298B2 (en) Method for operating an automation technology facility

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant