CN100487614C - Communication method between superior machine and PLC in monitoring system - Google Patents

Communication method between superior machine and PLC in monitoring system Download PDF

Info

Publication number
CN100487614C
CN100487614C CNB2006100976160A CN200610097616A CN100487614C CN 100487614 C CN100487614 C CN 100487614C CN B2006100976160 A CNB2006100976160 A CN B2006100976160A CN 200610097616 A CN200610097616 A CN 200610097616A CN 100487614 C CN100487614 C CN 100487614C
Authority
CN
China
Prior art keywords
station
plc
website
workstation
host computer
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.)
Expired - Fee Related
Application number
CNB2006100976160A
Other languages
Chinese (zh)
Other versions
CN101178596A (en
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.)
Nantong Mingxing Technology Development Co Ltd
Institute of Software of CAS
Original Assignee
Nantong Mingxing Technology Development Co Ltd
Institute of Software of CAS
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 Nantong Mingxing Technology Development Co Ltd, Institute of Software of CAS filed Critical Nantong Mingxing Technology Development Co Ltd
Priority to CNB2006100976160A priority Critical patent/CN100487614C/en
Publication of CN101178596A publication Critical patent/CN101178596A/en
Application granted granted Critical
Publication of CN100487614C publication Critical patent/CN100487614C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses a communication method of an upper computer and PLC in a monitoring system. An in-station and an out-station in a work station need to be controlled, and each in-station or out-station of each work station is corresponding to a status bit in the control signals sent by the upper computer to the PLC. When the in-station status bit of a certain station in the control signals sent by the upper computer is 1, the PLC drives an in-station branch rail of the station to close. When a hanger enters the work station, the PLC controls the in-station branch rail to recover to the original state; when the out- station status bit of a certain station is 1, the PLC drives an out-station branch rail of the station to switch on again; when the hanger enters a main track from the work station, the PLC controls the out-station branch rail to recover again; when a certain status bit in the control signals is 0, the corresponding in-station or out-station of work station has no response. The invention can effectively solves the problem that the main track speed and station scale are limited due to the scanning period of the PLC, and has strong expansibility, simple realization and no additional hardware device needed.

Description

