TWI553433B - Scheduling method of timing device - Google Patents

Scheduling method of timing device Download PDF

Info

Publication number
TWI553433B
TWI553433B TW103127280A TW103127280A TWI553433B TW I553433 B TWI553433 B TW I553433B TW 103127280 A TW103127280 A TW 103127280A TW 103127280 A TW103127280 A TW 103127280A TW I553433 B TWI553433 B TW I553433B
Authority
TW
Taiwan
Prior art keywords
timing
unit
microprocessor
code
voltage level
Prior art date
Application number
TW103127280A
Other languages
Chinese (zh)
Other versions
TW201606460A (en
Inventor
rong-fu Du
Original Assignee
rong-fu Du
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 rong-fu Du filed Critical rong-fu Du
Priority to TW103127280A priority Critical patent/TWI553433B/en
Publication of TW201606460A publication Critical patent/TW201606460A/en
Application granted granted Critical
Publication of TWI553433B publication Critical patent/TWI553433B/en

Links

Description

計時裝置的規劃方法 Timing device planning method

本發明係與計時裝置有關;特別是指一種採用微電腦之計時裝置的規劃方法。 The invention relates to a timing device; in particular to a planning method using a microcomputer timing device.

圖1所示者為習用之採用微電腦的計時裝置1,包含有一微處理器10以及電性連接該微處理器10的一發光二極體12、一繼電器14與一調時單元16。該微處理器10內建有一記憶單元102,該記憶單元102儲存一程式碼,該微處理器10執行該程式碼以進行計時,同時控制該發光二極體點亮或熄滅,作為狀態顯示之用,以及控制該繼電器啟閉,藉以控制連接至該繼電器的外部設備(如壓縮機、馬達等)的運作。該調時單元係供使用者操作而調整該微處理器改變計時的時間長度。 A timing device 1 for a microcomputer is shown in FIG. 1 and includes a microprocessor 10 and a light-emitting diode 12 electrically connected to the microprocessor 10, a relay 14 and a timing unit 16. The memory unit 10 has a memory unit 102, and the memory unit 102 stores a code. The microprocessor 10 executes the code to perform timing, and controls the light-emitting diode to be turned on or off as a status display. And controlling the opening and closing of the relay to control the operation of external devices (such as compressors, motors, etc.) connected to the relay. The timing unit is adapted by the user to adjust the length of time the microprocessor changes timing.

生產此類的計時裝置1最大的困難在於,需根據客戶所需的規格修改程式碼後再下載至該記憶單元102。在有多種規格的計時裝置1的情況下,程式設計人員需對每一種規格的計時裝置1的程式碼非常了解,才能順利地修改其程式碼再下載至其記憶單元102中。隨著機型規格的增多,對於程式設計人員的工作負擔將更為加重,倘若由其它人員接手修改程式碼的工作,又必須再次研究程式碼的內容,如此將使得設計計時裝置1的效率不彰,產品需要更久的開發時間,而喪失市場先機。此外,業務人員與客戶接洽了解規格後,必須再以冗長的規格文件描述客戶所需規格 才能表達計時裝置1的時序,亦造成業務人員與程式設計人員溝通的困難,而增加了產品開發的時間。 The biggest difficulty in producing such a timing device 1 is that the code needs to be modified according to the specifications required by the customer before being downloaded to the memory unit 102. In the case of a multi-standard timing device 1, the programmer needs to know the code of each type of timing device 1 in order to smoothly modify the code and download it to its memory unit 102. As the specifications of the model increase, the workload of the programmer will be more serious. If other personnel take over the work of modifying the code, the content of the code must be studied again, which will make the design of the timing device 1 not efficient. Zhang, the product needs more development time, and loses market opportunities. In addition, after the business personnel contact the customer to understand the specifications, they must describe the specifications required by the customer in a lengthy specification file. In order to express the timing of the timing device 1, it also causes difficulties for the communication between the business personnel and the programmer, and increases the time for product development.

有鑑於此,本發明之目的用於提供一種計時裝置的規劃方法,有效地簡化業務人員與程式設計人員溝通與設計計時裝置的流程,並增進生產計時裝置的效率。 In view of this, the object of the present invention is to provide a method for planning a timing device, which effectively simplifies the communication between the business person and the programmer and designs the timing device, and improves the efficiency of the production timing device.

緣以達成上述目的,本發明所提供計時裝置的規劃方法,其中該計時裝置包括一微處理器與至少一受控單元電性連接該微處理器,該微處理器具有至少一用以計時的計時單元,該微處理器控制該受控單元的運作;該規劃方法包含下列步驟:A、輸入一設定檔,該設定檔包括一計時單元代碼、一計時時長與一第一運作狀態代碼,其中,該計時單元代碼係用於指定該計時單元運作者,該計時時長係用於指定該計時單元的計時時間長度者,該第一運作狀態代碼係用於指定該微處理器於計時單元的計時過程中控制該受控單元的運作為一第一運作狀態者;B、依據該設定檔產生一對應的控制參數;C、令該微處理器依據該控制參數作動,以使該計時單元依據該計時時長計時,並於計時過程中,控制該受控單元的運作為該第一運作狀態。 In order to achieve the above object, the present invention provides a timing device planning method, wherein the timing device includes a microprocessor electrically coupled to the at least one controlled unit, the microprocessor having at least one for timing. a timing unit, the microprocessor controls the operation of the controlled unit; the planning method comprises the following steps: A. inputting a setting file, the setting file includes a timing unit code, a timing duration and a first operational status code, The timing unit code is used to specify the timing unit operator, and the timing duration is used to specify the timing length of the timing unit, and the first operational status code is used to specify the microprocessor in the timing unit. Controlling the operation of the controlled unit as a first operational state; B, generating a corresponding control parameter according to the configuration file; C, causing the microprocessor to act according to the control parameter, so that the timing unit According to the timing of the timing, and during the timing, the operation of the controlled unit is controlled to be the first operational state.

本發明之效果在於利用設定檔將欲設定的參數整合,無需修改微處理器的程式碼,即使不諳程式碼的設計者亦可設定計時裝置,並令計時裝置依據設定檔之內容運作。有效簡化規劃計時裝置的流程及提升生產效率。業務人員將客戶需求寫出該設定檔即可清楚將客戶所需規格告訴程式設計人員,大大提升溝通效率。 The effect of the invention is to integrate the parameters to be set by using the profile, without modifying the code of the microprocessor, even if the designer of the code can set the timing device, and let the timing device operate according to the content of the profile. Effectively streamline the process of planning timing devices and increase production efficiency. The business personnel can write the customer requirements to the profile to clearly tell the programmer the specifications required by the customer, greatly improving communication efficiency.

〔習用〕 [Use]

1‧‧‧計時裝置 1‧‧‧Timer

10‧‧‧微處理器 10‧‧‧Microprocessor

102‧‧‧記憶單元 102‧‧‧ memory unit

12‧‧‧發光二極體 12‧‧‧Lighting diode

14‧‧‧繼電器 14‧‧‧ Relay

16‧‧‧調時單元 16‧‧‧Time adjustment unit

〔本發明〕 〔this invention〕

2‧‧‧計時裝置 2‧‧‧Timer

20‧‧‧微處理器 20‧‧‧Microprocessor

202‧‧‧記憶單元 202‧‧‧ memory unit

202a‧‧‧共用程式區塊 202a‧‧‧Shared program block

202b‧‧‧參數區塊 202b‧‧‧Parameter block

22‧‧‧第一計時單元 22‧‧‧First timing unit

24‧‧‧第二計時單元 24‧‧‧Second timing unit

25‧‧‧第三計時單元 25‧‧‧ third timing unit

26‧‧‧受控單元 26‧‧‧Controlled unit

26a‧‧‧第一發光二極體 26a‧‧‧First LED

26b‧‧‧第二發光二極體 26b‧‧‧Second light-emitting diode

26c‧‧‧繼電器 26c‧‧‧ relay

28‧‧‧輸入單元 28‧‧‧Input unit

30‧‧‧調時單元 30‧‧‧Time adjustment unit

31‧‧‧調時單元 31‧‧‧Time adjustment unit

32‧‧‧設定檔 32‧‧‧Profile

322‧‧‧第一行位組 322‧‧‧First row group

322a~322f‧‧‧欄位 322a~322f‧‧‧ fields

324‧‧‧第二行位組 324‧‧‧second row group

324a~324f‧‧‧欄位 324a~324f‧‧‧ fields

326‧‧‧第三行位組 326‧‧‧ Third row group

326c、326d‧‧‧欄位 326c, 326d‧‧‧ fields

34‧‧‧設定檔 34‧‧‧Profile

342‧‧‧第一行位組 342‧‧‧First row group

342f‧‧‧欄位 342f‧‧‧ field

36‧‧‧設定檔 36‧‧‧Profile

362‧‧‧第一行位組 362‧‧‧First row group

362f‧‧‧欄位 362f‧‧‧ field

3‧‧‧計時裝置 3‧‧‧Timer

38‧‧‧設定檔 38‧‧‧Profile

382‧‧‧第一行位組 382‧‧‧First row group

382b‧‧‧欄位 382b‧‧‧ field

384‧‧‧第二行位組 384‧‧‧second row group

T‧‧‧時間 T‧‧‧ time

圖1係習用的計時裝置示意圖。 Figure 1 is a schematic diagram of a conventional timing device.

圖2係本發明一較佳實施例所應用的計時裝置示意圖。 2 is a schematic diagram of a timing device applied to a preferred embodiment of the present invention.

圖3係上述較佳實施例之微處理器示意圖。 Figure 3 is a schematic illustration of the microprocessor of the preferred embodiment described above.

圖4係上述較佳實施例之規劃方法流程圖。 4 is a flow chart of the planning method of the above preferred embodiment.

圖5係上述較佳實施例之設定檔示意圖。 Figure 5 is a schematic diagram of the configuration file of the above preferred embodiment.

圖6係上述較佳實施例之計時裝置時序圖。 Figure 6 is a timing diagram of the timing device of the above preferred embodiment.

圖7係上述較佳實施例之一實施態樣之設定檔示意圖。 Figure 7 is a schematic diagram of a profile of an embodiment of the preferred embodiment described above.

圖8係上述較佳實施例之計時裝置一實施態樣時序圖。 Fig. 8 is a timing chart showing an embodiment of the timing device of the above preferred embodiment.

圖9係上述較佳實施例之另一實施態樣之設定檔示意圖。 Figure 9 is a schematic diagram of a profile of another embodiment of the preferred embodiment described above.

圖10係上述較佳實施例之計時裝置另一實施態樣時序圖。 Fig. 10 is a timing chart showing another embodiment of the timing device of the above preferred embodiment.

圖11係本發明另一實施例之計時裝置示意圖。 Figure 11 is a schematic illustration of a timing device in accordance with another embodiment of the present invention.

圖12係上述較佳實施例之設定檔示意圖。 Figure 12 is a schematic view of the configuration file of the above preferred embodiment.

圖13係上述較佳實施例之計時裝置時序圖。 Figure 13 is a timing diagram of the timing device of the above preferred embodiment.

為能更清楚地說明本發明,茲舉較佳實施例並配合圖示詳細說明如后,請參圖2與圖3所示,為本發明一較佳實施例所應用的計時裝置2,包含有一微處理器20以及電性連接該微處理器20的複數個受控單元26、一輸入單元28與複數個調時單元30,31,其中該些受控單元26在本實施例中分別為一第一發光二極體26a、一第二發光二極體26b與一繼電器26c。 In order to explain the present invention more clearly, the preferred embodiment is described in detail with reference to the accompanying drawings. FIG. 2 and FIG. 3 show a timing device 2 according to a preferred embodiment of the present invention, including There is a microprocessor 20 and a plurality of controlled units 26, an input unit 28 and a plurality of timing units 30, 31 electrically connected to the microprocessor 20, wherein the controlled units 26 are respectively A first light emitting diode 26a, a second light emitting diode 26b and a relay 26c.

該微處理器20內建有一記憶單元202,該記憶 單元202區分有一共用程式區塊202a與一參數區塊202b。該共用程式區塊202a儲存有一程式碼,該微處理器20執行該程式碼後,被規劃成具有複數個用以計時的計時單元,該些計時單元的數量係依微處理器20硬體架構而定,本實施例係以第一計時單元22及第二計時單元24為例,該微處理器個別賦予該第一、第二計時單元22,24專屬的一計時單元代碼“T1”、“T2”。至於如何將微處理器20規劃成具有計時單元之技術為本發明技術領域之通常知識,容不贅述。該參數區塊202b用於儲存一套控制參數,該控制參數包含該些計時單元22,24的計時時長、該些受控單元26的運作狀態與該輸入單元28的狀態等資訊,於後茲定義受控單元26於計時單元22,24計時過程中的運作狀態為一第一運作狀態,於計時單元22,24計時結束後的運作狀態為一第二運作狀態。該微處理器20係依據該控制參數作動,其作動方式容後再述。 The microprocessor 20 has a built-in memory unit 202, the memory Unit 202 distinguishes between a shared program block 202a and a parameter block 202b. The shared program block 202a stores a code. After executing the code, the microprocessor 20 is programmed to have a plurality of timing units for timing. The number of the timing units is based on the microprocessor 20 hardware architecture. For example, in the embodiment, the first timing unit 22 and the second timing unit 24 are exemplified, and the microprocessor individually assigns a timing unit code “T1” and “specific” to the first and second timing units 22 and 24. T2". The technique for planning the microprocessor 20 to have a timing unit is a general knowledge of the technical field of the present invention and will not be described again. The parameter block 202b is configured to store a set of control parameters, the control parameters including information such as the timing duration of the timing units 22, 24, the operating states of the controlled units 26, and the status of the input unit 28, etc. It is hereby defined that the operating state of the controlled unit 26 during the timing of the timing unit 22, 24 is a first operational state, and the operational state after the timing of the timing unit 22, 24 is a second operational state. The microprocessor 20 is actuated according to the control parameter, and the operation mode thereof will be described later.

該些受控單元26分別連接到該微處理器20上不同的輸出埠,該輸入單元28與該調時單元30,31則連接到該微處理器上不同的輸入埠,該微處理器20賦予各該受控單元26專屬的一受控單元代碼及該輸入單元28專屬的一輸入單元代碼,本實施例中,該第一發光二極體26a、該第二發光二極體26b與該繼電器26c的受控單元代碼分別為“L1”、“L2”、“R1”,該輸入單元28的輸入單元代碼為“G1”、“N1”或“S1”中的其中一者,依據不同的輸入單元代碼,使該輸入單元28致能時,該微處理器20可產生不同的功能。該微處理器20控制該第一、第二發光二極體26a,26b點亮或熄滅,以作為顯示之用;該微處理器20控制該繼電器26c導通或關閉,藉以控制連接於該繼電器26c的外部裝置(圖未示)。而該輸入單元28則是用於在特 定條件下輸出一第一電壓準位或一第二電壓準位的電訊號予該微處理器20,以作為觸發訊號之用,舉例而言,該輸入單元28包含一微動開關,在該微動開關閉路時,該輸入單元輸出第一壓準位的電訊號,在該微動開關開路時,該輸入單元輸出第二電壓準位的電訊號。本實施例中,該第一電壓準位為高電壓準位,該第二電壓準位為低電壓準位。 The controlled units 26 are respectively connected to different output ports on the microprocessor 20. The input unit 28 and the time adjusting unit 30, 31 are connected to different input ports on the microprocessor. The microprocessor 20 A controlled unit code that is exclusive to each of the controlled units 26 and an input unit code that is unique to the input unit 28, in this embodiment, the first LED 26a, the second LED 26b, and the The controlled unit codes of the relay 26c are respectively "L1", "L2", "R1", and the input unit code of the input unit 28 is one of "G1", "N1" or "S1", depending on the The unit code is entered such that when the input unit 28 is enabled, the microprocessor 20 can produce different functions. The microprocessor 20 controls the first and second LEDs 26a, 26b to be turned on or off for display; the microprocessor 20 controls the relay 26c to be turned on or off, thereby controlling connection to the relay 26c. External device (not shown). And the input unit 28 is for And outputting a first voltage level or a second voltage level to the microprocessor 20 as a trigger signal. For example, the input unit 28 includes a micro switch. When the circuit is turned off, the input unit outputs a signal of the first voltage level, and when the micro switch is open, the input unit outputs a signal of the second voltage level. In this embodiment, the first voltage level is a high voltage level, and the second voltage level is a low voltage level.

該二調時單元30,31分別供控制該二計時單元22,24,各該調時單元30,31受使用者控制而改變輸出至該微處理器20的電訊號,使該微處理器20依據各該調時單元30,31輸出的電訊號分別計算一計時比例,再依據所計算的計時比例使各該計時單元22,24對應地計時。實務上,各該調時單元30,31可採用可變電阻構成的分壓電路,使用者將可變電阻調整到最大電阻值時,各調時單元30,31輸出的電訊號之電壓最大,該微處理器20計算該計時比例為100%,依不同的電阻值,調時單元30,31輸出不同電壓的電訊號,該微處理器20則依最大電阻值產生之電壓與當前電阻值產生之電壓計算出該計時比例,當然,該調時單元30,31亦可採用按鈕為基礎設計,以數位的方式調整該計時比例。 The two timing units 30, 31 respectively control the two timing units 22, 24, and each of the timing units 30, 31 is controlled by a user to change the electrical signal output to the microprocessor 20, so that the microprocessor 20 The timing signals are respectively calculated according to the electrical signals output by the timing units 30, 31, and the timing units 22, 24 are correspondingly timed according to the calculated timing ratio. In practice, each of the timing units 30, 31 can adopt a voltage dividing circuit composed of a variable resistor. When the user adjusts the variable resistor to the maximum resistance value, the voltage of the electrical signal output by each timing unit 30, 31 is the largest. The microprocessor 20 calculates the timing ratio as 100%. According to different resistance values, the timing units 30, 31 output electrical signals of different voltages, and the microprocessor 20 generates voltages according to the maximum resistance value and current resistance values. The generated voltage calculates the timing ratio. Of course, the timing unit 30, 31 can also be designed based on a button to adjust the timing ratio in a digital manner.

藉由上述之計時裝置2架構,即可進行圖4所示之規劃方法。 The planning method shown in FIG. 4 can be performed by the above-described timing device 2 architecture.

首先,使用者於電腦上建立一設定檔,該設定檔包含複數個行位組,每一行位組之內容係用於指定該微處理器20於特定計時單元計22,24時過程中與該些受控單元26、輸入單元28之互動關係。每一行位組包括複數個欄位,其中: First, the user creates a profile on the computer, the profile includes a plurality of row groups, and the content of each row group is used to specify the microprocessor 20 in the process of the specific timing unit 22, 24 hours. The interaction between the controlled unit 26 and the input unit 28. Each row group includes a plurality of fields, where:

第一個欄位之內容為計時單元代碼,用於指定對應的計時單元運作。第二個欄位之內容為計時時長,用於指定該計時單元代碼對應的計時單元22,24的計時時間長 度,本實施例中,計時時長包含數字與計時單位,計時單位為“h”、“m”或“s”分別代表小時、分鐘及秒,計時時長“10m”代表10分鐘,“30s”代表30秒,亦可為時、分、秒的組合,例如“1h20m15s”代表1小時20分15秒。第三~第五個欄位個別之內容為受控單元代碼與第一運作狀態代碼,該受控單元代碼係用於指定在第一個欄位所指定的計時單元22,24的計時過程中,該微處理器20應控制的受控單元26,而該第一運作狀態代碼係指定在計時單元22,24的計時過程中該受控單元26的該第一運作狀態,其中,第一運作狀態代碼為“on”代表受控單元26在計時過程中的第一運作狀態為啟動,“of”代表受控單元26在計時過程中的第一運作狀態為關閉。第六個欄位之內容為輸入單元代碼與致能狀態代碼,該輸入單元代碼係用於指定該微處理器20接收該輸入單元28輸出的電訊號,該致能狀態代碼係指定輸入單元28輸出的電訊號在第一或第二電壓準位時,該微處理器20將對應的計時單元22,24依規格需要而設定為暫停計時、結束計時、重新計時或其它功能。在本實施例中,該微處理器20被規劃成對應輸入單元28輸出的電訊號使計時單元22,24為暫停計時、結束計時或重新計時的其中一者,依據輸入單元代碼為“G1”、“N1”或“S1”,分別對應暫停計時、結束計時或重新計時。其中,致能狀態代碼“on”代表指定為第一電壓準位,亦即輸入單元28輸出的電訊號於第二電壓準位轉換為第一電壓準位時觸發,“of”代表指定為第二電壓準位,亦即輸入單元28輸出的電訊號轉換由第一電壓準位轉換為第二電壓準位時觸發。該設定檔中的計時單元代碼、受控單元代碼及輸入單元代碼在微處理器20的程式碼與轉譯程式設計完成後即可得知,前述之轉譯程式係用以將設定檔轉換為該控制參數。 The content of the first field is the timing unit code, which is used to specify the corresponding timing unit to operate. The content of the second field is the timing duration, which is used to specify the timing of the timing unit 22, 24 corresponding to the timing unit code. In this embodiment, the time duration includes a number and a time unit, and the time unit is “h”, “m” or “s” represents hour, minute and second respectively, and the time duration “10m” represents 10 minutes, “30s”. "On behalf of 30 seconds, can also be a combination of hours, minutes, seconds, such as "1h20m15s" for 1 hour, 20 minutes and 15 seconds. The individual contents of the third to fifth fields are the controlled unit code and the first operational status code, which is used to specify the timing unit 22, 24 specified in the first field. The controlled unit 26 to be controlled by the microprocessor 20, and the first operational status code specifies the first operational state of the controlled unit 26 during the timing of the timing units 22, 24, wherein the first operation The status code "on" means that the first operational state of the controlled unit 26 during the timekeeping process is start, and "of" represents that the first operational state of the controlled unit 26 during the timekeeping process is off. The content of the sixth field is an input unit code and an enable status code, and the input unit code is used to specify that the microprocessor 20 receives the electrical signal output by the input unit 28, and the enable status code specifies the input unit 28. When the outputted electrical signal is at the first or second voltage level, the microprocessor 20 sets the corresponding timing unit 22, 24 to a pause timer, an end timer, a retime, or other function as required by the specification. In this embodiment, the microprocessor 20 is programmed to correspond to the electrical signal output by the input unit 28 to cause the timing unit 22, 24 to be one of a pause timer, an end timer, or a re-clock, according to the input unit code being "G1". , "N1" or "S1", corresponding to pause timing, end timing or re-time. The enable status code "on" represents the first voltage level, that is, the electrical signal output by the input unit 28 is triggered when the second voltage level is converted to the first voltage level, and "of" represents the designation. The two voltage levels, that is, the electrical signal conversion output by the input unit 28 is triggered when the first voltage level is converted to the second voltage level. The timing unit code, the controlled unit code and the input unit code in the profile are known after the design of the code and translation program of the microprocessor 20, and the aforementioned translation program is used to convert the configuration file into the control. parameter.

當然,若任一個欄位中無資料或空白者,代表為預設動作,預設動作可於該程式碼中預先定義,例如,第一、第二發光二極體26a,26b預設為熄滅,繼電器26c預設為關閉。 Of course, if there is no data or blank in any of the fields, the representative action is a preset action, and the preset action may be pre-defined in the code. For example, the first and second light-emitting diodes 26a, 26b are preset to be off. The relay 26c is preset to be off.

此外,該些行位組之中的其中一行位組係用於指定該微處理器20於計時單元22,24計時結束後控制該些受控單元26的運作為該第二運作狀態,因此,該行位組的第一個欄位之內容為可為空白或無資料,亦即,在計時單元22,24計時結束後不再啟動任一計時單元22,24進行計時。 In addition, one of the row groups is used to designate the microprocessor 20 to control the operation of the controlled units 26 to be in the second operational state after the timing units 22, 24 are finished. The content of the first field of the row group can be blank or no data, that is, no timing unit 22, 24 is activated after the timing units 22, 24 have finished counting.

舉例而言,請配合圖5所示,該設定檔32在本實施例中為文字檔,包括第一、第二、及第三行位組322,324,326。 For example, as shown in FIG. 5, the profile 32 is a text file in this embodiment, including first, second, and third row groups 322, 324, 326.

該第一行位組322的第一個欄位322a的計時單元代碼為“T1”;第二個欄位322b的計時時長為“10m”;第三個欄位322c的受控單元代碼為“R1”,第一運作狀態代碼為“of”;第四個欄位322d的受控單元代碼為“L1”,第一運作狀態代碼為“on”;第五個欄位322e的受控單元代碼為“L2”,第一運作狀態代碼為“of”;第六個欄位322f的輸入單元代碼為“G1”,致能狀態代碼為“on”。 The timing unit code of the first field 322a of the first row group 322 is "T1"; the time duration of the second field 322b is "10m"; the controlled unit code of the third field 322c is "R1", the first operational status code is "of"; the controlled unit code of the fourth field 322d is "L1", the first operational status code is "on"; the controlled unit of the fifth field 322e The code is "L2", the first operational status code is "of"; the input unit code of the sixth field 322f is "G1", and the enable status code is "on".

該第二行位組324的第一個欄位324a的計時單元代碼為“T2”;第二個欄位324b的計時時長為“30s”;第三個欄位324c的受控單元代碼為“R1”,第一運作狀態代碼為“on”;第四個欄位324d的受控單元代碼為“L1”,第一運作狀態代碼為“on”;第五個欄位324e的受控單元代碼為“L2”,第一運作狀態代碼為“on”;第六個欄位324f為空白。 The timing unit code of the first field 324a of the second row bit group 324 is "T2"; the time duration of the second field 324b is "30s"; the controlled unit code of the third field 324c is "R1", the first operational status code is "on"; the controlled unit code of the fourth field 324d is "L1", the first operational status code is "on"; the controlled unit of the fifth field 324e The code is "L2", the first operational status code is "on"; the sixth field 324f is blank.

該第三行位組326僅第三個欄位326c的受控單元代碼為“R1”,第二運作狀態代碼為“of”;第四個欄位 326d的受控單元代碼為“L1”,第二運作狀態代碼為“of”;其它欄位為空白。 The third row bit group 326 only has the controlled unit code of the third field 326c as "R1", the second operational status code is "of"; the fourth field The controlled unit code of 326d is "L1", the second operational status code is "of"; the other fields are blank.

為便於使用者閱讀與電腦轉譯成控制參數時的判讀,相鄰的兩個該行位組之間,以分隔符號“-”分隔,該分隔符號係代表目前的運作完成後,仍有接續的運作。 In order to facilitate the user to read and interpret the computer into the control parameters, the adjacent two row groups are separated by a separator "-", which is representative of the current operation is completed, there is still a continuation Operation.

在該設定檔32輸入完成後,本實施例中係利用電腦執行該轉譯程式將該設定檔32轉換為對應的控制參數,並將該控制參數存入至該記憶單元202的該參數區塊202b中的特定位址。如此,該微處理器20即可由該參數區塊202b取得該控制參數,並依據取得的控制參數進行作動。 After the input of the configuration file 32 is completed, in the embodiment, the translation program is executed by the computer to convert the configuration file 32 into a corresponding control parameter, and the control parameter is stored in the parameter block 202b of the memory unit 202. A specific address in . In this manner, the microprocessor 20 can obtain the control parameter from the parameter block 202b and operate according to the obtained control parameter.

以前述圖5之設定檔32配合圖6所示時序圖,以兩個調時單元30,31設定的計時比例為100%說明計時裝置2之作動。在該計時裝置2受控制啟動後,例如電源開啟後,該第一計時單元22開始依所設定的計時時長與計時比例開始計時,由於該計時比例為100%,因此,該第一計時單元22預定計時10分鐘,在計時過程中,該微處理器20控制該第一發光二極體26a為對應其第一運作代碼“on”的第一運作狀態(即點亮狀態),第二發光二極體26b為對應其第一運作代碼“of”的第一運作狀態(即熄滅狀態),該繼電器26c為對應其第一運作代碼“of”的第一運作狀態(即關閉狀態)。而當該輸入單元28輸出高電壓準位(即第一電壓準位)的電訊號時,對應該致能狀態代碼所指定的電壓準位,使該第一計時單元22暫停計時,並於暫停計時的過程中維持該些受控單元26的運作為其原來的第一運作狀態。該輸入單元28經過一時間T之後,回到低電壓準位(即第二電壓準位),此時第一計時單元22方繼續計時。 With the configuration file 32 of FIG. 5 described above in conjunction with the timing chart shown in FIG. 6, the timing of the timing device 2 is explained by the timing ratio set by the two timing units 30, 31 being 100%. After the timing device 2 is controlled to start, for example, after the power is turned on, the first timing unit 22 starts to count according to the set timing duration and the timing ratio. Since the timing ratio is 100%, the first timing unit The predetermined time is 10 minutes. During the timing, the microprocessor 20 controls the first LED 26a to be in a first operational state (ie, a lighting state) corresponding to its first operational code "on", and the second illumination The diode 26b is in a first operational state (i.e., an extinguished state) corresponding to its first operational code "of", and the relay 26c is in a first operational state (i.e., a closed state) corresponding to its first operational code "of". When the input unit 28 outputs the electrical signal of the high voltage level (ie, the first voltage level), the voltage level specified by the enable status code is enabled to cause the first timing unit 22 to pause and pause. The operation of the controlled units 26 is maintained in the original first operational state during the timing. After a time T, the input unit 28 returns to the low voltage level (ie, the second voltage level), at which time the first timing unit 22 continues to time.

在該第一計時單元22計時結束時,接續啟動該第二計時單元24計時30秒,同時,該微處理器20控制 該第一發光二極體26a為對應其第一運作代碼“on”的第一運作狀態(即點亮狀態),第二發光二極體26b為對應其第一運作代碼“on”的第一運作狀態(即點亮狀態),該繼電器26c為對應其第一運作代碼“on”的第一運作狀態(即導通狀態)。 When the first timing unit 22 ends counting, the second timing unit 24 is continuously activated for 30 seconds, and at the same time, the microprocessor 20 controls The first LED 26a is in a first operational state (ie, a lighting state) corresponding to its first operational code "on", and the second LED 26b is a first corresponding to its first operational code "on". In the operational state (ie, the illuminated state), the relay 26c is in a first operational state (ie, an on state) corresponding to its first operational code "on."

在該第二計時單元24計時結束時,接續控制該第一發光二極體26a為對應其第二運作代碼“of”的第二運作狀態(即熄滅狀態),該繼電器26c為對應其第二運作代碼“of”的第二運作狀態(即關閉狀態)。 When the timing of the second timing unit 24 ends, the first LED 26a is successively controlled to be in a second operational state (ie, an extinguished state) corresponding to the second operation code “of”, and the relay 26c is corresponding to the second The second operational state of the operation code "of" (ie, the closed state).

上述中輸入單元28係被規劃成使計時單元22,24暫停計時,輸入單元28亦可被規劃成使計時單元22,24結束計時,以圖7所示之設定檔34為例,並假設兩個調時單元30,31設定的計時比例仍為100%。設定檔34的第一行位組342的第六個欄位342f中,該輸入單元28的輸入單元代碼為“N1”,代表結束計時之功能,其時序圖如圖8所示,其中,輸入單元28由低電壓準位改變為高電壓準位時,強迫第一計時單元22結束計時,使其原訂10分鐘的計時提前結束,並由第二計時單元24接續計時。 The above-mentioned middle input unit 28 is planned to suspend the timing units 22, 24, and the input unit 28 can also be programmed to cause the timing units 22, 24 to end timing, taking the setting file 34 shown in Fig. 7 as an example, and assuming two The timing ratio set by the time adjustment units 30, 31 is still 100%. In the sixth field 342f of the first row bit group 342 of the profile 34, the input unit code of the input unit 28 is "N1", which represents the function of ending the timing, and the timing chart thereof is as shown in FIG. When the unit 28 is changed from the low voltage level to the high voltage level, the first timing unit 22 is forced to end the timing, the timing of the original subscription of 10 minutes is prematurely terminated, and the timing is continued by the second timing unit 24.

又,輸入單元28亦可被規劃成使計時單元22,24重新計時,以圖9所示之設定檔36為例,假設兩個調時單元30,31設定的計時比例仍為100%,其第一行位組362的第六個欄位362f中,該輸入單元28的輸入單元代碼為“S1”,代表重新計時之功能,而致能狀態代碼為“of”,代表切換至低電壓準位時觸發,其時序圖如圖10所示。其中,在輸入單元28由高電壓準位改變為低電壓準位時,第一計時單元22停止計時,經過時間T之後,由低電壓準位改變為高電壓準位時,第一計時單元22重新依據計時時長計時,而於重新計時10分鐘的過程中,該微處理器20重新 控制該第一發光二極體26a為對應其第一運作代碼“on”的第一運作狀態,第二發光二極體26b為對應其第一運作代碼“of”的第一運作狀態,該繼電器26c為對應其第一運作代碼“of”的第一運作狀態。實務上,若輸入單元代碼為“S1”,致能狀態代碼為“on”,則是令輸入單元28由低電壓準位改變為高電壓準位時停止計時,而於再度改變為低電壓時重新計時。此外,亦可在該輸入單元28由高電壓準位改變為低電壓準位時(亦即,令輸入單元28的輸入致能狀態代碼為“ri”,表示為之上升邊緣,Rising Edge),或是在該輸入單元28由低電壓準位改變為高電壓準位時(亦即,令輸入單元28的輸入致能狀態代碼為“f1”,表示為信號之下降邊緣,Falling Edge),直接使該第一計時單元22重新依據計時時長計時。 Moreover, the input unit 28 can also be programmed to re-time the timing units 22, 24, taking the setting file 36 shown in FIG. 9 as an example, assuming that the timing ratios set by the two timing units 30, 31 are still 100%, In the sixth field 362f of the first row bit group 362, the input unit code of the input unit 28 is "S1", which represents the function of re-clocking, and the enable status code is "of", which means switching to the low voltage level. The bit timing is triggered, and its timing chart is shown in FIG. Wherein, when the input unit 28 is changed from the high voltage level to the low voltage level, the first timing unit 22 stops counting, and after the time T, after changing from the low voltage level to the high voltage level, the first timing unit 22 Re-based the timing of the timing, and during the re-clocking of 10 minutes, the microprocessor 20 re- Controlling the first LED 26a to be in a first operational state corresponding to its first operational code "on", and the second LED 26b is in a first operational state corresponding to its first operational code "of", the relay 26c is the first operational state corresponding to its first operational code "of". In practice, if the input unit code is "S1" and the enable status code is "on", the timing is stopped when the input unit 28 is changed from the low voltage level to the high voltage level, and when the input unit 28 is changed to the low voltage again. Retimed. In addition, when the input unit 28 is changed from the high voltage level to the low voltage level (that is, the input enable state code of the input unit 28 is "ri", which is expressed as the rising edge, Rising Edge), Or when the input unit 28 is changed from the low voltage level to the high voltage level (that is, the input enable state code of the input unit 28 is "f1", which is represented as the falling edge of the signal, Falling Edge), directly The first timing unit 22 is timed again according to the timing duration.

圖11所示者為另一實施例的計時裝置3,其具有大致相同於前述實施例之結構,不同的是,本實施例的微處理器20除了原有的第一、第二單元22,24外,更被規劃成具有一第三計時單元25,且微處理器20未連接對應該第三計時單元25的調時單元,換言之,該第三計時單元25即為固定計時時長。此外,本實施例的計時裝置3未設置輸入單元。 11 is a timing device 3 of another embodiment, which has substantially the same structure as the foregoing embodiment, except that the microprocessor 20 of the present embodiment has the first and second units 22 in addition to the original. 24, it is further planned to have a third timing unit 25, and the microprocessor 20 is not connected to the timing unit corresponding to the third timing unit 25, in other words, the third timing unit 25 is a fixed timing period. Further, the timepiece 3 of the present embodiment is not provided with an input unit.

請配合圖12所示之設定檔38,其中,該設定檔38的第一行位組382的第二個欄位382b中所指定的計時時長為“5m”代表第一計時單元22可計時至5分鐘。第二行位組384中同時記錄有對應第二計時單元24的計時單元代碼“T2”、計時時長“30s”、其計時過程中欲控制的受控單元代碼“R1”、“L1”及第一運作狀態代碼“on”,以及對應第三計時單元25的計時單元代碼“T3”、計時時長“5s”、其計時過程中欲控制的受控單元代碼“L2”及第 一運作狀態代碼“on”。此外,設定檔38中無需設定輸入單元代碼。 Please cooperate with the setting file 38 shown in FIG. 12, wherein the timing time specified in the second field 382b of the first row group 382 of the setting file 38 is "5m", indicating that the first timing unit 22 can be timed. Up to 5 minutes. The second row bit group 384 simultaneously records the timing unit code "T2" corresponding to the second timing unit 24, the timing duration "30s", and the controlled unit codes "R1", "L1" to be controlled during the timing. The first operational status code "on", and the timing unit code "T3" corresponding to the third timing unit 25, the timing duration "5s", the controlled unit code "L2" and the control to be controlled during the timing An operational status code "on". In addition, there is no need to set the input unit code in the profile 38.

假設該第一計時單元22對應的調時單元30設定在五分之一處,微處理器20計算出計時比例為20%,使得第一計時單元22以計時時長5分鐘的20%(即1分鐘)進行計時,而計時單元24對應的調時單元31設定計時比例為100%。前述之時序圖則如圖13所示,其中,第一計時單元22計時1分鐘的過程中控制繼電器26c關閉、第一發光二極體26a點亮、第二發光二極體26b熄滅。第一計時單元22結束時,啟動第二與第三計時單元24,25,第二計時單元24接續計時30秒的過程中,控制繼電器26c開啟、第一發光二極體26a點亮,第三計時單元25接續計時5秒的過程中,第二發光二極體26b點亮。第三計時單元25結束時,第二發光二極體26b熄滅。第二計時單元24計時結束時控制繼電器26c關閉、第一發光二極體26a熄滅。 Assuming that the timing unit 30 corresponding to the first timing unit 22 is set at one-fifth, the microprocessor 20 calculates the timing ratio as 20%, so that the first timing unit 22 takes 20% of the time duration of 5 minutes (ie, The timing is performed in 1 minute), and the timing unit 31 corresponding to the timing unit 24 sets the timing ratio to 100%. The timing chart described above is as shown in FIG. 13, in which the first timing unit 22 is turned off for 1 minute, the control relay 26c is turned off, the first light-emitting diode 26a is turned on, and the second light-emitting diode 26b is turned off. When the first timing unit 22 is finished, the second and third timing units 24, 25 are activated, and during the 30 seconds of the second timing unit 24, the control relay 26c is turned on, the first light-emitting diode 26a is turned on, and the third While the timing unit 25 is continuously clocked for 5 seconds, the second light-emitting diode 26b is turned on. When the third timing unit 25 ends, the second light-emitting diode 26b is turned off. When the second timing unit 24 ends counting, the control relay 26c is turned off, and the first light-emitting diode 26a is turned off.

綜上所述,本發明利用設定檔中該些行位組之內容,將欲設定的參數整合,可以精確地描述計時裝置的作動程序,無需修改微處理器的程式碼即可進行新規格計時器之設計,即使生產者不諳程式碼亦可規劃不同規格的計時裝置,並將設定檔轉換成控制參數後下載至該記憶單元中,使該微處理器依據控制參數作動,以進行計時裝置的調控。如此一來,有效地簡化了計時裝置的設計流程,增進計時裝置的開發及生產的效率。此外,由於設定檔為文字檔,因此,可供使用者可容易地辨識與理解其內容。 In summary, the present invention utilizes the contents of the row groups in the profile to integrate the parameters to be set, and can accurately describe the operation program of the timing device, and can perform new specification timing without modifying the code of the microprocessor. The design of the device, even if the manufacturer does not copy the code, can also plan the timing device of different specifications, and convert the configuration file into the control parameter and download it to the memory unit, so that the microprocessor operates according to the control parameter to perform the timing device. Regulation. In this way, the design flow of the timing device is effectively simplified, and the development and production efficiency of the timing device is improved. In addition, since the profile is a text file, the user can easily recognize and understand the content.

此外,受控單元可以採用發光二極體與繼電器以外的零組件(如,LCD顯示器、燈泡與Triac,固態繼電器或電晶體推動電路);輸入單元可以採用微動開關以外的組件(如,繼電器開關、或偵測器)。而視所採用的微電腦 之架構及記憶容量,可以增減計時單元、輸入單元與受控單元的數目、以及調時單元的數量。所採用的符號也可以自行定義成數個任意單字代表一項元件(如,以”RY”代表上述實施例中的”R”、或是以中文代替上述實施例中的英文單字等。 In addition, the controlled unit can use components other than the LED and relay (such as LCD display, bulb and Triac, solid state relay or transistor push circuit); the input unit can use components other than the micro switch (such as relay switch) , or detector). Microcomputer The architecture and memory capacity can increase or decrease the number of timing units, input units and controlled units, and the number of timing units. The symbols used may also be defined as a plurality of arbitrary words to represent an element (for example, "RY" represents "R" in the above embodiment, or Chinese is used to replace the English word in the above embodiment.

以上所述僅為本發明較佳可行實施例而已,舉凡應用本發明說明書及申請專利範圍所為之等效變化,理應包含在本發明之專利範圍內。 The above is only a preferred embodiment of the present invention, and equivalent changes to the scope of the present invention and the scope of the patent application are intended to be included in the scope of the present invention.

Claims (12)

一種計時裝置的規劃方法,該計時裝置包括一微處理器與至少一受控單元電性連接該微處理器,該微處理器具有至少一用以計時的計時單元,該微處理器控制該受控單元的運作;該規劃方法包含下列步驟:A、輸入一設定檔,該設定檔包括一計時單元代碼、一計時時長與一第一運作狀態代碼,其中,該計時單元代碼係用於指定該計時單元運作者,該計時時長係用於指定該計時單元的計時時間長度者,該第一運作狀態代碼係用於指定該微處理器於計時單元的計時過程中控制該受控單元的運作為一第一運作狀態者;B、依據該設定檔產生一對應的控制參數;以及C、令該微處理器依據該控制參數作動,以使該計時單元依據該計時時長計時,並於計時過程中,控制該受控單元的運作為該第一運作狀態。 A timing device planning method, the timing device comprising a microprocessor and at least one controlled unit electrically connected to the microprocessor, the microprocessor having at least one timing unit for timing, the microprocessor controlling the receiving The operation of the control unit comprises the following steps: A. inputting a configuration file, the configuration file includes a timing unit code, a timing duration and a first operational status code, wherein the timing unit code is used to specify The timing unit operator is configured to specify a time length of the timing unit, the first operational status code is used to specify that the microprocessor controls the controlled unit during the timing of the timing unit Operating as a first operational state; B, generating a corresponding control parameter according to the configuration file; and C, causing the microprocessor to act according to the control parameter, so that the timing unit is timed according to the timing duration, and During the timing, the operation of the controlled unit is controlled to be the first operational state. 如請求項1所述之計時裝置的規劃方法,其中步驟A中,該設定檔包括一第二運作狀態代碼,該第二運作狀態代碼係用於指定該微處理器於該計時單元計時結束後控制該受控單元的運作為一第二運作狀態者;步驟C中包含該微處理器於該計時單元計時結束後,控制該受控單元的運作為該第二運作狀態。 The method for planning a timing device according to claim 1, wherein in step A, the configuration file includes a second operational status code, wherein the second operational status code is used to specify that the microprocessor is after the timing unit ends Controlling the operation of the controlled unit to be a second operational state; the step C includes the microprocessor controlling the operation of the controlled unit to be in the second operational state after the timing of the timing unit ends. 如請求項1所述之計時裝置的規劃方法,其中該至少一計時單元的數量為複數個;步驟A中,該設定檔包括複數個該計時單元代碼、複數個該計時單元的計時時長、及該受 控單元於不同的計時單元的計時過程中之第一運作狀態代碼;步驟C中,係令該微處理器依據該控制參數依序使該些計時單元進行計時,並於每一該計時單元計時過程中,控制該受控單元的運作為對應每一該計時單元計時過程的該第一運作狀態。 The method for planning a timing device according to claim 1, wherein the number of the at least one timing unit is plural; in the step A, the configuration file includes a plurality of the timing unit codes, a plurality of timing periods of the timing unit, And the subject The first operational status code of the control unit in the timing of different timing units; in step C, the microprocessor is caused to sequentially time the timing units according to the control parameters, and time each of the timing units In the process, the operation of the controlled unit is controlled to correspond to the first operational state of each of the timing unit timing processes. 如請求項3所述之計時裝置的規劃方法,其中步驟A中,該設定檔包括一第二運作狀態代碼,該第二運作狀態代碼係用於指定該微處理器於該些計時單元計時結束後控制該受控單元的運作為一第二運作狀態者;步驟C中,係於該些計時單元計時結束後控制該受控單元的運作為該第二運作狀態。 The method for planning a timing device according to claim 3, wherein in step A, the configuration file includes a second operational status code, and the second operational status code is used to specify that the microprocessor ends in the timing units. The operation of the controlled unit is controlled to be a second operational state; in step C, the operation of the controlled unit is controlled to be the second operational state after the timing of the timing units ends. 如請求項3所述之計時裝置的規劃方法,其中該計時裝置包含一輸入單元電性連接該微處理器,該輸入單元輸出一第一電壓準位或一第二電壓準位之電訊號;步驟A中,該設定檔包括一輸入單元代碼及一致能狀態代碼,該輸入單元代碼係用於指定該微處理器接收該輸入單元輸出的電訊號,該致能狀態代碼係用於指定該第一電壓準位及該第二電壓準位的其中之一者;步驟C中,於其中一該計時單元計時過程中,該微處理器接收到該輸入單元所輸出的電訊號切換為對應該致能狀態代碼所指定的電壓準位時,該計時單元結束計時,並令下一個計時單元開始計時。 The method for planning a timing device according to claim 3, wherein the timing device comprises an input unit electrically connected to the microprocessor, and the input unit outputs a first voltage level or a second voltage level electrical signal; In step A, the configuration file includes an input unit code and a consistent energy status code, the input unit code is used to specify that the microprocessor receives the electrical signal output by the input unit, and the enable status code is used to specify the first One of a voltage level and the second voltage level; in step C, during the timing of one of the timing units, the microprocessor receives the electrical signal output by the input unit to switch to the corresponding When the voltage level specified by the status code is enabled, the timing unit ends the timing and causes the next timing unit to start timing. 如請求項1所述之計時裝置的規劃方法,其中該計時裝置包含一輸入單元電性連接該微處理器,該輸入單元輸出一第一電壓準位或一第二電壓準位之電訊號;步驟A中,該 設定檔包括一輸入單元代碼及一致能狀態代碼,該輸入單元代碼係用於指定該微處理器接收該輸入單元輸出的電訊號,該致能狀態代碼係用於指定該第一電壓準位及該第二電壓準位的其中之一者;步驟C中,在計時過程中,該微處理器接收到該輸入單元所輸出的電訊號切換為對應該致能狀態代碼所指定的電壓準位時,該計時單元暫停計時,並於暫停計時的過程中,維持該受控單元的運作為該第一運作狀態,直到該輸入單元輸出的電訊號切換為另一該電壓準位後,方繼續計時。 The method for planning a timing device according to claim 1, wherein the timing device comprises an input unit electrically connected to the microprocessor, and the input unit outputs a first voltage level or a second voltage level electrical signal; In step A, the The configuration file includes an input unit code and a consistent energy status code, wherein the input unit code is used to specify that the microprocessor receives the electrical signal output by the input unit, and the enable status code is used to specify the first voltage level and One of the second voltage levels; in step C, during the timing, the microprocessor receives the electrical signal output by the input unit to switch to the voltage level specified by the enable status code. The timing unit pauses the timing, and during the pause timing, maintains the operation of the controlled unit as the first operational state, and continues to time until the electrical signal output by the input unit is switched to another voltage level. . 如請求項1所述之計時裝置的規劃方法,其中該計時裝置包含一輸入單元電性連接該微處理器,該輸入單元輸出一第一電壓準位或一第二電壓準位之電訊號;步驟A中,該設定檔包括一輸入單元代碼及一致能狀態代碼,該輸入單元代碼係用於指定該微處理器接收該輸入單元輸出的電訊號,該致能狀態代碼係用於指定該第一電壓準位及該第二電壓準位的其中之一者;步驟C中,在計時過程中,該微處理器接收到該輸入單元所輸出的電訊號切換為對應該致能狀態代碼所指定的電壓準位時,該計時單元重新依據該計時時長計時,並於重新計時的過程中,控制該受控單元的運作為該第一運作狀態。 The method for planning a timing device according to claim 1, wherein the timing device comprises an input unit electrically connected to the microprocessor, and the input unit outputs a first voltage level or a second voltage level electrical signal; In step A, the configuration file includes an input unit code and a consistent energy status code, the input unit code is used to specify that the microprocessor receives the electrical signal output by the input unit, and the enable status code is used to specify the first One of a voltage level and the second voltage level; in step C, during the timing, the microprocessor receives the electrical signal output by the input unit and switches to the corresponding enable status code. When the voltage level is set, the timing unit re-times according to the timing duration, and controls the operation of the controlled unit to be the first operational state during the re-time counting. 如請求項1所述之計時裝置的規劃方法,其中該計時裝置包含一輸入單元電性連接該微處理器,該輸入單元輸出一第一電壓準位或一第二電壓準位之電訊號;步驟A中,該設定檔包括一輸入單元代碼及一致能狀態代碼,該輸入單 元代碼係用於指定該微處理器接收該輸入單元輸出的電訊號,該致能狀態代碼係用於指定該第一電壓準位及該第二電壓準位的其中之一者;步驟C中,在計時過程中,該微處理器接收到該輸入單元所輸出的電訊號切換為對應該致能狀態代碼所指定的電壓準位時,該計時單元暫停計時,並於暫停計時的過程中,維持該受控單元的運作為該第一運作狀態,直到該輸入單元輸出的電訊號切換為另一該電壓準位後,該計時單元重新依據該計時時長計時,並於重新計時的過程中,控制該受控單元的運作為該第一運作狀態。 The method for planning a timing device according to claim 1, wherein the timing device comprises an input unit electrically connected to the microprocessor, and the input unit outputs a first voltage level or a second voltage level electrical signal; In step A, the configuration file includes an input unit code and a consistent energy status code, the input form The meta code is used to specify that the microprocessor receives the electrical signal output by the input unit, and the enable state code is used to specify one of the first voltage level and the second voltage level; During the timing, when the microprocessor receives the voltage signal output by the input unit and switches to the voltage level specified by the enable status code, the timing unit pauses and pauses during the timeout period. Maintaining the operation of the controlled unit in the first operational state, until the electrical signal output by the input unit is switched to another voltage level, the timing unit is re-timed according to the timing duration, and in the process of re-time counting Controlling the operation of the controlled unit to the first operational state. 如請求項1所述之計時裝置的規劃方法,其中該計時裝置包含一調時單元電性連接該微處理器,該調時單元受控制而改變輸出至該微處理器的電訊號,該微處理器依據該調時單元輸出的電訊號計算一計時比例;步驟C中,該計時單元係依據該計時時長與該計時比例進行計時。 The method for planning a timing device according to claim 1, wherein the timing device comprises a timing unit electrically connected to the microprocessor, the timing unit being controlled to change an electrical signal output to the microprocessor, the micro The processor calculates a timing ratio according to the electrical signal output by the timing unit; in step C, the timing unit performs timing according to the timing duration and the timing ratio. 如請求項1所述之計時裝置的規劃方法,其中該計時裝置包含有一記憶單元;步驟B與步驟C之間包含有將該控制參數儲存至該記憶單元中;步驟C中該微處理器係由該記憶單元取得該控制參數,並依據該控制參數作動。 The method of planning a timing device according to claim 1, wherein the timing device comprises a memory unit; and the step B and the step C include storing the control parameter in the memory unit; The control parameter is obtained by the memory unit and actuated according to the control parameter. 如請求項9所述之計時裝置的規劃方法,其中步驟B中係透過一轉譯程式將該設定檔轉換為對應的該控制參數。 The method for planning a timekeeping device according to claim 9, wherein in step B, the profile is converted into a corresponding control parameter by a translator. 如請求項1所述之計時裝置的規劃方法,其中該設定檔為文字檔。 The planning method of the timing device according to claim 1, wherein the setting file is a text file.
TW103127280A 2014-08-08 2014-08-08 Scheduling method of timing device TWI553433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103127280A TWI553433B (en) 2014-08-08 2014-08-08 Scheduling method of timing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103127280A TWI553433B (en) 2014-08-08 2014-08-08 Scheduling method of timing device

Publications (2)

Publication Number Publication Date
TW201606460A TW201606460A (en) 2016-02-16
TWI553433B true TWI553433B (en) 2016-10-11

Family

ID=55810036

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103127280A TWI553433B (en) 2014-08-08 2014-08-08 Scheduling method of timing device

Country Status (1)

Country Link
TW (1) TWI553433B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5089955A (en) * 1984-11-02 1992-02-18 Hitachi, Ltd. Programmable counter/timer device with programmable registers having programmable functions
US6708135B2 (en) * 2001-01-05 2004-03-16 Abb, Inc. Method for programming timer to execute timing operations
CN101598929A (en) * 2008-06-04 2009-12-09 张惠生 Installable program controlled timer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5089955A (en) * 1984-11-02 1992-02-18 Hitachi, Ltd. Programmable counter/timer device with programmable registers having programmable functions
US6708135B2 (en) * 2001-01-05 2004-03-16 Abb, Inc. Method for programming timer to execute timing operations
CN101598929A (en) * 2008-06-04 2009-12-09 张惠生 Installable program controlled timer

Also Published As

Publication number Publication date
TW201606460A (en) 2016-02-16

Similar Documents

Publication Publication Date Title
US10667367B2 (en) APP based free setting method for setting operating parameter of security light
US8513901B2 (en) Method and apparatus to control LED brightness
TW201138548A (en) Dimmer decoder with improved efficiency for use with LED drivers
US9510414B2 (en) Light emitting diode driving circuit and lighting apparatus having the same
US10384032B2 (en) Systems and methods for managing ambient conditions
ES2935960T3 (en) A configurable lighting system and procedure
TWI553433B (en) Scheduling method of timing device
CN107249146B (en) Method for dynamically configuring LED indicator lamp based on smart television
JP6296554B2 (en) Light control toning control device and lighting control system using the same
ES2936629T3 (en) A controller to set up a lighting system
TW200835882A (en) Power control device
CN106900129B (en) Adjusting and controlling device of lighting lamp and lighting lamp
CN203984730U (en) Linearity light adjusting device
CN104160788A (en) Two-wire neutralless digital dimmer for leading-edge dimmable lamp driver and a method of operation thereof
CN112153778B (en) LED lamp adjusting device for Internet of things control and LED lamp
CN106686850B (en) Light emitting diode soft starting circuit
CN203322781U (en) Lighting device
CN111987535A (en) Programmable multi-working-mode timing intelligent socket
CN217767212U (en) Control circuit, drive circuit and lighting device
US11743993B2 (en) Lighting controller for controlling a light source and a method thereof
US8988008B2 (en) Light control circuit and method
CN115833331B (en) Charge-discharge switching circuit for energy storage system, implementation method and device
CN113196882B (en) Control system for configuring lighting system and method thereof
JP6478156B2 (en) Schedule controller, lighting system, and lighting control method
CN209042178U (en) Lighting device, light emitting device and Intelligent light system

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees