A design method for SOE signal acquisition in field control station
By adopting the on-site control station SOE signal acquisition design method in the nuclear power distributed control system, high-precision SOE data acquisition is achieved, solving the problem of insufficient acquisition time resolution in the existing system, and meeting the high-precision sampling needs of the nuclear power SOE system.
Patent Information
- Application Number
- CN202011625468.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The acquisition time resolution of SOE data in existing nuclear power distributed control systems is insufficient, which cannot meet the high-precision sampling time requirements of nuclear power SOE systems.
A design method for SOE signal acquisition in the field control station is adopted. By collecting the switching signal every 1 millisecond, analog signal every 25 milliseconds, and using a GPS clock source to ensure clock consistency, achieving high-precision data acquisition.
It realizes high time resolution of 25 milliseconds of analog quantity and 1 millisecond of switching quantity in the SOE system, meeting the requirements of fault analysis and correctness verification of nuclear power SOE systems.
Smart Images

Figure CN114690717B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of SOE (Sequence Of Event) data acquisition and control in industrial control systems, and in particular relates to a field control station SOE signal acquisition design method. Background Art
[0002] In nuclear power field control systems, SOE data is used to analyze the occurrence time and sequence of a series of related events in the control process. The time resolution of switch events needs to reach 1 millisecond, and the time resolution of analog events needs to reach 25 milliseconds.
[0003] However, the acquisition cycle of conventional data in conventional nuclear power distributed control systems (DCS) is generally greater than 50 milliseconds for switching quantities and more than 200 milliseconds for analog quantities. The acquisition time resolution is not sufficient to distinguish the sequence of events, and cannot meet the fault analysis and correctness verification of nuclear power SOE systems.
[0004] In order to meet the time resolution requirements of nuclear power SOE systems, it is urgent to develop a SOE signal acquisition design method. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a field control station SOE signal acquisition design method to meet the high-precision sampling time requirements of the SOE system.
[0006] In order to achieve this purpose, the technical solution adopted by the present invention is:
[0007] A field control station SOE signal acquisition design method comprises the following steps:
[0008] Step S1: The controller checks the GPS clock source signal;
[0009] Step S2: Determine whether the clock source is normal. If not, return to step S1. If normal, proceed to the next step.
[0010] Step S3: collecting the switch signal every 1 millisecond and using 1 bit of a 32-bit unsigned integer to store data;
[0011] Continuously collect 25 data as a group;
[0012] At the same time, record the seconds and milliseconds at this time, and store the result of "seconds × 1000 + milliseconds" in a 2-byte unsigned integer;
[0013] Step S4: collect the analog signal every 25 milliseconds and record the seconds and milliseconds at this time. The calculation method is the same as the calculation method in step S3;
[0014] Step S5: Packing the switch quantity and analog quantity data collected in 25 milliseconds, for all channels of a single IO card in one cycle;
[0015] Step S6: Packing the collected data of all IO cards every 200 milliseconds;
[0016] Mark the number of cycles and channels included in the IO card type;
[0017] Step S7: Mark the data packet generated by S6 with the number of IO cards and the complete timestamp at this time. The timestamp contains the complete information of "year, month, day, hour, minute, second, millisecond" and is used as the reference time T for restoring the data timestamp. b ;
[0018] Step S8: Send the final data packet to the host computer through the network, and the transmission method uses one of the TCP network protocol and the UDP network protocol;
[0019] Step S9: The host computer receives the data from step S 8中 Data packets sent by the controller;
[0020] Step S 10 : Extract the complete reference timestamp T from the data packet b , including "year month day hour minute second millisecond" information;
[0021] Step S 11 : Extract the data of each channel of each IO card;
[0022] Step S 12 : Extract the timestamp information t of each data, which only contains "seconds and milliseconds" information;
[0023] Step S 13 :Based on the benchmark time T b and t to restore the complete timestamp of the data
[0024] Step S 14 : Display the collected signal value and time on the interface;
[0025] Step S 15 :Finish.
[0026] Further, in the above-mentioned field control station SOE signal acquisition design method, in step S3, the storage format of the switch quantity is as follows:
[0027] 1ms is stored as b0, 2ms is stored as b1, and so on, 32ms is stored as b31.
[0028] Further, in the above-mentioned field control station SOE signal acquisition design method, in step S5, the data packaging format is as follows:
[0029] In the xth cycle, the seconds and milliseconds timestamp of channel 1, the seconds and milliseconds timestamp of channel 2, and so on, the seconds and milliseconds timestamp of channel m, and the value of channel m.
[0030] Further, in the above-mentioned field control station SOE signal acquisition design method, in step S6, the data packaging format is as follows:
[0031] IO card logical address, IO card type, number of data cycles included, number of IO channels, and data for each channel.
[0032] Further, in the above-mentioned field control station SOE signal acquisition design method, in step S6, within a 200 millisecond period, the time sequence of the switch quantity, analog quantity and controller packaging is as follows:
[0033] At t0: start the timers with periods of 1 millisecond and 25 milliseconds respectively;
[0034] At time t1: 25 data are collected from the switch quantity and 1 data is collected from the analog quantity;
[0035] At t2: 50 data points have been collected for the switch quantity, and 2 data points have been collected for the analog quantity;
[0036] At t3: 175 switch data are collected cumulatively, and 7 analog data are collected cumulatively;
[0037] At time t4: the switch quantity has accumulated 200 data points, and the analog quantity has accumulated 8 data points.
[0038] Furthermore, in the above-mentioned field control station SOE signal acquisition design method, in step S6, the controller performs signal acquisition in the time sequence from t0 to t4 and packages 200 switch quantity data and 8 analog quantity data.
[0039] Further, in the above-mentioned field control station SOE signal acquisition design method, step S 13 The restore time range is 60 seconds.
[0040] Further, in the above-mentioned field control station SOE signal acquisition design method, step S 13 In the example, the time range distribution offset is determined by the parameter T, with the reference time as the axis. r Decide and configure according to the actual situation.
[0041] Further, in the above-mentioned field control station SOE signal acquisition design method, step S 13 In, T r After confirmation, according to Tb Calculate T min ,T max , distributed in [T min ,T max ) to restore the complete timestamp of the data. The detailed steps are as follows:
[0042] Step S13-0: Start;
[0043] Step S13-1: Input T b and t;
[0044] Step S13-2: According to T b and T r Calculate T min and T max ;
[0045] Step S13-3: extract the value of seconds sec and the value of milliseconds ms from t, and the calculation formula is: sec = t / 1000, this step is an integer operation; ms = t% 1000, this step is a modulo operation;
[0046] Step S13-4: Replace T with sec b In seconds, replace T with ms b The number of milliseconds in the time is T. n ;
[0047] Step S13-5: Determine T n Is it in (T min ,T max ]
[0048] If T n <T min , then you need to change T n Add 60 seconds;
[0049] If T n >=T max , then T n Reduce by 60 seconds;
[0050] If (T min ,T max ], no adjustment will be made;
[0051] Step S13-6: Output the restored timestamp T n ;
[0052] Step S13-7: End timestamp restoration.
[0053] The beneficial effects of the technical solution of the present invention are:
[0054] The present invention proposes a high-precision signal acquisition technology for SOE in industrial control systems. For analog quantities in SOE systems, the acquisition accuracy can reach 25 milliseconds, and the resolution of switch quantities can reach 1 millisecond. When an accident occurs during the operation of a DCS system, the high-time resolution SOE data can truly and correctly record the sequence of occurrence of each event, which can fully meet the system fault analysis and system correctness analysis.
[0055] The SOE signal acquisition method of the present invention has the following beneficial effects:
[0056] 1) The clock source consistency ensures that the analog resolution can reach 25 milliseconds and the switch resolution can reach 1 millisecond;
[0057] 2) Effectively compress the data packets of each cycle, using the combination of "seconds and milliseconds" values and the complete reference time, so that the timestamp of each data only occupies 2 bytes of memory space, saving 6 bytes, and the memory space occupied is 25% of the complete timestamp;
[0058] 3) Using a storage method that records one switching value data in one bit makes the memory space used for switching value data only about 16% of the traditional recording method;
[0059] 4) The timestamp restoration algorithm can restore timestamps within a 60-second time span, and the offset T relative to the time base r It can be flexibly configured according to actual needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 Schematic diagram of the design method for SOE signal acquisition in the field control station.
[0061] Figure 2 Schematic diagram of time series acquisition for switch quantity, analog quantity and controller packaging.
[0062] Figure 3 This is a schematic diagram of the data packaging formats involved in this method.
[0063] Figure 4 According to the reference time T b Schematic diagram of the algorithm for restoring the complete timestamp of the data using t. DETAILED DESCRIPTION
[0064] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0065] like Figure 1 As shown, the present invention provides a field control station SOE signal acquisition design method, characterized in that it includes the following steps:
[0066] Step S1: The controller checks the GPS clock source signal;
[0067] Step S2: Determine whether the clock source is normal. If not, return to step S1. If normal, proceed to the next step.
[0068] Step S3: collecting the switch signal every 1 millisecond and using 1 bit of a 32-bit unsigned integer to store data;
[0069] Continuously collect 25 data as a group;
[0070] The storage format of the switch quantity is as follows Figure 3 As shown in d1:
[0071] 1ms is stored as b0, 2ms is stored as b1, and so on, 32ms is stored as b31.
[0072] At the same time, record the seconds and milliseconds at this time, and store the result of "seconds × 1000 + milliseconds" in a 2-byte unsigned integer;
[0073] Step S4: collect the analog signal every 25 milliseconds and record the seconds and milliseconds at this time. The calculation method is the same as the calculation method in step S3;
[0074] Step S5: Packing the switch quantity and analog quantity data collected in 25 milliseconds, for all channels of a single IO card in one cycle;
[0075] like Figure 2 As shown, in a 200 millisecond cycle, the time sequence of switch quantity, analog quantity and controller packaging is as follows:
[0076] At t0: start the timers with periods of 1 millisecond and 25 milliseconds respectively;
[0077] At time t1: 25 data are collected from the switch quantity and 1 data is collected from the analog quantity;
[0078] At t2: 50 data points have been collected for the switch quantity, and 2 data points have been collected for the analog quantity;
[0079] At t3: 175 switch data are collected cumulatively, and 7 analog data are collected cumulatively;
[0080] At time t4: the switch quantity has accumulated 200 data points, and the analog quantity has accumulated 8 data points.
[0081] The controller collects signals in the time sequence from t0 to t4 and packages 200 switch data and 8 analog data.
[0082] Data packaging format such as Figure 3 As shown in d2:
[0083] In the xth cycle, the seconds and milliseconds timestamp of channel 1, the seconds and milliseconds timestamp of channel 2, and so on, the seconds and milliseconds timestamp of channel m, and the value of channel m.
[0084] Step S6: Packing the collected data of all IO cards every 200 milliseconds;
[0085] Mark the number of cycles and channels included in the IO card type;
[0086] Data packaging format such as Figure 3 As shown in d3:
[0087] IO card logical address, IO card type, number of data cycles included, number of IO channels, and data for each channel.
[0088] Step S7: Mark the data packet generated by S6 with the number of IO cards and the complete timestamp at this time. The timestamp contains the complete information of "year, month, day, hour, minute, second, millisecond" and is used as the reference time T for restoring the data timestamp. b ;
[0089] Step S8: Send the final data packet to the host computer through the network, and the transmission method uses one of the TCP network protocol and the UDP network protocol;
[0090] Step S9: The host computer receives the data from step S 8中 Data packets sent by the controller;
[0091] Step S 10 : Extract the complete reference timestamp T from the data packet b , including "year month day hour minute second millisecond" information;
[0092] Step S 11 : Extract the data of each channel of each IO card;
[0093] Step S 12 : Extract the timestamp information t of each data, which only contains "seconds and milliseconds" information;
[0094] Step S 13 :Based on the benchmark time T b and t to restore the complete timestamp of the data;
[0095] The restored time range is 60 seconds, with the base time as the axis, and the time range distribution offset is determined by the parameter T r Decide and configure according to the actual situation. r After confirmation, according to T b Calculate T min ,T max , distributed in [T min ,T max) to restore the complete timestamp of the data, such as Figure 4 The detailed steps are as follows:
[0096] Step S13-0: Start;
[0097] Step S13-1: Input T b and t;
[0098] Step S13-2: According to T b and T r Calculate T min and T max ;
[0099] Step S13-3: extract the value of seconds sec and the value of milliseconds ms from t, and the calculation formula is: sec = t / 1000, this step is an integer operation; ms = t% 1000, this step is a modulo operation;
[0100] Step S13-4: Replace T with sec b In seconds, replace T with ms b The number of milliseconds in the time is T. n ;
[0101] Step S13-5: Determine T n Is it in (T min ,T max ]
[0102] If T n <T min , then you need to change T n Add 60 seconds;
[0103] If T n >=T max , then T n Reduce by 60 seconds;
[0104] If (T min ,T max ], no adjustment will be made;
[0105] Step S13-6: Output the restored timestamp T n ;
[0106] Step S13-7: End timestamp restoration.
[0107] Step S 14 : Display the collected signal value and time on the interface;
[0108] Step S 15 :Finish.
[0109] When an accident occurs during the operation of the DCS system, this method can truly and correctly record the sequence of events through high-time-resolution SOE data, which can fully meet the system fault analysis and system correctness analysis.
Claims
1. A field control station SOE signal acquisition design method, characterized in that: The following steps are involved: Step S1: The controller checks the GPS clock source signal; Step S2: Determine whether the clock source is normal. If not, return to step S1. If normal, proceed to the next step. Step S3: collecting the switch signal every 1 millisecond and using 1 bit of a 32-bit unsigned integer to store data; Continuously collect 25 data as a group; At the same time, record the seconds and milliseconds at this time, and store the result of "seconds × 1000 + milliseconds" in a 2-byte unsigned integer; Step S4: collect the analog signal every 25 milliseconds and record the seconds and milliseconds at this time. The calculation method is the same as the calculation method in step S3; Step S5: Packing the switch quantity and analog quantity data collected in 25 milliseconds, for all channels of a single IO card in one cycle; Step S6: Packing the collected data of all IO cards every 200 milliseconds; Mark the number of cycles and channels included in the IO card type; Step S7: Mark the data packet generated by S6 with the number of IO cards and the complete timestamp at this time. The timestamp contains the complete information of "year, month, day, hour, minute, second, millisecond" and is used as the reference time T for restoring the data timestamp. b ; Step S8: Send the final data packet to the host computer through the network, and the transmission method uses one of the TCP network protocol and the UDP network protocol; Step S9: The host computer receives the data from step S 8中 Data packets sent by the controller; Step S 10 : Extract the complete reference timestamp T from the data packet b , including "year month day hour minute second millisecond" information; Step S 11 : Extract the data of each channel of each IO card; Step S 12 : Extract the timestamp information t of each data, which only contains "seconds and milliseconds" information; Step S 13 :Based on the benchmark time T b and t to restore the complete timestamp of the data; Step S 14 : Display the collected signal value and time on the interface; Step S 15 :Finish.
2. A method for designing SOE signal acquisition of a field control station as claimed in claim 1, characterized in that: In step S3, the storage format of the switch quantity is as follows: 1ms is stored as b0, 2ms is stored as b1, and so on, 32ms is stored as b31.
3. A field control station SOE signal acquisition design method as claimed in claim 1, characterized in that: In step S5, the data packaging format is as follows: In the xth cycle, the seconds and milliseconds timestamp of channel 1, the seconds and milliseconds timestamp of channel 2, and so on, the seconds and milliseconds timestamp of channel m, and the value of channel m.
4. A field control station SOE signal acquisition design method as claimed in claim 1, characterized in that: In step S6, the data packaging format is as follows: IO card logical address, IO card type, number of data cycles included, number of IO channels, and data for each channel.
5. A field control station SOE signal acquisition design method as claimed in claim 1, characterized in that: In step S6, within a 200 millisecond period, the time sequence of the switch quantity, analog quantity and controller packaging is as follows: At t0: start the timers with periods of 1 millisecond and 25 milliseconds respectively; At time t1: 25 data are collected from the switch quantity and 1 data is collected from the analog quantity; At t2: 50 data points have been collected for the switch quantity, and 2 data points have been collected for the analog quantity; At t3: 175 switch data are collected cumulatively, and 7 analog data are collected cumulatively; At time t4: the switch quantity has accumulated 200 data points, and the analog quantity has accumulated 8 data points.
6. A method for designing SOE signal acquisition of a field control station as claimed in claim 5, characterized in that: In step S6, the controller collects signals in the time sequence from t0 to t4 and packages 200 switch quantity data and 8 analog quantity data.
7. A method for designing SOE signal acquisition of a field control station as claimed in claim 1, characterized in that: Step S 13 The restore time range is 60 seconds.
8. A method for designing SOE signal acquisition of a field control station as claimed in claim 7, characterized in that: Step S 13 In the example, the time range distribution offset is determined by the parameter T, with the reference time as the axis. r Decide and configure according to the actual situation.
9. A method for designing SOE signal acquisition of a field control station as claimed in claim 8, characterized in that: Step S 13 In, T r After confirmation, according to T b Calculate T min ,T max , distributed in [T min ,T max ) to restore the complete timestamp of the data. The detailed steps are as follows: Step S13-0: Start; Step S13-1: Input T b and t; Step S13-2: According to T b and T r Calculate T min and T max ; Step S13-3: extract the value of seconds sec and the value of milliseconds ms from t, and the calculation formula is: sec = t / 1000, this step is an integer operation; ms = t% 1000, this step is a modulo operation; Step S13-4: Replace T with sec b In seconds, replace T with ms b The number of milliseconds in the time is T. n ; Step S13-5: Determine T n Is it in (T min ,T max ] If T n <T min , then you need to change T n Add 60 seconds; If T n >=T max , then T n Reduce by 60 seconds; If (T min ,T max ], no adjustment will be made; Step S13-6: Output the restored timestamp T n ; Step S13-7: End timestamp restoration.
10. A method for designing SOE signal acquisition of a field control station as claimed in claim 1, characterized in that: In step S3, the storage format of the switch quantity is as follows: 1ms is stored as b0, 2ms is stored as b1, and so on, 32ms is stored as b31; In step S5, the data packaging format is as follows: In the xth cycle, the second and millisecond timestamp of channel 1, the second and millisecond timestamp of channel 2, and so on, the second and millisecond timestamp of channel m, and the value of channel m; In step S6, the data packaging format is as follows: IO card logical address, IO card type, number of data cycles included, number of IO channels, and data for each channel; In step S6, within a 200 millisecond period, the time sequence of the switch quantity, analog quantity and controller packaging is as follows: At t0: start the timers with periods of 1 millisecond and 25 milliseconds respectively; At time t1: 25 data are collected from the switch quantity and 1 data is collected from the analog quantity; At t2: 50 data points have been collected for the switch quantity, and 2 data points have been collected for the analog quantity; At t3: 175 switch data are collected cumulatively, and 7 analog data are collected cumulatively; At t4: 200 data points have been collected for the switch quantity, and 8 data points have been collected for the analog quantity; The controller collects signals in the time sequence from t0 to t4 and packages 200 switch quantity data and 8 analog quantity data; Step S 13 In the restore time range, the restore time range is 60 seconds; With the base time as the axis, the time range distribution offset is determined by the parameter T r Decide and configure according to the actual situation; T r After confirmation, according to T b Calculate T min ,T max , distributed in [T min ,T max ) to restore the complete timestamp of the data. The detailed steps are as follows: Step S13-0: Start; Step S13-1: Input T b and t; Step S13-2: According to T b and T r Calculate T min and T max ; Step S13-3: extract the value of seconds sec and the value of milliseconds ms from t, and the calculation formula is: sec = t / 1000, this step is an integer operation; ms = t% 1000, this step is a modulo operation; Step S13-4: Replace T with sec b In seconds, replace T with ms b The number of milliseconds in the time is T. n ; Step S13-5: Determine T n Is it in (T min ,T max ] If T n <T min , then you need to change T n Add 60 seconds; If T n >=T max , then T n Reduce by 60 seconds; If (T min ,T max ], no adjustment will be made; Step S13-6: Output the restored timestamp T n ; Step S13-7: End timestamp restoration.
Citation Information
Patent Citations
Method for sequentially recording events in distributed control system
CN103699103A
Event sequence recording method for power plant
CN105223919A