CN103848366B - A kind of period of service method for limiting of winch intelligent control system and period of service killer - Google Patents

A kind of period of service method for limiting of winch intelligent control system and period of service killer Download PDF

Info

Publication number
CN103848366B
CN103848366B CN201410108998.7A CN201410108998A CN103848366B CN 103848366 B CN103848366 B CN 103848366B CN 201410108998 A CN201410108998 A CN 201410108998A CN 103848366 B CN103848366 B CN 103848366B
Authority
CN
China
Prior art keywords
period
service
killer
micro controller
controller system
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
CN201410108998.7A
Other languages
Chinese (zh)
Other versions
CN103848366A (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.)
Kunming University of Science and Technology
Original Assignee
Kunming University of Science and Technology
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 Kunming University of Science and Technology filed Critical Kunming University of Science and Technology
Priority to CN201410108998.7A priority Critical patent/CN103848366B/en
Publication of CN103848366A publication Critical patent/CN103848366A/en
Application granted granted Critical
Publication of CN103848366B publication Critical patent/CN103848366B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention relates to a kind of period of service method for limiting and period of service killer of winch intelligent control system, belong to field of water conservancy.The method of the invention comprises: arrange from date and date of expiry; Read time data; Return state data; Whether judgement work; Circulatory monitoring.Device of the present invention comprises clock circuit, micro controller system, 485 communication modules; Wherein micro controller system is connected with clock circuit, mouth in 485 communication modules is connected with data sending terminal TXD with the data receiver RXD of micro controller system by half duplex communication mode respectively with input end, in 485 communication modules /RE and DE holds with the P1.7 of micro controller system simultaneously and is connected.The invention solves the deficiency that the long-time power-off of existing installation causes realizing period of service limitation function; And there is the features such as portability is strong, compatibility is good, easy to use, simple and reliable, strong adaptability, volume are little, circuit is simple, cost is lower.

Description

