9. Data Processing Design Examples Program Description: z Acquired data before sorting: 1 ) Sorted voltage data in ascending order when M0 = ON: The voltage sorting result is: channel 4, channel 3, channel 1, and channel 2. The minimum value is K53 and the maximum value is K59. 2 ) Sorted temperature data in ascending order when M1 = ON: The temperature sorting result is: channel 4, channel 1, channel 2, and channel 3. The minimum value of is K42 and the maximum value is K47.
z The purpose of using M1013 (1s clock pulse) after the drive contacts M10 and M11 is to assure that sorting result can be refreshed in 1s so as to prevent rising edge triggering M10 and M11 when SORT instruction needs to be executed one more time. z Users can monitor the sorting result and the minimum/maximum value of voltage and temperature. DVP-PLC Application Examples 9-9 1 2 3 Channel (CH1~CH4) Voltage (DVP04AD-S) Temp. (DVP04TC-S) 1 (D200)1 (D204)57 (D208)47 2 (D201)2 (D205)59 (D209)42 3 (D202)3 (D206)55 (D210)46 4 (D203)4 (D207)53 (D211)43 1 2 3 Channel (CH1~CH4) Voltage (DVP04AD-S) Temp.
(DVP04TC-S) 1 (D220)4 (D224)53 (D228)43 2 (D221)3 (D225)55 (D229)46 3 (D222)1 (D226)57 (D230)47 4 (D223)2 (D227)59 (D231)42 1 2 3 Channel (CH1~CH4) Voltage (DVP04AD-S) Temp. (DVP04TC-S) 1 (D240)4 (D244)59 (D248)42 2 (D241)1 (D245)53 (D249)43 3 (D242)2 (D246)55 (D250)46 4 (D243)3 (D247)57 (D251)47