The means of communication of host computer and PLC in a kind of supervisory system
Technical field:
The present invention relates to weaving, clothes manufacture field, relate in particular to the means of communication of host computer and PLC in a kind of supervisory system.
Background technology:
The application in rebuilding traditional industry along with infotech and modern management theory, the some other country in the China and the world has all accelerated to be used for the intelligent material allocation in textile garment field and the research and development and the industrialization of supervisory system as Germany, Sweden, the U.S., Japan etc.Usually, this type systematic comprises material allocation device and the supervisory system two parts that are applied to it.Wherein the material allocation device generally is made up of main orbit and a plurality of workstation that is attached thereto of one or several ellipses, U type and combined shaped thereof, as shown in Figure 1.Workstation is assigned different roles, also promptly has different functions, as preparing station, processing station and quality inspection station etc.Dress material to be processed or material are hung on the suspension bracket, reach the standard grade, enter main orbit by preparing the station.Be uniform-distribution with many gap on the main orbit, each gap can promote a suspension bracket track unidirectional operation.By electric switch, can control the folding of a rail, thereby suspension bracket is sent into any workstation or sent into main orbit by workstation in addition.
The material allocation device is provided with the supervisory system that comprises host computer, according in the upper computer software to the setting of suspension bracket work flow, the signal that collects in real time with the device that is used to discern the suspension bracket sign on the track, host computer can be followed the tracks of the operation of suspension bracket and judge which workstation suspension bracket should enter and process, transmit control signal to opertaing device then, driving device device control suspension bracket enters the corresponding work station.Dress material on suspension bracket has been finished the man-hour that adds at the relevant work station, controls suspension bracket again and gets back to continuation operation on the main orbit, thereby finish remaining work flow.
The opertaing device that uses in above-mentioned supervisory system is generally programmable logic controller (PLC) (Programmable Logic Controller is hereinafter to be referred as PLC).The control signal that PLC sends according to the host computer that receives drives corresponding electric switch, the folding of a track of control linkage workstation, thus finish the action of entering the station or set off of suspension bracket.Because there is the scan period in PLC, if adopt traditional communication modes, each signal frame that is host computer is only controlled entering the station or setting off of some workstations, will limit host computer and send the frequency of signal to PLC, can the support site number thereby further limit the travelling speed of main orbit and whole intelligent material allocation and supervisory system.
Summary of the invention:
The object of the present invention is to provide and a kind ofly can overcome because the host computer of the restriction that existence caused of PLC scan period and the means of communication of PLC.
Technical solution of the present invention is:
The means of communication of host computer and PLC in a kind of supervisory system, it is characterized in that: workstation two stations of entering the station and set off need control, send to entering the station a little of each workstation in the control signal of PLC and go out all corresponding mode bit of website at host computer, the mode bit that enters the station of certain website is 1 in the control signal that host computer is sent, then PLC drives a rail closure that enters the station of this website, after suspension bracket entered this workstation, PLC controlled this rail that enters the station again and recovers virgin state; When the departures mode bit of certain website is 1, then the PLC departures that drive this website are propped up rail and are connected, and after suspension bracket entered main orbit from workstation, PLC controlled these departures rail recovery again, certain mode bit is 0 in control signal, and then corresponding workstation enters the station a little or go out the website attonity.
Because each workstation needs two mode bits, therefore a byte can be controlled four workstations, when whole material allocation and supervisory system have N workstation, then can select to be used as greater than the smallest positive integral byte of N/4 the content of control signal.Can arrange voluntarily as required for the corresponding relation between two reference mark at each mode bit in the control signal and real work station.
Host computer sends above-mentioned control signal with certain cycle to PLC, this transmission cycle should be greater than the scan period of PLC, but simultaneously should be less than a upper limit, this upper limit is by the determining positions of the device that is used to discern the suspension bracket sign on the travelling speed of main orbit and the track, it should guarantee that the time enough surplus allows the plant equipment execution, thereby guarantees that further suspension bracket can successfully enter the station or set off.
In a transmission cycle, the request of entering the station and set off of all operation suspension brackets all is recorded in the frame signal in the system, and promptly working as certain website has suspension bracket to enter the station, and then the mode bit that enters the station of this website correspondence is put 1; Equally, set off when certain website has suspension bracket, then the departures mode bit of this website correspondence is put 1; All the other mode bits are all put 0.
PLC whenever receives the control frame signal that host computer is sent, and just according to the value of mode bit in the signal, adjusts all websites enter the station and set off closure state of rail.
The present invention can solve in this way effectively because there is the restriction that the scan period brought backbone speed and website scale in PLC, and extensibility is strong, implements comparatively simply, need not to add extra hardware device.
Description of drawings
Fig. 1 is a material allocation device synoptic diagram;
Fig. 2 sends to the control signal frame format of PLC for host computer.
Embodiment
In order to make those skilled in the art person better understand the present invention, the present invention is described in further detail below in conjunction with drawings and Examples.
An intelligent material allocation and a supervisory system of supporting 32 workstations uses the PLC of one or more series connection to control entering the station a little of all working station and go out station state.Wherein PLC receives the signal that host computer sends by serial ports (RS232 or RS485).
32 workstations need to comprise in the control signal 64 mode bits, the i.e. data of 8 bytes.Adopt No. 16 function codes, RTU transmission mode and the CRC16 verification mode of Modbus communications protocol, the possible frame format of control signal as shown in Figure 2.Wherein the device address section is used broadcast mode herein for receiving the PLC address of this signal, can be set to 00 (sexadecimal); The function code section is set to 10 (sexadecimal, promptly metric 16), and multiregister is preset in expression; The byte number of user data in the data bulk segment table clear signal, the user data in the signal comprise from all the elements before the CRC check section below the data bulk section, are set to 0A (sexadecimal) herein; The communication count section adds 1 automatically behind signal of the every transmission of host computer, thereby the control signal that PLC is received has continuous count value, so that PLC judges whether to have lost certain signal frame, and after counting reaches maximal value, again since 0, so circulation; Data segment is 8 bytes altogether, each byte correspondence the entering the station and go out station state of 4 workstations.With data byte 1 is example, and its 8 bit representations are as follows:
BIT7?BIT6?BIT5?BIT4?BIT3?BIT2?BIT1?BIT0
Wherein BIT7 has shown the dotted state that enters the station of workstation1, and BIT6 has shown the station state that of workstation1; BIT5 is corresponding to the dotted state that enters the station of workstation 2, and BIT4 is corresponding to the station state that goes out of workstation 2; By that analogy
Use polynomial expression G (X)=X^16+X^15+X^2+1 that slave unit address in the signal frame is begun to make cyclic redundancy check (CRC) to all the elements of a last data byte at last, obtain the value of CRC16 verification section.
According to the PLC scan period of reality and the hardware layout of material allocation device.Send the cycle according to described principle above for the upper computer selecting appropriate signal, as 50ms.The requests of entering the station and set off all in a transmission cycle all are recorded in the frame signal.Suppose to have following request: website 4 has suspension bracket to enter the station, and website 6 has the suspension bracket departures, and website 10 has the suspension bracket departures, and website 11 has suspension bracket to enter the station, then the signal that a frame is complete following (hexadecimal representation):
00?10?0A?00?01?02?10?18?00?00?00?00?00?9C?7D
In sum, the invention discloses the method for host computer and PLC communication in a kind of supervisory system.Above-described application scenarios and embodiment are not to be used to limit the present invention, and any those skilled in the art without departing from the spirit and scope of the present invention, can do various changes and retouching.