A kind of period of service method for limiting of winch intelligent control system and period of service killer
Technical field
The present invention relates to a kind of period of service method for limiting and period of service killer of winch intelligent control system, belong to field of water conservancy.
Background technology
At present, winch intelligent control system is widely used in mine, harbour, water power, accurate control and the protection occasion of the equipment such as heavy-duty machine and driving open in factories etc., comprising the realization of the limitation function of period of service, but existing winch intelligent control system is all take Siemens S7-200PLC as control core, by software programming by system data write tenure of use in PLC program, then its period of service data are added up, realize time limitation function, but utilize this pure software to realize the method for period of service limitation function, only be only applicable to same operating system, as period of service limitation function need be realized in other operating system, need again write corresponding program code, thus its transplantability known is weak, poor compatibility, use complexity, and in system impact due to many factors after the operation of long period, time after cumulative there will be larger deviation, and do not power on for a long time calendar and tenure of use data all can reset to initial value, the period of service limitation function that power-off time is more than 2 years can not be realized, after adding upper battery modules, calendar also keeps 1 year at most, and battery module is pulled out the system cisco unity malfunction that can cause based on calendar clock, thus the active demand that safe and reliable time limitation function is Practical Project is realized to winch intelligent control system.
Summary of the invention
The invention provides a kind of period of service method for limiting and period of service killer of winch intelligent control system, causing realizing the deficiency of period of service limitation function and transplantability is weak, the problem of poor compatibility, use complexity for solving existing installation long-time power-off.
Technical scheme of the present invention is: a kind of period of service method for limiting of winch intelligent control system, and the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by the micro controller system 2 of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system 2 that time data order passes to period of service killer after 485 communication modules 3 of period of service killer process, the micro controller system 2 of period of service killer receives and reads time data order;
C, return state data: after the micro controller system 2 of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system 2 of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system 2 reads current date N from clock circuit 1 and compares with set date of expiry S:
C11, when N is less than S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system 2 that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
A period of service killer for winch intelligent control system, comprises clock circuit 1, micro controller system 2,485 communication module 3; Wherein micro controller system 2 is connected with clock circuit 1, mouth in 485 communication modules 3 is connected with data sending terminal TXD with the data receiver RXD of micro controller system 2 by half duplex communication mode respectively with input end, in 485 communication modules 3 /RE and DE holds with the P1.7 of micro controller system 2 simultaneously and is connected, and A, B two ends in 485 communication modules 3 are connected with the RS-485 level signal communication terminal of winch intelligent control system respectively.
Described clock circuit 1 is the clock circuit of band lithium cell or the clock circuit of band button cell.
The clock circuit of described band lithium cell comprises SD2400 series clock chip U1, resistance R1, resistance R2, resistance R3, electric capacity C1, electric capacity C2, the wherein vdd terminal of SD2400 series clock chip U1 and the indirect resistance R1 of direct supply VCC positive pole, direct supply VCC positive pole and the indirect electric capacity C1 on ground and the circuit parallel of electric capacity C2, the SCL of SD2400 series clock chip U1, SCLE end simultaneously and the P3.5 end of micro controller system 2 be connected and series resistance R2 between its node and direct supply VCC positive pole, the SDA of SD2400 series clock chip U1, SDAE end simultaneously and the P3.4 end of micro controller system 2 be connected and series resistance R3 between its node and direct supply VCC positive pole, other pin of SD2400 series clock chip U1 is except VBAT, the whole ground connection of external demand that TEST and INT is unsettled.
The clock circuit of described band lithium cell can replace with and comprise DS12887 clock chip U4, not gate NOTA, not gate NOTB; Wherein the INT0 of DS12887 clock chip U4 holds the input end of NAND gate NOTA to connect, DS12887 clock chip U4 /RD hold NAND gate NOTB input end connect, the mouth of not gate NOTA and not gate NOTB respectively with micro controller system 2 /IRQ with DS end is connected, the P2.6 of DS12887 clock chip U4 ,/WR, ALE, AD0 ~ AD7 end respectively with micro controller system 2 /CS, R//W, AS, P0.0 ~ P0.7 holds and is connected.
The clock circuit of described band button cell comprises DS1302 clock chip U6, button cell P1, crystal oscillator T1; Wherein crystal oscillator T1 is connected in parallel on X1 and the X2 two ends of DS1302 clock chip U6, and button cell P1 holds with the VCC1 of DS1302 clock chip U6 and is connected, and I/O, SCLK, RST end of DS1302 clock chip U6 is connected with P1.0, P1.1, P1.2 end of micro controller system 2 respectively.
Working process of the present invention is:
The first step, from date and tenure of use are set
Period of service killer needs first to arrange before use, by the PC from date of 0x10 order transmission 13 bytes of Modbus agreement and date of expiry data (as: 0110111213093050131213DD3C; Wherein the 1st byte is the address of period of service killer, 2nd byte is the order arranging from date and date of expiry, 3rd to the 8th byte is initial date Hour Minute Second, 9th to the 11st byte is for stopping the date, 12nd and the 13rd byte is CRC check code) to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by micro controller system 2, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When (1) two CRC check code is equal (as: DD3C), correctly arrange from date and date of expiry (from date is: during 13 days 09 December in 2011 30 points 50 seconds, date of expiry is on December 13rd, 2013), return a string correct code, as 0110000200AAE1B6;
When (2) two CRC check codes are equal (as: DD3C), from date and date of expiry mistake (if the date of expiry is not on December 13rd, 2013) are set, return the code of a string mistake, as 0190000200FF2057;
(if not being: DD3C), return without code when (3) two CRC check codes are unequal;
Need to check period of service killer in the situation of (2) (3), PC inputs No. 0x10 order again until receive correct code;
Second step, reading time data
Through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, PLC by the 0x03 order transmission of Modbus agreement 8 bytes read the times order data (as: 010300000002C40B) to 485 communication modules 3 of period of service killer, after RS-485 level signal is converted to Transistor-Transistor Logic level signal by the MAX485 chip in 485 communication modules 3, then pass to the micro controller system 2 in period of service killer.
3rd step, return state data
After in use, the micro controller system 2 of killer receives the order data of reading time, first micro controller system 2 judges whether address code is the machine address, if the address code of this order data is not identical with the machine address, then ignores this order data, otherwise front 6 bytes of the order data received are carried out CRC check computing by micro controller system 2, the result of computing compares with the CRC check code of the 7th and 8 bytes that receive: if two CRC check codes are unequal, then ignore this order data, completely the same if (being: C40B), micro controller system 2 sends the data command of a string reading current time to the clock chip in clock circuit 1, after clock chip receives the correct reading data command of micro controller system 2, current time data is fed back to micro controller system 2, then the current time data N received and set date of expiry S compares by micro controller system 2, if N is greater than S(with the order comparative figures size of date), then micro controller system 2 status data is that the Transistor-Transistor Logic level signal of 1 is to 485 communication modules 3, MAX485 chip in 485 communication modules 3 sends PLC to after Transistor-Transistor Logic level signal is converted to RS-485 level signal, if N is less than or equal to S, then the status data that micro controller system 2 sends is 0.
4th step, whether judge work
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC can normally work; If PLC does not receive data and does not just work; If what PLC received is status data 0, then require that PLC inputs password, password this system correct just can normally work, and password bad is with regard to cisco unity malfunction; After have input correct password, PLC transmission amendment arranges from date and the date of expiry orders (as: 01101312140855201412144446) to the micro controller system 2 of period of service killer, makes to extend on December 14th, 2014 tenure of use of period of service killer.
5th step, circulatory monitoring
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps two, three, four.
The invention has the beneficial effects as follows: by adopting the real time clock circuit from charged pool, the deficiency that cannot realize period of service limitation function is caused for the long-time power-off of solution existing installation, thus guarantee that system is licensed for a long time, and only need by adopting any one to use the smart machine of Modbus agreement just can set in real time winch intelligent control system period of service killer, extending and authorize and receive the feedback information of period of service killer; Because the communication between period of service killer and other smart machine only needs two wires just can realize, its portable strong, compatible good, easy to use, simple and reliable, strong adaptability as can be seen here, and there is the features such as volume is little, circuit simple, cost is lower.
Accompanying drawing explanation
Fig. 1 is structured flowchart of the present invention;
Fig. 2 is the schematic circuit diagram of embodiment 1 in the present invention;
Fig. 3 is the schematic circuit diagram of embodiment 2 in the present invention;
Fig. 4 is the schematic circuit diagram of embodiment 3 in the present invention;
Each label in figure: 1 for clock circuit, 2 for micro controller system, 3 be 485 communication modules.
Detailed description of the invention
Embodiment 1: as Figure 1-4, a kind of period of service method for limiting of winch intelligent control system, the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by the micro controller system 2 of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system 2 that time data order passes to period of service killer after 485 communication modules 3 of period of service killer process, the micro controller system 2 of period of service killer receives and reads time data order;
C, return state data: after the micro controller system 2 of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system 2 of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system 2 reads current date N from clock circuit 1 and compares with set date of expiry S:
C11, when N is less than S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system 2 that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
A period of service killer for winch intelligent control system, comprises clock circuit 1, micro controller system 2,485 communication module 3; Wherein micro controller system 2 is connected with clock circuit 1, mouth in 485 communication modules 3 is connected with data sending terminal TXD with the data receiver RXD of micro controller system 2 by half duplex communication mode respectively with input end, the MAX485 chip of 485 communication module 3(and U2 indication) in /RE and DE holds with the P1.7 of micro controller system 2 simultaneously and is connected, and A, B two ends in 485 communication modules 3 are connected with the RS-485 level signal communication terminal of winch intelligent control system respectively.
Described clock circuit 1 is the clock circuit of band lithium cell.
The clock circuit of described band lithium cell comprises SD2400 series clock chip U1, resistance R1, resistance R2, resistance R3, electric capacity C1, electric capacity C2, the wherein vdd terminal of SD2400 series clock chip U1 and the indirect resistance R1 of direct supply VCC positive pole, direct supply VCC positive pole and the indirect electric capacity C1 on ground and the circuit parallel of electric capacity C2, the SCL of SD2400 series clock chip U1, SCLE end simultaneously and the P3.5 end of micro controller system 2 be connected and series resistance R2 between its node and direct supply VCC positive pole, the SDA of SD2400 series clock chip U1, SDAE end simultaneously and the P3.4 end of micro controller system 2 be connected and series resistance R3 between its node and direct supply VCC positive pole, other pin of SD2400 series clock chip U1 is except VBAT, the whole ground connection of external demand that TEST and INT is unsettled.
Micro controller system 2(and U3) to all addresses that SD2400 series clock chip U1 sends, order, data all by P3.4 and P3.5 port transmission, micro controller system U3 produces clock pulse in bus, address signal, data-signal, SD2400 series clock chip U1 then corresponding reception data, send data, A wire, data line, control line are combined into the signal wire (SW) of a serially-transmitted data by SD2400 series clock chip U1 in a serial fashion, this mode signal wire (SW) is few, circuit connect simple, save system resource and board area.
Embodiment 2: as Figure 1-4, a kind of period of service method for limiting of winch intelligent control system, the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by the micro controller system 2 of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system 2 that time data order passes to period of service killer after 485 communication modules 3 of period of service killer process, the micro controller system 2 of period of service killer receives and reads time data order;
C, return state data: after the micro controller system 2 of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system 2 of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system 2 reads current date N from clock circuit 1 and compares with set date of expiry S:
C11, when N is less than S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system 2 that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
A period of service killer for winch intelligent control system, comprises clock circuit 1, micro controller system 2,485 communication module 3; Wherein micro controller system 2 is connected with clock circuit 1, mouth in 485 communication modules 3 is connected with data sending terminal TXD with the data receiver RXD of micro controller system 2 by half duplex communication mode respectively with input end, in 485 communication modules 3 /RE and DE holds with the P1.7 of micro controller system 2 simultaneously and is connected, and A, B two ends in 485 communication modules 3 are connected with the RS-485 level signal communication terminal of winch intelligent control system respectively.
Described clock circuit 1 is the clock circuit of band lithium cell.
The clock circuit of described band lithium cell comprises DS12887 clock chip U4, not gate NOTA, not gate NOTB; Wherein the INT0 of DS12887 clock chip U4 holds the input end of NAND gate NOTA to connect, DS12887 clock chip U4 /RD hold NAND gate NOTB input end connect, the mouth of not gate NOTA and not gate NOTB respectively with micro controller system 2 /IRQ with DS end is connected, the P2.6 of DS12887 clock chip U4 ,/WR, ALE, AD0 ~ AD7 end respectively with micro controller system 2 /CS, R//W, AS, P0.0 ~ P0.7 holds and is connected.
Micro controller system 2(and U5) and the method for attachment of 485 communication modules 3 with embodiment 1; This connection mode is easy to operate, quick, coding is simple.
Embodiment 3: as Figure 1-4, a kind of period of service method for limiting of winch intelligent control system, the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by the micro controller system 2 of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system 2 that time data order passes to period of service killer after 485 communication modules 3 of period of service killer process, the micro controller system 2 of period of service killer receives and reads time data order;
C, return state data: after the micro controller system 2 of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system 2 of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system 2 reads current date N from clock circuit 1 and compares with set date of expiry S:
C11, when N is less than S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system 2 that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
A period of service killer for winch intelligent control system, comprises clock circuit 1, micro controller system 2,485 communication module 3; Wherein micro controller system 2 is connected with clock circuit 1, mouth in 485 communication modules 3 is connected with data sending terminal TXD with the data receiver RXD of micro controller system 2 by half duplex communication mode respectively with input end, in 485 communication modules 3 /RE and DE holds with the P1.7 of micro controller system 2 simultaneously and is connected, and A, B two ends in 485 communication modules 3 are connected with the RS-485 level signal communication terminal of winch intelligent control system respectively.
Described clock circuit 1 is the clock circuit of band button cell.
The clock circuit of described band button cell comprises DS1302 clock chip U6, button cell P1, crystal oscillator T1; Wherein crystal oscillator T1 is connected in parallel on X1 and the X2 two ends of DS1302 clock chip U6, and button cell P1 holds with the VCC1 of DS1302 clock chip U6 and is connected, and I/O, SCLK, RST end of DS1302 clock chip U6 is connected with P1.0, P1.1, P1.2 end of micro controller system 2 respectively.
Micro controller system 2(and U7) and the method for attachment of 485 communication modules with embodiment 1; This mode signal wire (SW) is few, circuit connects simple, saving system resource.
Embodiment 4: as Figure 1-4, a kind of period of service method for limiting of winch intelligent control system, the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system 2 of period of service killer, front for the data received 11 bytes are carried out CRC check computing by the micro controller system 2 of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system 2 that time data order passes to period of service killer after 485 communication modules 3 of period of service killer process, the micro controller system 2 of period of service killer receives and reads time data order;
C, return state data: after the micro controller system 2 of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system 2 of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system 2 reads current date N from clock circuit 1 and compares with set date of expiry S:
C11, when N is less than S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system of period of service killer 2 by 485 communication modules 3 to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system 2 that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
By reference to the accompanying drawings the specific embodiment of the present invention is explained in detail above, but the present invention is not limited to above-mentioned embodiment, in the ken that those of ordinary skill in the art possess, various change can also be made under the prerequisite not departing from present inventive concept.

