CN101175125B - Front end machine device of monitoring system - Google Patents
Front end machine device of monitoring system Download PDFInfo
- Publication number
- CN101175125B CN101175125B CN200710071152A CN200710071152A CN101175125B CN 101175125 B CN101175125 B CN 101175125B CN 200710071152 A CN200710071152 A CN 200710071152A CN 200710071152 A CN200710071152 A CN 200710071152A CN 101175125 B CN101175125 B CN 101175125B
- Authority
- CN
- China
- Prior art keywords
- collection terminal
- end processor
- interface
- frame
- alarm
- 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
Links
- 238000012544 monitoring process Methods 0.000 title abstract description 11
- 238000004891 communication Methods 0.000 claims abstract description 35
- 238000012545 processing Methods 0.000 claims abstract description 17
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000012546 transfer Methods 0.000 claims description 8
- 230000002547 anomalous effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
A front end machine device of the monitoring system comprises a telephone interface, a power source interface, a warning interface of breaking of the telephone line, a second RS485 interface connecting to a first RS485 interface at the collecting end, a fourth RS 485 interface connecting to a third RS485 interface of the back end machine, a data processing module for controlling the collecting end, the fourth RS485 interface and the communication of the back end machine via the second RS485 interface. The data processing module comprises a parameter configuration module of the collecting end, a parameter definition module of the collecting end, a parameter setting module of the collecting end, a parameter configuration module of the front end machine and a parameter setting module of the front end machine. The invention provides a front end machine device of good universality and effective system expansion of the monitoring system by using bus RS485 to integrate the products of various factories and types and on the basis of the proposal of the site bus.
Description
Technical field
The present invention relates to supervisory control system, especially a kind of front end machine device.
Background technology
Supervisory control system is primarily aimed at the ANOMALOUS VARIATIONS in the equipment operation, the various catastrophic discontinuityfailures that in continuous running, occur of equipment particularly, the in time phenomenon of the failure in the discovering device running and fault analyzed and diagnose to guarantee that equipment is in good working order all the time.Relate to the analysis of diagnosis, fault effects of identification, the change mechanism of detection, the amplitude of variation of each parameter in the equipment operation and the treatment measures that should take at fault etc.
For the equipment that great majority move continuously, monitoring generally includes the content of following four aspects:
1. ANOMALOUS VARIATIONS detects: whether ANOMALOUS VARIATIONS has taken place after point or this time point between at a time in surveillance equipment running status, checkout equipment moving law or evolution trend, and infers the zero-time that changes;
2. ANOMALOUS VARIATIONS identification: if ANOMALOUS VARIATIONS has taken place equipment, the amplitude of identification change type and variation is so that assess fault degree;
3. faulty equipment separates: the ANOMALOUS VARIATIONS of judgment device is which link by which parts or equipment running process causes, with the reason of finding out that fault forms;
4. equipment fault countermeasure: according to the adverse effect that fault may be brought, formulate corresponding treatment Countermeasures, can normally move or avoid whole system generation bust to guarantee equipment.
The wireless dried cutting edge technology that monitoring is the monitoring field that progressively grows up along with the development of Computer Control Technology and network communications technology of putting, mainly contain remote monitoring and centralized monitor, centralized monitor is that Surveillance center is located at around some dried putting, data acquisition controller and the dried equipment of putting are realized communication by the self-control interface card, data acquisition controller links to each other with master station by network, realize transfer of data, dried running status of putting is carried out the dynamic real-time monitor management, can grasp dried running status of putting, statistics service data at any time; Remote monitoring is generally carried out transfer of data by telephone network or wireless network, and the dried supervisory control system collection terminal of putting is connected with telephone network or wireless network through the self-control interface card, and master station directly links to each other with telephone network or wireless network.Wireless network or the telephone wire of both sides by separately links to each other with telephone network and realizes exchanges data, need dial during the transmission data and cry the connection of the other side's telephone number or land wireless network, can transmit data after the connection.
Centralized monitor carries out transfer of data by network, transfer of data is stable, real-time Data Transmission speed is fast, near can monitoring simultaneously a plurality of dried equipment of putting, and remote monitoring is subjected to the influence of network condition by telephone network or wireless network transmission data, transfer of data is unreliable, need correction process, and communication speed is slower, can only checks dried service data of putting one by one.
For the front-end processor of supervisory control system, dried data front-end processor of putting equipment different manufacturers, different model is often inequality, does not have versatility, has limited the expansion of system.
Summary of the invention
Deficiency for the expansion that does not have versatility, restriction system of the front-end processor of the supervisory control system that overcomes, the invention provides a kind of Fieldbus Based scheme, adopt the RS485 bus, can integrate product different manufacturers, different model, have versatility good, and can carry out the front end machine device of the supervisory control system of efficient system expansion.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of front end machine device of supervisory control system, the data processing module that comprises telephony interface, power interface, telephone wire disconnected alarm interface, the 2nd RS485 interface that is connected with a RS485 interface of collection terminal, the 4th RS485 interface that is connected with the 3rd RS485 interface of backend machine and be used for communicating by letter with backend machine by described the 2nd RS485 interface control collection terminal, the 4th RS485 interface, described data processing module comprises:
The collection terminal parameter configuration module is used to judge whether collection terminal inside has the FLASH configuration information, as does not have that then collection terminal is waited for the configuration order from a RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside;
Described configuration information comprises: configuration parameter version number, circuit number, front-end processor numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity significance bit, output digital switch quantity state normal value, the effective number of analog quantity port;
Collection terminal parameter-definition module is used to be provided with the digital switch quantity of collection terminal, the number of analog quantity and the corresponding relation of each amount and actual physics implication;
Collection terminal is provided with parameter module, the output digital switch quantity, alarm that is used to be provided with collection terminal is up and down when value, input switch amount quantity of state or whole parameter configuration, parameter configuration frame to the collection terminal transmission, and being saved in collection terminal, collection terminal terminal is forward replied the collection terminal address and success is set or the frame of failure flags;
The front-end processor parameter configuration module is used to judge whether front-end processor inside has the FLASH configuration information, as does not have that then front-end processor is waited for the configuration order from the 4th RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside;
The deploy content of front-end processor comprises: configuration parameter version number, circuit number, front-end processor numbering, alarm telephone number;
Front-end processor is provided with parameter module, when being used to be provided with the output digital switch quantity, alarm parameter bound of collection terminal or input switch quantity of state, backend machine is the parameter configuration frame of terminal transmission forward, and being saved in collection terminal, front-end processor is replied the frame of backend machine collection terminal address and success or failure flags; And when front-end processor alarm telephone number was set, backend machine terminal forward sent the parameter configuration frame and is saved in front-end processor, and front-end processor is replied the frame of backend machine collection terminal address and success or failure flags.
Further, described data processing module also comprises: collection terminal data query module, and be used for front-end processor and send querying command to collection terminal, collection terminal terminal is forward replied the data acquisition frame.
Further again, described data processing module also comprises: front-end processor data query module, be used for backend machine terminal transmission querying command forward, and front-end processor is replied backend machine data acquisition frame.
Further, described data processing module also comprises: alarm module, be used for when front-end processor is sent alarm, and front-end processor terminal backward sends the alarm frame, after backend machine is received the alarm frame, send content and comprise the address of alarm collection end and the frame of success or failure flags.
The transfer of data of the 2nd a RS485 interface of described front-end processor and a RS485 interface of collection terminal is by RS485 half-duplex, multi-computer communication mode.
Beneficial effect of the present invention mainly shows: 1, Fieldbus Based scheme, adopt the RS485 bus, can integrate product different manufacturers, different model, have versatility good, and can carry out the efficient system expansion; 2, fieldbus extends to each dried putting in the equipment to communication network always, be configured for the interconnection of the field apparatus of monitoring automation, signal transmission total digitalization, improve precision of signal conversion and reliability, avoided the long-term insoluble problems such as introducing of existing signal attenuation in the analog signal transmission process, precise decreasing, interference signal; 3, fieldbus is open internet, both can be with interconnected with layer network, also can with the different layers network interconnection, the networking products of different manufacturers also should be able to be interconnected.
Description of drawings
Fig. 1 is the theory diagram of front end machine device of the present invention.
Fig. 2 is an initialization task flow chart of the present invention.
Fig. 3 is a clock mission flow diagram of the present invention.
Fig. 4 is of the present invention and data acquisition unit communication task flow chart.
Fig. 5 is of the present invention and backend machine communication task flow chart.
Fig. 6 is a serial ports interrupt function flow chart of the present invention.
Fig. 7 is a RS485 transmitting-receiving switching function flow chart of the present invention.
Fig. 8 is that RS485 of the present invention receives packet function flow chart.
Fig. 9 is that RS485 of the present invention sends packet function flow chart.
Figure 10 is a DTMF communication pattern dislodging machine flow chart of the present invention.
Figure 11 is that DTMF message communication of the present invention sends the function flow chart.
Figure 12 is a DTMF message communication receiver function flow chart of the present invention.
Figure 13 is the configuration file flow chart that reads of the present invention.
Figure 14 is the configuration file flow chart that writes of the present invention.
Whether correctly Figure 15 is query configuration file of the present invention flow chart.
Embodiment
Below in conjunction with accompanying drawing the present invention is further described.
With reference to Fig. 1~Figure 15, a kind of front end machine device of supervisory control system, comprise telephony interface 1, power interface 2, the telephone wire alarm interface 3 that breaks, the 2nd RS485 interface 4 that is connected with a RS485 interface of collection terminal, the 4th RS485 interface 5 that is connected with the 3rd RS485 interface of backend machine and being used for by described the 2nd RS485 interface control collection terminal, the data processing module 6 that the 4th RS485 interface is communicated by letter with backend machine, described data processing module 6 comprises: collection terminal parameter configuration module 7, be used to judge whether collection terminal inside has the FLASH configuration information, as do not have, then collection terminal is waited for the configuration order from a RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside; Described configuration information comprises: configuration parameter version number, circuit number, front-end processor numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity significance bit, output digital switch quantity state normal value, the effective number of analog quantity port;
Collection terminal parameter-definition module 8 is used to be provided with the digital switch quantity of collection terminal, the number of analog quantity and the corresponding relation of each amount and actual physics implication;
Collection terminal is provided with parameter module 9, the output digital switch quantity, alarm that is used to be provided with collection terminal is up and down when value, input switch amount quantity of state or whole parameter configuration, parameter configuration frame to the collection terminal transmission, and being saved in collection terminal, collection terminal terminal is forward replied the collection terminal address and success is set or the frame of failure flags;
Front-end processor parameter configuration module 10 is used to judge whether front-end processor inside has the FLASH configuration information, as does not have that then front-end processor is waited for the configuration order from the 4th RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside; The deploy content of front-end processor comprises: configuration parameter version number, circuit number, front-end processor numbering, alarm telephone number;
Front-end processor is provided with parameter module 11, when being used to be provided with the output digital switch quantity, alarm parameter bound of collection terminal or input switch quantity of state, backend machine is the parameter configuration frame of terminal transmission forward, and being saved in collection terminal, front-end processor is replied the frame of backend machine collection terminal address and success or failure flags; And when front-end processor alarm telephone number was set, backend machine terminal forward sent the parameter configuration frame and is saved in front-end processor, and front-end processor is replied the frame of backend machine collection terminal address and success or failure flags.
Described data processing module 6 also comprises: collection terminal data query module 12, and be used for front-end processor and send querying command to collection terminal, collection terminal terminal is forward replied the data acquisition frame.
Described data processing module 7 also comprises: front-end processor data query module 13, be used for backend machine terminal transmission querying command forward, and front-end processor is replied backend machine data acquisition frame.
Described data processing module 7 also comprises: alarm module 14, be used for when front-end processor is sent alarm, and front-end processor terminal backward sends the alarm frame, after backend machine is received the alarm frame, sends content and comprises the address of alarm collection end and the frame of success or failure flags.
The transfer of data of the 2nd a RS485 interface of described front-end processor and a RS485 interface of collection terminal is by RS485 half-duplex, multi-computer communication mode.
The front end machine device of present embodiment comprises telephony interface 1,3, two RS485 interfaces 4,5 of the disconnected alarm of telephone wire, power interface 2, stand-by lamp 15, run indicator 16.The switching value interface of collection terminal and analog acquisition interface is the switching value and the analog quantity of image data respectively.The one RS485 interface of collection terminal connects the 2nd RS485 interface of front-end processor, and front-end processor can dispose the higher limit and the lower limit of initial value, the effective number of analog quantity port and each analog quantity of effective port, the effective port of input controlled quentity controlled variable, the output controlled quentity controlled variable of value, the input switch amount of address, the input switch amount normal state of collection terminal by this interface.Also can link to each other with computer simultaneously and reach the purpose of configuration collection terminal by the RS235 interface.
When communicating by letter with front-end processor, adopts collection terminal following communication protocol:
If the inner FLASH of collection terminal does not have configuration information, then collection terminal is waited for the configuration order from RS232 always.The mode of serial ports is different when being defined in parameter configuration and communicating by letter with front-end processor.Being " 38400bps, N, 8,1 " during parameter configuration, is the multi-computer communication mode when communicating by letter with front-end processor, " 38400bps, M/S, 9,1 ".Configuration order is " 10,02, length (1 byte), 0A (order), deploy content, CRC, 10,03 ".Collection terminal is replied ack signal after correctly being disposed; After receiving error configurations, reply the NAK signal; Overtime is 5s.After the correct configuration, reset and restart.
If the inner FLASH of collection terminal has configuration information, wait in the time of the 10s behind then each the startup reconfiguring order.Surpass after the 10s, according to the configuration information work of inside.
If the collection terminal operate as normal also can be revised configuration by front-end processor, handle (annotate: all reserve bytes all no longer support) according to communication protocol this moment.
The deploy content of the inner FLASH of collection terminal is defined as: configuration parameter version number (2 bytes, keep), circuit number (1 byte, keep), front-end processor numbering (1 byte, keep), collection terminal address (1 byte), input digit switching value state normal value (1 byte), input digit switching value significance bit (1 byte), output digital switch quantity significance bit (1 byte), output digital switch quantity state normal value (1 byte), the effective number of analog quantity port (1 byte), analog quantity alarm upper lower limit value.
Digital switch quantity: the on off state of collection terminal (as the voltage alarm of equipment) comprises input digit switching value and output digital switch quantity.The alarm of digital switch quantity is brought in judgement by collection, and front-end processor sends.
Analog quantity: collection terminal is gathered and analog-to-digital conversion some analog quantity of equipment, and scope is 0x00~0xFF.Collection terminal is differentiated analog quantity whether in reasonable range, and alarm being sent by front-end processor.
PC and collection terminal both sides know the digital switch quantity of knowing collection terminal, the number of analog quantity, and the corresponding relation of each amount and actual physics implication.The address of each collection terminal is come unique definite by circuit number+front-end processor numbering+collection terminal address.The KG7...KG0 that puts in order of switching value (byte representation); The An0...An7 that puts in order of analog quantity.Each analog quantity is with a byte representation.Circuit number, front-end processor numbering, collection terminal address number are 1~32, and 0xFF is a broadcast address.
The transmission of data is by RS485 half-duplex, multi-computer communication mode.Front-end processor is as main frame, and collection terminal is as slave.Each frame message, first byte are that (SM2=1 TB8=1), is that (SM2=0 TB8=0), sends the back wait receiving terminal that finishes and replys ACK/NAK message content to slave addresses then.If ACK then sends the message success; If NAK then retransmits, retransmit maximum 3 times; If in 0.5s, do not receive and reply, then send failure, do not retransmit.Transmitting terminal was in the multi-computer communication mode again after transmission finished.After sending successfully, then wait for replying of receiving terminal, the stand-by period is the longest to be 0.5s.It was 0 (several machine cycle) that the RS485 half-duplex switches to the accepting state time from transmit status, switched to the longest 0.1s of being of transmit status time from accepting state, to guarantee correct reception.
When normal data was inquired about, front-end processor sent order to collection terminal and is numbered 0x11, and when gathering the data of single collection terminal, the collection terminal number is 0x01, and content is 1~32, the address of expression collection terminal.Collection terminal terminal commands in return forward is numbered the data acquisition frame of 0x81.Content frame is collection terminal address, input digit switching value alarm sign, 8 input digit switching values, 8 the digital control amounts of output, analog quantity alarm sign, analog quantity effective port position and each analog value.Front-end processor timing scan collection terminal, and the data acquisition frame is kept in the front-end processor.
When collection terminal output digital switch quantity was set, front-end processor sent the parameter configuration frame of order label position 0x02 to collection terminal, and is saved in the collection terminal.The content of parameter configuration frame is collection terminal address, output digital switch quantity significance bit, puts 1 register and put 0 register.For example: be set to 1 to controlled quentity controlled variable 0,3,4, controlled quentity controlled variable 2,6 is set to 0, and then putting 1 register is B00011001, and putting 0 register is B01000100.Correspondingly, " output digital switch quantity state normal value ", " the output digital switch quantity significance bit " of parameter configuration content will make an amendment.
When collection terminal alarm being set being worth up and down, front-end processor sends order to collection terminal and is numbered the parameter configuration frame of 0x04, and is saved in collection terminal.Content frame is the upper limit and the lower limit of collection terminal address, analog quantity effective port position and each analog quantity.Collection terminal is the frame of terminal commands in return numbering position 0x84 forward, collection terminal address, content position and success or failure flags.Success indicates content position 0x01, failure flags content position 0xFF.
When collection terminal input switch amount quantity of state was set, front-end processor sent the parameter configuration frame that order is numbered 0x99 to collection terminal, and content frame is collection terminal address, input digit switching value effective port position and input digit switching value normal value.Collection terminal terminal commands in return forward is numbered 0x89, and content is the frame of collection terminal address and success or failure flags.
When the whole parameter configuration of collection terminal was set, front-end processor sent order to collection terminal and is numbered the data configuration frame of 0x0A, and is kept in the collection terminal.Deploy content is configuration parameter version (2 bytes keep), circuit number, front-end processor numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity significance bit, output digital switch quantity state normal value, the effective number of analog quantity port and analog quantity upper alarm threshold value and lower limit.Collection terminal is the frame of terminal commands in return numbering position 0x8A forward, collection terminal address, content position and success or failure flags.
When communicating by letter with backend machine, front-end processor adopts following agreement:
The transmission of the parameter configuration data of front-end processor is carried in the transmission of public land telephone network by dtmf signal, set up the point-to-point communication link by dialing, after communication link is set up again, the transmission of data on communication link is the transmission of half-duplex, sends out and receives and must separate (this is determined by the phone module function).Transmission is unit with the byte, and a dtmf signal is 4bit, and byte transmits to be made up of 2 dtmf signals, sends out earlier nibble high, then sends out nibble low.The transmitting time of each dtmf signal is 0.2 second, and the time of a byte transmission is 0.4 second.
Transmitting terminal: off-hook (time-delay 1s), dialing (number of 0.5s speed), 5s receive the other side and transmit ACK and represent that data transmission link sets up successfully, otherwise the data link connection failure, on-hook (the on-hook time is 1s, hangs up to guarantee telephone line);
Responding terminal: receive behind the shake bell signal off-hook in the 1s, send ACK and represent that data link sets up successfully, enters data receiving state.
Except the front-end processor active alarm, initiatively dial by backend machine and to communicate by letter with front-end processor.Communication adopts the mode of question-response to carry out.If in official hour, do not receive and reply or command message, then initiatively take out stitches.
Time-out time is provided with: general message (command message and response message) time-out time is 5s.Send to the configuration order message of front-end processor and the warning message of front-end processor active notification by backend machine, message sends the time rule of back wait acknowledge message for the longest 60 seconds.
Front-end processor is poll scanning collection end always, and the data that scan are kept at front-end processor inside.And backend machine is idle usually, has only after PC sends command message, and backend machine is just communicated by letter with front-end processor, obtains or be provided with the data of the collection terminal under the front-end processor.If the normal data inquiry is then directly read from front-end processor inside; If the collection terminal parameter is set, then be saved in the collection terminal.
If the inner FLASH of front-end processor does not have configuration information, then wait for configuration order from RS232/RS485 always.The mode of serial ports is different when being defined in parameter configuration and communicating by letter with collection terminal.Being " 9600bps, N, 8,1 " during parameter configuration, is the multi-computer communication mode when communicating by letter with collection terminal, " 9600bps, M/S, 9,1 ".Configuration order is " 10,02, length (1 byte), 0B (order), deploy content, CRC, 10,03 ".Front-end processor is replied ack signal after correctly being disposed; After receiving error configurations, reply the NAK signal; Overtime is 5s.After the correct configuration, reset and restart.
If the inner FLASH of front-end processor has configuration information, wait in the time of the 10s behind then each the startup reconfiguring order.Surpass after the 10s, according to the configuration information work of inside.If the front-end processor operate as normal also can dispose by backend machine, handle according to communication protocol this moment.
The deploy content of the inner FLASH of front-end processor is defined as: configuration parameter version number (2 bytes, reservation), circuit number (1 byte, reservation), front-end processor numbering (1 byte, reservation), alarm telephone number (4 * 4 byte).
When the normal data inquiry, backend machine terminal forward sends the data acquisition frame that order is numbered 0x11, and when gathering the data of single collection terminal, the collection terminal number is 0x01, and content is 1~32, and the address of collection terminal is specified in expression.During the data of all collection terminals under gathering this front-end processor, the number of collection terminal is 0xFF, and content is 0xFF.Front-end processor is replied backend machine is numbered 0x81 with order frame, content frame is the data message newspaper of corresponding collection terminal, comprises the value of collection terminal address, input digit switch alarm sign, 8 input digit switching values, 8 the digital control amounts of output, analog quantity alarm sign, analog quantity effective port position and each analog quantity.
When collection terminal output digital switch quantity was set, backend machine terminal forward sent the parameter configuration frame of order label position 0x22 and is saved in collection terminal, and content frame comprises collection terminal address, output digital switch quantity significance bit, puts 1 register and put 0 register.Front-end processor is replied the frame of backend machine with order label position 0x82, and content comprises collection terminal address and success or failure flags.
When the configuration of front-end processor alarm telephone number argument was set, backend machine terminal forward sent the parameter configuration frame of order numbering position 0x03 and is saved in front-end processor, and content frame comprises alarm telephone number (4 byte), and number is not enough to be replenished with ' F '.Front-end processor is replied the frame of backend machine with order numbering position 0x83, and content comprises collection terminal address and success or failure flags.
When the collection terminal alarm parameter being set being worth up and down, backend machine terminal forward sends the parameter configuration frame of order numbering position 0x04 and is saved in collection terminal, and content frame comprises the higher limit and the lower limit of collection terminal address, analog quantity effective port position and each analog quantity.Front-end processor is replied the frame of backend machine with order numbering position 0x84, and content comprises collection terminal address and success or failure flags.
When front-end processor was initiated alarm, front-end processor terminal backward sent the alarm frame that position 0x85 is numbered in order, and alarm type 0x01 is the front-end processor fault; 0x02 is that collection terminal is lost; 0x04 is that collection terminal is newly-increased; 0x08 is the alarm of collection terminal data; 0x10 is the collection terminal fault; If front-end processor breaks down, then PC sends any command message to this front-end processor, and front-end processor all less than reaction, then judges that by PC front-end processor breaks down.0x08 type and 0x04 type alarm content frame are the value of collection terminal address, alarm type, switching value alarm sign, 8 switching values, 8 controlled quentity controlled variables, analog quantity significance bit, analog quantity alarm sign and each analog quantity.For other alarm types, content frame is the address and the alarm type of corresponding alarm collection end.Backend machine sends the frame that order is numbered 0x55 after receiving the alarm frame, and content comprises address and the success or the failure flags of alarm collection end.
When collection terminal input switch quantity of state is set, backend machine terminal forward sends the frame that order is numbered 0x09, and content frame comprises collection terminal address, input digit switching value effective port position and input digit switching value normal value.Front-end processor is replied the frame of backend machine with order numbering position 0x89, and content comprises collection terminal address and success or failure flags.
The order of connection and detection method: in Fig. 1, at first connect power line, front-end processor is powered on, RS485 interface line (note: the AB line of RS485 can not connect instead).Connect telephone wire, check that whether the line interrupted alarm indicator extinguishes, and extinguishes under the normal condition.By Surveillance center this front-end processor is distributed collection circuit and alarm telephone number (annotate: the alarm telephone number mostly is 3 most).Wait for configuration successful, if configuration failure repeats above step.
In Fig. 2, during the data initialization task, need the initialization chip, initialization DTMF module also discharges the mailbox control, creates the clock task, creates communication task.In Fig. 3, when creating the clock task, refresh house dog and time counter initialization 0, if configuration data arranged then be configured, time-delay 0.5s, time counter increases by 50; If do not have configuration data then postpone 0.1s, time counter refreshes house dog after increasing by 10, waits for whether configuration data is arranged.In Fig. 4, when communication task begins, the initialization serial ports reads configuration file for the multi-computer communication mode and changed serial port communication is multi-computer communication pattern log-on data acquisition tasks SAMPDATA, all image data of initialization and flag information be image data module information under the sweep record first, creates and the backend machine communication task.The collection terminal address is SAMP_ADDR_MIN, and preparation is gathered current collection terminal data, checks whether mailbox has message, does not protect timer if having message then generate the communications data frame transmission of gathering current collection terminal automatically and start; If there is message to check whether message operates front-end processor, if not then transmitting this message frame to desired collection terminal of this message frame and startup protection timer; If handle packet and generate a return data bag and put into mailbox then, operation is finished the back and is pointed to the collection terminal that the next one will gather and operate.
In Fig. 6, when entering the serial ports interruption, judge whether to receive and interrupt.If do not receive then clear interrupt flag bit, the communication close indicator light of sending; Interrupt if receive, then read the data in the receiving register, judge whether it is this machine address,,, check whether set data communications task sign if not then receiving data to buffer area if then remove the multi-computer communication flag bit and allow to receive data.
In Figure 11, the DTMF message communication begins to send, and whether the judgment data message is effective, and invalid then the transmission failed, otherwise closes the DTMF accepting state, opens the DTMF transmit status, sends start of message (SOM) sign, message entity and message check successively.Switch the DTMF state, the other side such as 5s reply.If the mistake of replying then send failure, otherwise send successfully.
In Figure 13, when collection terminal reads configuration file, at first read the data of designated sector, whether judgment data has flag bit.If not then read failure, if read correctly, read check byte, check whether the CRC check is correct, and the CRC check mistake is then returned and read failure, if read correctly, then reading of data is to configuration file and return configuration file and read success.In Figure 14, when writing configuration file, read configuration file, write the data effective marker, calculate the CRC data check, and write data in designated sector, if write success, then return success sign, otherwise return failure flags.In Figure 15, check and if read the master configuration file success, then back up master configuration file, otherwise read secondary configuration file when whether configuration file is correct, use secondary configuration file to upgrade master configuration file.Read master configuration file once more, judge whether data address is effective in the master configuration file, judge whether digital simulation amount number is effective in the configuration file, judge the bound of analog quantity in the configuration file,, otherwise return failure if effectively then return success.
Claims (5)
1. the front end machine device of a supervisory control system, comprise telephony interface and power interface, it is characterized in that: described front end machine device also comprises the data processing module that breaks telephone wire alarm interface, the 2nd RS485 interface that is connected with a RS485 interface of collection terminal, the 4th RS485 interface that is connected with the 3rd RS485 interface of backend machine and being used for communicates by letter with backend machine by described the 2nd RS485 interface control collection terminal, the 4th RS485 interface, and described data processing module comprises:
The collection terminal parameter configuration module is used to judge whether the inner FLASH of collection terminal has configuration information, as does not have that then collection terminal is waited for the configuration order from a RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside;
Described configuration information comprises: configuration parameter version number, circuit number, front-end processor numbering, collection terminal address, input digit switching value state normal value, input digit switching value significance bit, output digital switch quantity significance bit, output digital switch quantity state normal value, the effective number of analog quantity port;
Collection terminal parameter-definition module is used to be provided with the digital switch quantity of collection terminal, the number of analog quantity and the corresponding relation of each amount and actual physics implication, and described digital switch quantity comprises input digit switching value and output digital switch quantity;
Collection terminal is provided with parameter module, when being used to be provided with output digital switch quantity, alarm parameter bound, the input digit switching value quantity of state of collection terminal or disposing whole parameter, send the parameter configuration frame to collection terminal, and being saved in collection terminal, collection terminal terminal is forward replied the collection terminal address and success is set or the frame of failure flags;
The front-end processor parameter configuration module is used to judge whether the inner FLASH of front-end processor has configuration information, as does not have that then front-end processor is waited for the configuration order from the 4th RS232 interface always; If any, in Preset Time, wait for behind each the startup reconfiguring order, as surpassing the configuration information work of Preset Time according to inside;
The deploy content of front-end processor comprises: configuration parameter version number, circuit number, front-end processor numbering, alarm telephone number;
Front-end processor is provided with parameter module, when being used to be provided with the output digital switch quantity, alarm parameter bound of collection terminal or input digit switching value quantity of state, backend machine terminal forward sends the parameter configuration frame, and being saved in collection terminal, front-end processor is replied the frame of backend machine collection terminal address and success or failure flags; And when front-end processor alarm telephone number was set, backend machine terminal forward sent the parameter configuration frame and is saved in front-end processor, and front-end processor is replied the frame of backend machine collection terminal address and success or failure flags.
2. the front end machine device of a kind of supervisory control system as claimed in claim 1, it is characterized in that: described data processing module also comprises:
Collection terminal data query module is used for front-end processor and sends querying command to collection terminal, and collection terminal terminal is forward replied the data acquisition frame.
3. the front end machine device of a kind of supervisory control system as claimed in claim 1 or 2, it is characterized in that: described data processing module also comprises:
Front-end processor data query module is used for backend machine terminal transmission querying command forward, and front-end processor is replied backend machine data acquisition frame.
4. the front end machine device of a kind of supervisory control system as claimed in claim 3, it is characterized in that: described data processing module also comprises:
Alarm module is used for when front-end processor is sent alarm, and front-end processor terminal backward sends the alarm frame, after backend machine is received the alarm frame, sends content and comprises the address of alarm collection end and the frame of success or failure flags.
5. the front end machine device of a kind of supervisory control system as claimed in claim 4 is characterized in that: the transfer of data employing RS485 half-duplex multi-computer communication mode of the 2nd a RS485 interface of described front-end processor and a RS485 interface of collection terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710071152A CN101175125B (en) | 2007-09-14 | 2007-09-14 | Front end machine device of monitoring system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710071152A CN101175125B (en) | 2007-09-14 | 2007-09-14 | Front end machine device of monitoring system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101175125A CN101175125A (en) | 2008-05-07 |
CN101175125B true CN101175125B (en) | 2010-05-26 |
Family
ID=39423373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200710071152A Expired - Fee Related CN101175125B (en) | 2007-09-14 | 2007-09-14 | Front end machine device of monitoring system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101175125B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587344B (en) * | 2008-05-20 | 2011-11-16 | 林芳如 | Monitoring system and device forming same |
CN101677288B (en) * | 2008-09-17 | 2012-08-29 | 伟林电子股份有限公司 | Remote communication method of Internet and system thereof |
CN101753451B (en) * | 2009-12-23 | 2013-01-23 | 卡斯柯信号有限公司 | Network load balance track traffic signal equipment state collection method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6832141B2 (en) * | 2002-10-25 | 2004-12-14 | Davis Instruments | Module for monitoring vehicle operation through onboard diagnostic port |
CN2783635Y (en) * | 2005-01-13 | 2006-05-24 | 北京东方信联科技有限公司 | Outer hanging type monitor for mobile communication direct amplifying station |
CN1926488A (en) * | 2004-03-03 | 2007-03-07 | 费舍-柔斯芒特系统股份有限公司 | Configuration system and method for abnormal situation prevention in a process plant |
-
2007
- 2007-09-14 CN CN200710071152A patent/CN101175125B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6832141B2 (en) * | 2002-10-25 | 2004-12-14 | Davis Instruments | Module for monitoring vehicle operation through onboard diagnostic port |
CN1926488A (en) * | 2004-03-03 | 2007-03-07 | 费舍-柔斯芒特系统股份有限公司 | Configuration system and method for abnormal situation prevention in a process plant |
CN2783635Y (en) * | 2005-01-13 | 2006-05-24 | 北京东方信联科技有限公司 | Outer hanging type monitor for mobile communication direct amplifying station |
Also Published As
Publication number | Publication date |
---|---|
CN101175125A (en) | 2008-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102681511B (en) | Data information acquisition intelligent managing and controlling system based on Internet of things | |
CN101369927B (en) | Universal remote automatic data acquisition system | |
CN101577698A (en) | System with external intelligent management server and method for monitoring server and processing commands | |
CN201681479U (en) | Fishpond dissolved oxygen detection and wireless transmission system based on GSM techonology | |
CN101783741A (en) | CANopen field bus input/output device with short-circuit protection and self-diagnosis function | |
CN100468247C (en) | Monitor system collecting end device | |
CN101175125B (en) | Front end machine device of monitoring system | |
CN202735787U (en) | Electric power information machine room environment real-time monitoring system | |
CN103064388A (en) | Intelligent guestroom control system and monitoring method thereof | |
CN201601691U (en) | Communication protocol conversion device based on wide area data acquisition | |
CN101267425B (en) | Inter-board interface communication protocol for dynamic environment distributed monitoring system | |
CN100366013C (en) | Accident power-off remote transmitting alarming system and alarming method thereof | |
CN204190781U (en) | For the modular plug of communication network infrastructure equipment | |
CN108512907A (en) | The equipment communication means of half transparent transmission | |
CN105467951A (en) | Bridge-type grab ship unloader work online monitoring and performance assessment system and method | |
CN101241360A (en) | Universal monitoring system collection end control system | |
CN204347561U (en) | Based on the distributed monitor-control network of RS485 communication | |
CN101236429B (en) | Universal monitoring system back-end machine control system | |
CN102916494A (en) | Intelligent communication circuit breaker | |
CN202929101U (en) | Data processing device used for electric energy meter and electric gatherer | |
CN206894665U (en) | A kind of switchgear house monitoring system for reducing things-internet gateway congestion | |
CN202404707U (en) | Monitoring and alarming equipment | |
CN107070974A (en) | The tidal data recovering and wireless transmitting system of many detection devices of Forest Eco-station | |
CN209590631U (en) | Data acquisition device and system based on bluetooth Mesh network | |
CN101231519B (en) | Back-end machine apparatus for monitoring system |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100526 Termination date: 20130914 |