Claims (3)

1, the means of communication of host computer and PLC in a kind of supervisory system, it is characterized in that: workstation two stations of entering the station and set off need control, send to entering the station a little of each workstation in the control signal of PLC and go out the corresponding respectively mode bit of website at host computer, the mode bit that enters the station of certain website is 1 in the control signal that host computer is sent, then PLC drives a rail closure that enters the station of this website, after suspension bracket entered this workstation, PLC controlled this rail that enters the station again and recovers virgin state; When the departures mode bit of certain website is 1, then the PLC departures that drive this website are propped up rail and are connected, and after suspension bracket entered main orbit from workstation, PLC controlled these departures rail recovery again, certain mode bit is 0 in control signal, and then corresponding workstation enters the station a little or go out the website attonity; In a transmission cycle, the request of entering the station and set off of all operation suspension brackets all is recorded in the frame signal in the system, and promptly working as certain website has suspension bracket to enter the station, and then the mode bit that enters the station of this website correspondence is put 1; Equally, set off when certain website has suspension bracket, then the departures mode bit of this website correspondence is put 1; All the other mode bits are all put 0; PLC whenever receives the control frame signal that host computer is sent, and just according to the value of mode bit in the signal, adjusts all websites enter the station and set off closure state of rail.
2, the means of communication of host computer and PLC in the supervisory system according to claim 1, it is characterized in that: because two mode bits of each workstation needs, therefore a byte can be controlled four workstations, when whole material allocation and supervisory system have N workstation, select to be used as the content of control signal greater than the smallest positive integral byte of N/4.
3, the means of communication of host computer and PLC in the supervisory system according to claim 1 and 2, it is characterized in that: host computer sends above-mentioned control signal with certain cycle to PLC, this transmission cycle should be greater than the scan period of PLC, but simultaneously should be less than a upper limit, this upper limit is by the determining positions of the device that is used to discern the suspension bracket sign on the travelling speed of main orbit and the track, and it should guarantee that the time enough surplus allows the plant equipment execution.
CNB2006100976160A 2006-11-09 2006-11-09 Communication method between superior machine and PLC in monitoring system Expired - Fee Related CN100487614C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100976160A CN100487614C (en) 2006-11-09 2006-11-09 Communication method between superior machine and PLC in monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100976160A CN100487614C (en) 2006-11-09 2006-11-09 Communication method between superior machine and PLC in monitoring system

Publications (2)

Publication Number Publication Date
CN101178596A CN101178596A (en) 2008-05-14
CN100487614C true CN100487614C (en) 2009-05-13

Family

ID=39404872

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100976160A Expired - Fee Related CN100487614C (en) 2006-11-09 2006-11-09 Communication method between superior machine and PLC in monitoring system

Country Status (1)