Claims (6)

1. a period of service method for limiting for winch intelligent control system, is characterized in that: the concrete steps of described method are as follows:
A, from date and date of expiry are set: by the from date of 0x10 order transmission 13 bytes of PC Modbus agreement and date of expiry data to the micro controller system of period of service killer (2), front for the data received 11 bytes are carried out CRC check computing by the micro controller system (2) of period of service killer, and the result of computing compares with the CRC check code of the 12nd and 13 bytes that receive:
When A1, two CRC check codes are equal, from date and date of expiry are correctly set, return a string correct code;
When A2, two CRC check codes are equal, from date and date of expiry mistake are set, return the code of a string mistake;
When A3, two CRC check codes are unequal, return without code;
In A2, A3 situation, first check period of service killer, then PC inputs No. 0x10 order again until receive correct code;
B, reading time data: through the slave station of the correct period of service killer arranged as the inner Modbus network of PLC of winch intelligent control system, after PLC powers on, by the reading time data order of 0x03 order transmission 8 bytes of Modbus agreement, read the micro controller system (2) that time data order passes to period of service killer after 485 communication modules (3) process of period of service killer, the micro controller system (2) of period of service killer receives and reads time data order;
C, return state data: after the micro controller system (2) of killer receives and reads time data order in use, first judge whether address code is the machine address:
If the address code of these group data of C1 is identical with the machine address, then continue processing command code and data: front 6 bytes receiving data are carried out CRC check computing by the micro controller system (2) of period of service killer: if operation result is different with 8 bytes from the 7th, then ignore; If completely the same, then described micro controller system (2) reads current date N from clock circuit (1) and compares with set date of expiry S:
C11, when N is less than S, the micro controller system (2) of period of service killer by 485 communication modules (3) to PLC return state data 1;
C12, when N is more than or equal to S, the micro controller system (2) of period of service killer by 485 communication modules (3) to PLC return state data 0;
If the address code of these group data of C2 is different with the machine address, then ignore this order data;
D, whether judge work:
If what PLC received is status data 1, then the winch intelligent control system being CPU with this PLC normally works;
If PLC does not receive data and does not just work;
If what PLC received is status data 0, just require that PLC inputs password: when password correctly just can normally work; When password bad is with regard to cisco unity malfunction; After have input correct password, PLC sends amendment and arranges the micro controller system (2) that from date and date of expiry order period of service killer;
E, circulatory monitoring:
Through being again correctly provided with the period of service killer of from date and date of expiry, after PLC powers on, winch intelligent control system period of service killer repeated execution of steps B, C, D.
2. use a period of service killer for the winch intelligent control system of the period of service method for limiting of the winch intelligent control system described in claim 1, it is characterized in that: comprise clock circuit (1), micro controller system (2), 485 communication modules (3); Wherein micro controller system (2) is connected with clock circuit (1), mouth in 485 communication modules (3) is connected with data sending terminal TXD with the data receiver RXD of micro controller system (2) by half duplex communication mode respectively with input end, in 485 communication modules (3) /RE and DE holds with the P1.7 of micro controller system (2) simultaneously and is connected, and A, B two ends in 485 communication modules (3) are connected with the RS-485 level signal communication terminal of winch intelligent control system respectively.
3. the period of service killer of winch intelligent control system according to claim 2, is characterized in that: described clock circuit (1) is the clock circuit of band lithium cell or the clock circuit of band button cell.
4. the period of service killer of winch intelligent control system according to claim 3, is characterized in that: the clock circuit of described band lithium cell comprises SD2400 series clock chip U1, resistance R1, resistance R2, resistance R3, electric capacity C1, electric capacity C2, the wherein vdd terminal of SD2400 series clock chip U1 and the indirect resistance R1 of direct supply VCC positive pole, direct supply VCC positive pole and the indirect electric capacity C1 on ground and the circuit parallel of electric capacity C2, the SCL of SD2400 series clock chip U1, SCLE end simultaneously and the connected and series resistance R2 between its node and direct supply VCC positive pole of the P3.5 end of micro controller system (2), the SDA of SD2400 series clock chip U1, SDAE end simultaneously and the connected and series resistance R3 between its node and direct supply VCC positive pole of the P3.4 end of micro controller system (2), other pin of SD2400 series clock chip U1 is except VBAT, the whole ground connection of external demand that TEST and INT is unsettled.
5. the period of service killer of winch intelligent control system according to claim 3, is characterized in that: the clock circuit of described band lithium cell can replace with and comprise DS12887 clock chip U4, not gate NOTA, not gate NOTB; Wherein the INT0 of DS12887 clock chip U4 holds the input end of NAND gate NOTA to connect, DS12887 clock chip U4 /RD hold NAND gate NOTB input end connect, the mouth of not gate NOTA and not gate NOTB respectively with micro controller system (2) /IRQ with DS end is connected, the P2.6 of DS12887 clock chip U4 ,/WR, ALE, AD0 ~ AD7 end respectively with micro controller system (2) /CS, R//W, AS, P0.0 ~ P0.7 holds and is connected.
6. the period of service killer of winch intelligent control system according to claim 3, is characterized in that: the clock circuit of described band button cell comprises DS1302 clock chip U6, button cell P1, crystal oscillator T1; Wherein crystal oscillator T1 is connected in parallel on X1 and the X2 two ends of DS1302 clock chip U6, button cell P1 holds with the VCC1 of DS1302 clock chip U6 and is connected, and I/O, SCLK, RST end of DS1302 clock chip U6 is connected with P1.0, P1.1, P1.2 end of micro controller system (2) respectively.
CN201410108998.7A 2014-03-24 2014-03-24 A kind of period of service method for limiting of winch intelligent control system and period of service killer Expired - Fee Related CN103848366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410108998.7A CN103848366B (en) 2014-03-24 2014-03-24 A kind of period of service method for limiting of winch intelligent control system and period of service killer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410108998.7A CN103848366B (en) 2014-03-24 2014-03-24 A kind of period of service method for limiting of winch intelligent control system and period of service killer

Publications (2)

Publication Number Publication Date
CN103848366A CN103848366A (en) 2014-06-11
CN103848366B true CN103848366B (en) 2016-04-20

Family

ID=50856549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410108998.7A Expired - Fee Related CN103848366B (en) 2014-03-24 2014-03-24 A kind of period of service method for limiting of winch intelligent control system and period of service killer

Country Status (1)

Country Link
CN (1) CN103848366B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109873627B (en) * 2018-12-13 2023-04-07 山东亚华电子股份有限公司 Be applied to time delay of nursing communication and go up electric circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807044B (en) * 2009-12-18 2011-08-10 安徽鑫龙电器股份有限公司 Clock timing method of multifunctional meter

Also Published As

Publication number Publication date
CN103848366A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN103778772B (en) Framing and interconnection transmitting method in electricity utilization information collecting system
CN102116165A (en) Hydraulic support control device of coal mine and distributed control system thereof
CN201751897U (en) 1553B bus test equipment
CN201751898U (en) 1553B bus test device
CN103848366B (en) A kind of period of service method for limiting of winch intelligent control system and period of service killer
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN203950298U (en) A kind of wireless programming device
CN101397020B (en) Intelligent acquisition driving device
CN203855352U (en) Service time limiter of hoist intelligent control system
CN110308685A (en) A kind of electric power overhaul working site monitoring equipment
CN103677991A (en) Task execution method based on single chip microcomputer system framework and single chip microcomputer system framework
CN101685673B (en) Distributed burning system
CN201212725Y (en) Integrated intelligent charging type water heater
CN104268109A (en) Data interface communication method and device
CN204740724U (en) Automatic wireless communication system of UART
CN209842365U (en) Signal processing system
CN206497534U (en) A kind of tax-control cash register
CN202363365U (en) Circuit capable of preventing relay from running during power-on process
CN106530023A (en) Tax supervising server and anti-suspension method of tax supervising core board
CN202721690U (en) Bus coupler
CN105354120A (en) SCD file document check device for intelligent substation
CN201854243U (en) Secondary module of control and protective switching device
CN206353179U (en) A kind of intelligent electric meter
CN101635067A (en) Card-reading circuit controller for special equipment operating personnel
CN205039829U (en) Terminal signal detection circuit and device

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: 20160420

CF01 Termination of patent right due to non-payment of annual fee