Country Link
CN (1) CN100487614C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013033889A1 (en) * 2011-09-06 2013-03-14 长沙中联重工科技发展股份有限公司 Method for communicating with plc and upper computer
CN102508465B (en) * 2011-10-08 2013-10-09 中南大学 Data communication method between programmable controller and upper computer
CN104635700B (en) * 2015-01-16 2017-07-25 江苏云道信息技术有限公司 A kind of production management and control system and method being switched fast for multi-configuration item
CN106348391A (en) * 2016-08-29 2017-01-25 天津膜天膜科技股份有限公司 Membrane water treatment equipment remote monitoring platform
CN107894746A (en) * 2017-11-28 2018-04-10 广东奥瑞特新能源设备科技有限公司 A kind of PLC of mixing plant and the communication means of computer
CN110825015B (en) * 2018-08-07 2023-09-26 中烟机械技术中心有限责任公司 Method and system for recovering data communication between human-computer interface and PLC controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034570A1 (en) * 2000-02-07 2001-10-25 Neff Robert F. Electrified monorail communication system
WO2001091927A1 (en) * 2000-06-01 2001-12-06 W & H Systems, Inc. System for sorting articles using a double carrying tray
CN1343615A (en) * 2000-09-15 2002-04-10 山喜株式会社 Mfg. method of objects, its mfg. appts. and lift hook thereof
CN2807829Y (en) * 2005-07-12 2006-08-23 南通明兴科技开发有限公司 Intelligent material delivery apparatus for garment production and processing enterprise
CN1829646A (en) * 2003-08-07 2006-09-06 不动产麦道尔设计有限公司 Device for the transfer of garment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034570A1 (en) * 2000-02-07 2001-10-25 Neff Robert F. Electrified monorail communication system
WO2001091927A1 (en) * 2000-06-01 2001-12-06 W & H Systems, Inc. System for sorting articles using a double carrying tray
CN1343615A (en) * 2000-09-15 2002-04-10 山喜株式会社 Mfg. method of objects, its mfg. appts. and lift hook thereof
CN1829646A (en) * 2003-08-07 2006-09-06 不动产麦道尔设计有限公司 Device for the transfer of garment
CN2807829Y (en) * 2005-07-12 2006-08-23 南通明兴科技开发有限公司 Intelligent material delivery apparatus for garment production and processing enterprise

Also Published As

Publication number Publication date
CN101178596A (en) 2008-05-14

Similar Documents

Publication Publication Date Title
CN100487614C (en) Communication method between superior machine and PLC in monitoring system
CN101976074B (en) Industrial control system based on field bus and control network
CN204229213U (en) A kind of multi-shaft interlocked servo-control system
CN103425106A (en) Linux-based Ethercat maser/slave station control system and method
CN101771700B (en) Modbus protocol communication node based on FPGA
CN101399700A (en) Apparatus, method and integrated circuit chip having on-line addressing bus type node
CN107748509B (en) ASI communication slave machine implementation method based on single chip microcomputer transceiving control
CN202453710U (en) Multi-axis linkage numerical control system
CN111104272B (en) CAN bus controller testing method based on RX and TX
CN102724092A (en) Profibus-DP communication protocol redundancy master station
CN101404556A (en) One-wire bus communication method
CN105551222A (en) Embedded bridge health monitoring system
CN104102169A (en) Textile and machine control device, control system, control and driving device and communication method
CN204733178U (en) A kind of EtherCAT master station device based on FPGA
CN108908681A (en) A kind of PC concrete prefabricated element production line control system
CN101895534A (en) Protocol conversion interface device of substation intelligent device
CN105955202A (en) Network-based economical embedded five-axis numerical control system and control method thereof
CN104460437A (en) Communication control method and communication device
CN104656604B (en) A kind of utilization MODBUS communication protocols realize the safety and stability control device of electric network and its method of man-machine interaction
CN109634203B (en) Control system for controlling IO terminal based on numerical control controller and corresponding method
CN203433511U (en) Parameter setting system under intelligent control of singlechip microcomputer
CN209627394U (en) A kind of digital signal acquiring device and system
CN107861378A (en) A kind of building method of the multiserver Intelligent remote monitoring system based on WINCC platforms
CN104268348B (en) Visual logistics monitoring system and its implementation based on Intouch
CN107053169A (en) A kind of bus intelligent servo drive system, robot and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090513

Termination date: 20151109

EXPY Termination of patent right or utility model