TWI304931B - Multiple mode communication interface for plc expander and host and method for operating the same - Google Patents

Multiple mode communication interface for plc expander and host and method for operating the same Download PDF

Info

Publication number
TWI304931B
TWI304931B TW94146081A TW94146081A TWI304931B TW I304931 B TWI304931 B TW I304931B TW 94146081 A TW94146081 A TW 94146081A TW 94146081 A TW94146081 A TW 94146081A TW I304931 B TWI304931 B TW I304931B
Authority
TW
Taiwan
Prior art keywords
connection
host
expansion
communication interface
expansion machine
Prior art date
Application number
TW94146081A
Other languages
Chinese (zh)
Other versions
TW200725281A (en
Inventor
Hung Chih Wu
Original Assignee
Delta Electronics Inc
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 Delta Electronics Inc filed Critical Delta Electronics Inc
Priority to TW94146081A priority Critical patent/TWI304931B/en
Publication of TW200725281A publication Critical patent/TW200725281A/en
Application granted granted Critical
Publication of TWI304931B publication Critical patent/TWI304931B/en

Links

Landscapes

  • Communication Control (AREA)

Description

'ό(, 1304931 五、發明說明(1) 【發明所屬之技術領域】 本發明之一種PLC擴充機與主機之多模式通訊介面裝 置及其應用方法,尤指一種可配合一般或者特殊擴充機, 以形成串列數位點擴充模式、特殊擴充機之串、並列擴充 模式等多模式、多型態擴充機連接,並可透過通訊介面之 積體電路一連結模組,設定需求之I/O點數擴充的PLC擴充 機與主機之多模式連接通訊介面,藉以改善通訊方式及 1 /0點數擴充需分別作不同硬體設計等問題。 ^先前技術】 已知,應用於外部裝置運作控制之可程式控制器(pL ,Programmable Logic_c〇ntr〇Uer)都是透過其外部" 輯端接Λ部聚置或設備’以配合可程式控制器内部編 輯矛式執仃外部運作控制,但,習知可程式控制器 ^機之外部I/O端子數量均為固定,若要連結進行更 垃夕=裝置或設備運行控制,就必需透過各型 接以擴充其數位或類比1/0端子。 爾充機連 夕、s又i習知可程式控制器(PLC )主機與擴充機間連接 充機連接傳遞信號與資料 輸出單元1 5、1 6連接 連接電路結構。 上述該傳輸點Cl〜C6 電路1 ’ Μ透過傳輸點C1〜C6與主機,或者上、下—級^ 上述控制電路1 〇亦與輪入、、 以構成主機與擴充機間之通訊 包括傳輸點ci,主要是ΙΝΡϋτ 第6頁 1304931'ό(, 1304931 V. INSTRUCTION DESCRIPTION (1) Technical Field of the Invention A multi-mode communication interface device of a PLC expansion machine and a host computer, and an application method thereof, especially a general or special expansion machine, The multi-mode and multi-mode expansion machines are connected in a serial number expansion mode, a special expansion machine string, a parallel expansion mode, and the like, and the I/O point of the demand can be set through the integrated circuit of the communication interface. The number of extended PLC expansion machines and the host's multi-mode connection communication interface, in order to improve the communication method and 1 / 0 point expansion need to be separately made for different hardware design issues. ^Previous technology] It is known to be applied to the operation control of external devices. The programmable controller (pL, Programmable Logic_c〇ntr〇Uer) is controlled by its external "end-end Λ 聚 或 or device' to cooperate with the programmable controller internal editing spear-type external operation control, but The number of external I/O terminals of the programmable controller is fixed. If you want to connect to the device or device operation control, you must expand the number through each type. Bit or analog 1/0 terminal. 尔充机连夕, s又 i I know the programmable controller (PLC) host and expansion machine connection charger connection signal and data output unit 1 5, 16 connection circuit structure The transmission point C1 to C6 circuit 1' is transmitted to the host through the transmission points C1 to C6, or the upper and lower stages. The control circuit 1 is also in turn, and the communication between the host and the expansion unit is included. Point ci, mainly ΙΝΡϋτ page 6 1304931

DATA傳,點,以執行擴充機χ輸入點信號,連同下一級χ輸 入點,號之傳回主機;傳輸點C2,主要是時序脈波(cL〇 CK信號)傳輸點’由主機傳至擴充機各零件的時序脈波; 傳輸點C3,、主+要是0UTPUT DATA傳輸點,以執輸出點資 料’由CPU運算後所傳出所有擴充機γ輸出點資料;傳輸點 C4,主要是觸發信號(P/S & STR〇BE)傳輸點,使擴充 機輸入/出7G件改變串/並列狀態的觸發信號;傳輸點C5, 主要是允許輸出信號(0UTPUT ENABLE)傳輸點,初始化 動作後保持為Normal High狀態;及,傳輸點C6,主要是 認連接的控制信號(CONTR〇L SIGN)傳輸點,於初始化 動作後保持為Normal High狀態。 至於’上述受控電路1之各邏輯判斷電路1 1、i 2 、1 3、1 4架構與運作,其中該第一邏輯判斷電路1 1 ’主要係進行脈波判斷’接受傳輸點C2及C6之信號輸入, 利用該傳輸點C6輸入之控制信號(CONTROL SIGN)準位變 化,以允許主機所傳出之時序脈波經此電路到達擴充機輸 入/出單元;第一邏輯判斷電路1 2,係進行擴充機Y輸出 點資料判斷’利用傳輸點C3、C6及輸出單元1 6輸出資料 + 信號’依傳輸點C6輸入之控制信號(CONTROL SIGN 胃)準位變化’控制將其餘擴充機輸出資料傳至第四邏輯判 斷電路1 4與下一級擴充機;該第三邏輯判斷電路1 3, 主要係進行擴充機X輸入點資料判斷,利用傳輸點C6、擴 充機的m個X輸入點信號Xm、及當C6 = l時,Xm經傳輸點C1傳 回主機或上一級之信號C6 .C3 + nT +C6 .C3,以依傳輪點DATA transmission, point, to execute the expansion machine χ input point signal, together with the next level χ input point, the number is transmitted back to the host; transmission point C2, mainly the timing pulse wave (cL 〇 CK signal) transmission point 'from the host to the expansion The timing pulse of each part of the machine; the transmission point C3, the main + is the 0UTPUT DATA transmission point, to execute the output point data 'all expansion machine γ output point data transmitted by the CPU operation; the transmission point C4, mainly the trigger signal (P/S & STR〇BE) transmission point, so that the expansion machine inputs/outputs 7G pieces to change the trigger signal of the serial/parallel state; transmission point C5 mainly allows the output signal (0UTPUT ENABLE) transmission point to be maintained after the initialization action The Normal High state; and, the transmission point C6, is mainly the connection control signal (CONTR〇L SIGN) transmission point, and remains in the Normal High state after the initialization operation. As for the logic and circuit 1 1 , i 2 , 1 3 , and 14 of the above-mentioned controlled circuit 1, the first logic determining circuit 1 1 'is mainly performing pulse wave determination 'accepting transmission points C2 and C6 Signal input, using the control signal (CONTROL SIGN) level change inputted by the transmission point C6, to allow the timing pulse wave transmitted by the host to reach the expansion machine input/output unit via the circuit; the first logic determining circuit 12, It is judged by the expansion machine Y output point data 'Using the transmission points C3, C6 and the output unit 16 to output the data + signal' according to the control signal input at the transmission point C6 (CONTROL SIGN stomach level change) control the remaining expansion machine output data Passing to the fourth logic judging circuit 14 and the next-stage expansion machine; the third logic judging circuit 13 is mainly for performing the expansion machine X input point data judgment, using the transmission point C6, the m X input point signals Xm of the expansion machine And when C6 = l, Xm is transmitted back to the host or the signal of the previous level via the transmission point C1, C6.C3 + nT + C6 .C3, to pass the transmission point

第7頁 l3〇4931Page 7 l3〇4931

友、發明說明(3) - C 6 輪入之上控制信號(CONTROL SIGN )準位變化,控制擴充 機輸入信號經此第三邏輯判斷電路1 3傳回上一級擴充 ^主機;另’上述之第四邏輯判斷電路1 、叹連接刹齡 4 1 、C2 螂,以判斷下一級擴充機是否連接,並將傳輸點 機之X ί信,及資料繼續傳往下一級擴充機。下一級擴充 t入k號亦經此第四邏輯判斷電路1 4傳回至上一 、的第二邏輯判斷電路1 3。Friends, invention description (3) - C 6 wheel control signal (CONTROL SIGN) level change, control expansion machine input signal through the third logic judgment circuit 1 3 back to the previous level expansion ^ host; The fourth logic judging circuit 1 sighs the connection ages 4 1 and C2 螂 to determine whether the next-stage expansion machine is connected, and transmits the X-ray information of the transmission point machine and the data to the next-stage expansion machine. The next stage expansion t into the k number is also transmitted back to the previous second logic judging circuit 13 via the fourth logic judging circuit 14.

輯判^之^述PLC主機與擴充機連接時,需透過擴充機邏 機與擔右二ί電路進行初始化動作(Initial),以確認主 點偵測,帷動正常且連接確實,然後再進行擴充機數位 <受栌雷敗,根據上述習知擴充機之通訊介面暨邏輯判斷 點數:走、’必需由硬體設計人員根據不同的I /0點擴充 同時,於主^硬體上的匹配設計,需要花費較多時間, 驚花費時間軟;;計上’在摘測數位點擴充機時,亦 另^使用去f 長串的脈波,又形成時間成本的浪費。 鲭入耨使用擴充機應用於顯示數值於多段顯示器及 時,在擴充機硬體上需以1/0點來模擬When the PLC host and the expansion unit are connected, the initialization action (Initial) needs to be performed through the expansion machine and the right-hand circuit to confirm the main point detection, and the connection is normal and the connection is correct, and then The expansion machine digits <receiving the defeat, according to the above-mentioned conventional expansion machine communication interface and logic judgment points: go, 'must be extended by hardware designers according to different I / 0 points at the same time, on the main ^ hardware The matching design takes more time, and the time spent is soft;; when counting the expansion of the digital position, it also uses the pulse wave of the long string to form a waste of time cost. When using the expansion unit to display the value on the multi-segment display, it needs to be simulated at 1/0 point on the expansion machine hardware.

言之ΐί 體上也需撰寫對應的程<,相當不便,換 沉 端及擴充端設計人員都必需再為硬體通訊方式 仃匹配之設計,造成雙重的時間浪費。 $者十述與主機連接之擴充機,並非均屬 :擴構連接主機與非數位,或其他ί 之軟體設計人貝需與主機端軟體設計人員相互溝通,=In other words, it is also necessary to write the corresponding procedure. It is quite inconvenient, and the designers who change the sink and the expansion end must design the hardware communication method again, resulting in double time waste. $10 The extensions connected to the host are not all: expansion of the connection host and non-digit, or other software designers need to communicate with the host software designer, =

13049311304931

第9頁 1304931 五、發明說明(5) 一記憶單 一通訊介 ,包括: 一前級連 -設有至少一判 定, 一後級連 一判斷模組, 一第一設 用煮終痒;求 讀取及輸出; 一硬體模 於初始化判讀 值與轉換輸出 之定位值選擇 料存取; 一從機端 式,以連接發 I擴充機進行記 一輸入控 第二設定用連 一輪出控 第二設定用連 一轉變控 元’連接上述微處理器; 面,與上述微處理器連接,具有一積體電路 結模組,連接主機,或者上一級擴充機,並 斷模组,以配合不同型態擴充機連接辨識設 結模組,與下一級擴充機連接,並設有至少 以配合不同型態擴充機連接辨識設定; 定用連結模組及第二設定用連結模組,供使 設定I /0點數擴充以及外部連接,執行資料 式設定連結模組,以設定擴充機型態供主機 丄並連,取得主機,或者上一級輸出之定位 定位,送至下一級擴充機,以及依分配位置 主機是否可連接,或者透過記憶單元進行資 模式連結模組,配合擴充機型態與連接模 光7L件掃瞄輸出顯示各數位點狀態, 憶單元暫存資料之存取; - ?控制上述第一設定用連結模組及 、-模組之貪料讀取輪入; :以控制上述第一設定用連結模組及 …模組之資料輸出; 制致能信號(SH ),以單線方式連接主機,Page 9 1304931 V. Invention Description (5) A memory single communication medium, including: a pre-level connection - with at least one decision, a post-stage connection with a judgment module, a first set of cooking and itching; reading Take the output; a hardware model in the initial interpretation value and the conversion output positioning value selection material access; a slave-end type, to connect the I expansion machine to record an input control second setting with a round of control second The connection is connected to the microprocessor by using a continuous transition control unit; the surface is connected to the microprocessor, and has an integrated circuit junction module, connected to the host, or the upper expansion machine, and the module is broken to match different types. The expansion machine is connected to the identification setting module, and is connected to the next-stage expansion machine, and is provided with at least an extension connection setting for different types of extensions; a fixed connection module and a second setting connection module for setting I /0 point expansion and external connection, execute the data type setting connection module, set the expansion type to be connected to the host, obtain the positioning position of the host or the upper output, and send it to the next level expansion machine. And according to the location of the host can be connected, or through the memory unit to carry out the mode connection module, with the expansion of the model and the connection of the mode light 7L scan output display the status of each number of points, recall the unit temporary data access; Controlling the first setting connection module and the - module's greedy reading wheel; and controlling the data output of the first setting connection module and the module; the enabling signal (SH), Connect the host in a single line,

第10頁 1304931 941480«!Page 10 1304931 941480«!

五、發明說明(6) 或者Ϊ計:Ϊ相鄰擴充機’以提高通訊控制速度; 數信號;° ^上述硬體模式設定連結模組連接產生計 組,Ϊί各Si以通訊介面之積體電路及其多數連結模 接上述主2:同:擴充機型態及其通訊連接模式,以連 積體電路之輸出—田Ϊ之擴充機形成通訊連結’並利用 接腳;主機於初結!組依需求設定1/〇點數擴充 -組訊號以判斷心機】:J通:::讀取某-判斷模 腎機,各擴充機佑、h入 ' 量,並輪出一定位值至擴充 主機所發送之資料:位值,自動允許或隔離 。 次者進仃暫存於記憶單元之資料存取 【實施方式】 明如;有關本發明之技術内容及詳細說明,現配合圖式說 機之多楔H t五圖所不’係本發明之plc擴充機與主 置及電路^塊-咅5ίι介面裴置組成架構、積體電路腳位配 圖所示:本發明·擴充機與 —接通訊介面裝置包括有:-主機2及至少 機3以内設之通訊介面3 ^之擴充機3 ’前述之擴充 以連接上述主機2之通訊介擴充機,態,並藉 用不同的串、並列模式血可根據擴充機型態,應 ι飞夕數擴充機間形成串列數位點罐V. Invention description (6) or trick: Ϊ adjacent expansion machine 'to improve the communication control speed; number signal; ° ^ The above hardware mode setting connection module connection generates the meter group, 各 各 each Si to the communication interface The circuit and its majority are connected to the main 2: the same: the expansion mode and its communication connection mode, to the output of the integrated circuit - the expansion of the machine to form a communication link 'and use the pin; the host is in the beginning! The group sets 1/〇 points expansion according to the demand-group signal to judge the heart machine]: J-pass::: Read a certain-determination model kidney machine, each expansion machine, h into 'quantity, and rotate a positioning value to expand Information sent by the host: bit value, automatically allowed or isolated. The second party enters the data access temporarily stored in the memory unit. [Embodiment] The technical content and detailed description of the present invention are in line with the multi-wedge H t5 diagram of the drawing machine. Plc expansion machine and main unit and circuit block-咅5ίι interface device structure, integrated circuit pin map as shown: the invention · expansion machine and - communication interface device includes: - host 2 and at least machine 3 The extension of the expansion interface 3' of the internal communication interface 3' is connected to the communication expansion machine of the host 2, and the different serial and parallel mode blood can be used according to the expansion mode. Forming a series of digital tanks between expansion machines

等之多模式應用連 ’依需求作硬體設 1304931And so many mode applications even ‘hardware set according to demand 1304931

« I —----索號94146081_ 年月日 五、發明說明(7) 充模式、特殊擴充機之串並列擴充模式 接’並可透過通訊介面3 1之連結模組 定I/O點數擴充。 上述主機2至少包括有:一通訊介面2 1及一微處理 器2 2所構成,前述之通訊介面2 1係與上述擴充機3之 通訊介面3 1相同之積體電路設計,作為主機端積體電路 以與連接之擴充機間,形成硬體設定之擴充機型態、容量 溝通判讀,以及輸出定位值至多數擴充機3進行定位與資 料存取控制。 上述所提之擴充機3包括有:一通訊介面31與上述 主機2或上一級或下一級擴充機3連接;/微處理器3 2 ’與上述通訊介面3 1連接;及一記憶單元3 3,連接上 述微處理器32及通訊介面31 ,以與主機2進行雙向資 料存取。 該記憶單元3 3較佳係為雙輸出端設計,而具有第一 輸出端3 3 1及第二輸出端3 3 2 。 該通訊介面3 1 ,係為一經硬體設計之積體電路’並 定義了各種擴充機型態及其一致適用之多組連結模組’包 _括: 一前級連結模組3 1 1 ,以連接主機2或者上级擴 充機3,並設有至少一判斷模組(D_inst0~2 ),以配合 不同型態擴充機3連接及辨識設定; —後級連結模組3 1 2,與下一級擴充機3連接’ # 設有至少一判斷模組(D _ i n s t 〇 0〜2 ),以配合不同梨態擴« I —---- cable number 94146081_ year, month and day five, invention description (7) charging mode, special expansion machine series parallel expansion mode connected 'and can be set through the communication interface 3 1 link module I / O points expansion. The host 2 includes at least a communication interface 2 1 and a microprocessor 2 2 , and the communication interface 21 is the same integrated circuit design as the communication interface 31 of the expansion machine 3 as a host end product. The body circuit forms a hard-set expansion type, capacity communication interpretation, and output positioning value to the majority of the expansion machine 3 for positioning and data access control. The expansion machine 3 mentioned above comprises: a communication interface 31 connected to the host 2 or the upper or lower level expansion machine 3; / the microprocessor 3 2 ' is connected to the communication interface 31; and a memory unit 3 3 The microprocessor 32 and the communication interface 31 are connected to perform bidirectional data access with the host 2. The memory unit 33 is preferably a dual output design having a first output terminal 3 31 and a second output terminal 3 3 2 . The communication interface 3 1 is a hardware-designed integrated circuit 'and defines various expansion modes and a plurality of sets of connection modules that are uniformly applicable' package: a pre-connection module 3 1 1 , To connect the host 2 or the upper expansion machine 3, and at least one judgment module (D_inst0~2) is provided to match the connection and identification settings of the different type expansion machines 3; the rear connection module 3 1 2, and the next level Expansion machine 3 connection ' # has at least one judgment module (D _ inst 〇0~2) to match different pear state expansion

第12頁 1304931 五、發明說明(8) 充機3連接辨識設定; 第一設定用連結模組(Pb〇/ADl_0〜Pbl5/AD2_5 ) 3 1 3及第二設定用連結模組(Pa〇/DATA1 —〇 pal5/RD2n )3 1 4,供使用者依據需求設定1/()點數擴充以及外部 連接’執行資料讀取及輸出;及 硬體模式設定連結模組(InU〇de〇〜5 & 〇DEMl~3) 31 5,係與上述主機2或者透過上一級擴充機3與主機 2連接’以設定擴充機型態供主機2於初始化判讀,並取 得=機2或者上一級擴充機3轉換輪出之定位值與轉換輸 出定位值送至下一級擴充機3,以及依分配位置之定位值 選擇主機2是否可連接,或者透過記憶單元3 3進行資料 存取; 、 從機端模式連結模組(LED/DATA2_0~ LED/DATA2_ 7_) 3 1 6,以配合擴充機型態與連接模式,以連接發光 το件(LED,圖中未繪示)掃瞄輸出顯示各數位點狀態, 或者由擴充機3進行主機2與記憶單元33間暫存資料之 存取,Page 12 1304931 V. Invention Description (8) Charger 3 connection identification setting; First setting connection module (Pb〇/ADl_0~Pbl5/AD2_5) 3 1 3 and second setting connection module (Pa〇/ DATA1 —〇pal5/RD2n )3 1 4, for users to set 1/() point expansion and external connection 'execution data reading and output according to demand; and hardware mode setting connection module (InU〇de〇~5 & 〇DEMl~3) 31 5, connected to the host 2 or through the upper expansion machine 3 and the host 2 'to set the expansion model for the host 2 to initialize the interpretation, and obtain = machine 2 or the upper level expansion machine 3 The positioning value of the conversion wheel and the conversion output positioning value are sent to the next-stage expansion machine 3, and whether the host 2 is connectable according to the positioning value of the distribution position, or the data access is performed through the memory unit 33; Connection module (LED/DATA2_0~ LED/DATA2_ 7_) 3 1 6 to match the expansion mode and connection mode, to connect the illumination τ (the LED, not shown) scan output to display the status of each digit. Or the temporary storage between the host 2 and the memory unit 33 is performed by the expansion machine 3. Of access,

一輸入控制電路3 i 7,以控制上述第一設定用連結 模組(卩1)0/八1)1_0〜?1)15/八02_5)313及第二設定用連社 模組(PaO,/DATA1_〇〜Pal5/RD2n) 3 i 4之資料讀取輸入0 ,包括有· 一輸出/入通道開關量控制器(pis〇) 3 2 1 及連接輸出/入通道開關量控制器(pis〇) 3 2 1之閂鎖 裝置(Latch ) 3 2 2所構成,另於閂鎖裝置(Latch ) 3 2 2連接-顯不控制單元3 2 3,以連接控制上述擴充An input control circuit 3 i 7 controls the first setting connection module (卩1) 0/eight 1) 1_0~? 1) 15/8 02_5) 313 and the second setting with the Lianshe module (PaO, /DATA1_〇~Pal5/RD2n) 3 i 4 data read input 0, including · an output / input channel switching control (pis〇) 3 2 1 and connected output/input channel switching controller (pis〇) 3 2 1 latching device (Latch) 3 2 2, and latching device (Latch) 3 2 2 connection - Display control unit 3 2 3 to control the above expansion by connection

第13頁 1304931 五、發明說明(9) = = Γ =件4動作,上述輸出/入通道開關量 控制器(PISG ) 3 2 1透過開關元件3 2 4卜 .與脈波信號輸入端(Dck) 3 2 6及資 心連接:二開關元件3 2 4 3連接資料傳輸輸 二件fI 4 4、^ 7與資料輸入端間利用二串接之開關 2 4 5進行訊號連接控制,該閂鎖裝置 a 透過開關元件3 2 4 6與LD訊號端3 ? 8連接,以接受前級遠钍提鈿Qχ ^ 2 A楚一 < g i U吸連、π模組3 i i輪之控制信號,而 由第°又疋用連〜模組(Pb〇/ADl一0〜PM5/AD2 5 ) 3 1 3 及第二設定用連結模組(Pa〇/DATA1—〇~ρ& 4接收資料; ;d 1 松一輸出控制電路3 1 8,以控制上述第一設定用連社 ;組_(◦〜PM謂_5) 313及第二設 括:PJ〇/DATAl〜0~Pal5/RD2n) 3 1 4 之資料輸出,包 理:罟;^庫管理裝置(SIP〇) 3 2 4及連接資料庫管 Η Ϊ ^ μ問鎖裝置⑽Ch ) 3 2 5所構成,另於 w = ί置(Utch) 3 2 5連接一顯示控制單元3 2 3, 次接控制上述擴充點狀態顯示之發光元件4動作,上述 二料庫:理裝置324透過開關元件3291、3 2 92 ,,信號輸人端(Dck) 3 2 6及資料傳輸端(Di ) 3 料傳輪Ϊ 元件3 2 9 3連接資料輸入端’並在資 元件^ 3 2 7與資料輸入端間利用二串接之開關 (L 2 9 4 ' 3 2 9 5進行訊號連接控制,該閂鎖裝置 atch ) 3 2 2透過開關元件3 2 9 6與LD訊號端3 2Page 13 1304931 V. INSTRUCTIONS (9) = = Γ = member 4 action, the above output/input channel switching controller (PISG) 3 2 1 through switching element 3 2 4 b. and pulse signal input terminal (Dck 3 2 6 and the connection of the core: two switching elements 3 2 4 3 connection data transmission and transmission two pieces fI 4 4, ^ 7 and the data input terminal using two serial switches 2 4 5 for signal connection control, the latch The device a is connected to the LD signal terminal 3 -8 through the switching element 3 2 4 6 to receive the control signal of the front stage remote control χQχ ^ 2 A Chu 1 < gi U suction connection, π module 3 ii wheel, and The connection module (Pb〇/ADl_0~PM5/AD2 5) 3 1 3 and the second setting connection module (Pa〇/DATA1—〇~ρ& 4 receiving data; ;d 1 Songyi output control circuit 3 1 8 to control the above-mentioned first setting for the company; group_(◦~PM#5) 313 and the second setting: PJ〇/DATA1~0~Pal5/RD2n) 3 1 4 data output, package: 罟; ^ library management device (SIP 〇) 3 2 4 and connection database tube Ϊ ^ μ question lock device (10) Ch) 3 2 5, and w = ί (Utch) 3 2 5 connection one display control unit 3 2 3. The operation of the light-emitting element 4 for controlling the state of the extended point is controlled in the second step, and the two-package: the processing device 324 passes through the switching elements 3291, 3 2 92, the signal input terminal (Dck) 3 26 and the data transmission end (Di 3 Material transfer rim Element 3 2 9 3 Connect the data input terminal ' and use the two-series switch (L 2 9 4 ' 3 2 9 5 for signal connection control between the component ^ 3 2 7 and the data input terminal, The latching device atch ) 3 2 2 transmits the switching element 3 2 9 6 and the LD signal terminal 3 2

第14頁Page 14

1304931 五、發明說明(ίο) ^ ^—- 8連接’以接受前級連結模組3 1Ί輸入之控制信號而 由第一設定用連結模組(Pb0/AD1-0~Pbl5/AD2_5 ) 3 1 3 .及第二設定用連結模組(Pa〇/DATA1 —〇〜Pal5/RD2n) 3工 4輸出資料; ' 一計數器,與上述硬體模式設定連結模組連接產生計 數信號及,一轉變控制致能信號(SH ),以單線方式連^ 主機2 ’或者上、下級擴充機3與電源信號端Vcc,以提 高通訊控制速度。1304931 V. INTRODUCTION OF THE INVENTION (ίο) ^ ^—- 8 Connection 'The first setting connection module (Pb0/AD1-0~Pbl5/AD2_5) 3 1 to accept the control signal input from the front-end connection module 3 1Ί 3. and the second setting connection module (Pa〇/DATA1_〇~Pal5/RD2n) 3 work 4 output data; 'a counter, connected with the above hardware mode setting connection module to generate a count signal and a transition control The enable signal (SH) is connected to the host 2' or the upper and lower expansion units 3 and the power signal terminal Vcc in a single line manner to improve the communication control speed.

根據上述本發明之PLC擴充機與主機之多模式連接通 訊介面之架構設計,其中,設於擴充機3之通訊介面3 暨積體電路及其多數功能設定的連結模組,已定義了 =同=充機型態及线訊連接模式,各㈣之擴充機都 =㈣通訊介面3 1及其多數功能設定的連結模組,以 社接2主機2,或者上、下一級之擴充機3形成通訊連 點數擴充之硬體設定應用上,亦可直接利用 =面3 i暨積體電路之第一及第二設定用連結模組 於、μ、3 1 4依需求設定"〇點數擴充接腳;而主機2 :初.。化時’能由其通訊介面2 1讀取某一判斷模組 、容i^stGmD-mstoG〜2)之信號,以判斷擴充機型式 訊介:^輸出一定位值至擴充機3,各擴充機3依其通 位值接收主機’或者上一級擴充機3轉換輪出之定 ;自動判斷允許或隔離主機2所發送之資肖,或 丁臀存於記憶單元3 3之資料存取。 又,本發明之PLC擴充機與主機之多模式通訊介面與 1304931 五、發明說明(11) 各擴充機型態之連接與資料存取模式應用方法,包括. 於串列數位點擴充機功能模式(DI/D0模式),請參閱第 -三及六圖所示,擴充機3利用其通訊介面3 1暨積〃體電路 之硬體模式設定連結模組(InModeO〜5 & 0DEM1〜3) 3 1 5 ’設定其擴充機型態、容量與定位值後,利用前、 連結模組3 1 1、3 1 2連接主機2或者上、下—級L擴 充機3,形成主機2與多數擴充機3間之串列通訊連接,、 並由硬體設計人員依據I/O擴充點數接腳需求,由通訊介 面3 1之第一設定用連結模組(Pbo/AD1_〇〜PM5/ad2° ^丨) 3 1 3及4第二設定用連結模組(pa0/DATAnPal5/^2n )314設定I/O點數擴充; 接著,主機2執行一初始化動作,由其通訊介面2工 讀取某一判斷模組(D_inst0〜2〜2〕之信號, 以判斷所連接之擴充機型式、容量,確認主機2與°多數擴 充機3間之連接與作動正常,當主機2或者由上一級擴充 機3輸出一定位值(C0DE),由擴充機3自動判斷允= 隔離主機2所發送之資料,在一擴充機3為允許之判斷時 ,由其輸入控制電路3 i 7及一輸出控制電路3丄8制 與主機2間的資料讀取與輸出。 二 於串列特殊(非數位點)擴充機功能模式 f )既明參閱第七、八圖所#,擴充機3利用其通訊介面 1 一積體電路之硬體模式設定連結模組(InM〇de〇〜5 & 0ΜΜ卜3J 315,設定其擴充機型態、容量與定位值 ’利用前、後級連結模組3 1 1、3 1 2連接主機2或者According to the architecture design of the multi-mode connection communication interface between the PLC expansion machine and the host computer of the present invention, wherein the communication interface 3 of the expansion machine 3 and the integrated circuit and the connection module of most of the function settings have been defined = the same = Charger type and wire connection mode, each (4) expansion machine = (4) Communication interface 3 1 and most of the function setting connection module, with the community 2 host 2, or the upper and lower level expansion machine 3 For the hardware setting application of communication connection point expansion, you can also directly use the first and second setting connection modules of the face 3 i and integrated circuit, μ, 3 1 4 according to the demand setting "〇 points Expansion pin; and host 2: initial. When the time is 'can read the signal of a certain judgment module, the capacity i^stGmD-mstoG~2) from the communication interface 2 1 to judge the expansion type message: ^ output a positioning value to the expansion machine 3, each expansion The machine 3 receives the host's or the upper-level expansion machine 3 according to its pass value; automatically determines whether to allow or isolate the information sent by the host 2, or the data access of the buttocks stored in the memory unit 33. Moreover, the multi-mode communication interface of the PLC expansion machine and the host of the present invention is 1304931. 5. Description of the invention (11) The connection method of the expansion type and the data access mode application method, including: the serial number expansion function mode (DI/D0 mode), please refer to the third and sixth figures, the expansion machine 3 uses its communication interface 3 1 and the hardware mode setting connection module (InModeO~5 & 0DEM1~3) 3 1 5 'Set the expansion type, capacity and positioning value, use the front, connection module 3 1 1 , 3 1 2 to connect the host 2 or the upper and lower - level L expansion machine 3 to form the host 2 and the majority expansion The serial communication connection between the three machines, and the hardware designer according to the I/O expansion point pin requirements, the first setting connection module of the communication interface 31 (Pbo/AD1_〇~PM5/ad2) ° ^丨) 3 1 3 and 4 second setting connection module (pa0/DATAnPal5/^2n) 314 to set the I/O point expansion; Next, the host 2 performs an initialization operation, which is read by its communication interface 2 The signal of a certain judgment module (D_inst0~2~2) to judge the connected expansion type and capacity The connection and operation between the host 2 and the majority expansion machine 3 are normal. When the host 2 or the upper expansion machine 3 outputs a positioning value (C0DE), the expansion machine 3 automatically determines that the data transmitted by the host 2 is isolated. When the expansion machine 3 is in the judgment of permission, the data input and output between the input control circuit 3 i 7 and an output control circuit 3丄8 and the host 2 are made. Second, the special (non-digit point) expansion machine is arranged in series. Function mode f) For the sake of reference to the seventh and eighth diagrams, the expansion unit 3 uses the communication interface 1 and the hardware mode setting connection module of the integrated circuit (InM〇de〇~5 & 0ΜΜ卜3J 315, setting Its expansion model, capacity and positioning value 'use the front and rear connection modules 3 1 1 , 3 1 2 to connect to the host 2 or

1304931 五、發明說明1304931 V. Description of invention

上、下一級擴充機3 ’以形成主機2與多數擴充機3,以 及位址線3 7、資料線3 8及定址線3 9之串列通訊連接 ’並由通訊介面3 1之第一設定用連結模組3 1 3中的 Pb0/AD1_0〜Pb9/AD1_9連接端’以及第二設定用連結模組 3 1 4中的PaO/DATAl一 〇〜PalO/RDln連接端,設定連接上 述記憶單元3 3之第一輸出端3 3 1 ,以形成主機端模式 之輸出設定; 接著,主機2執行一初始化動作 主機2或上一級擴The upper and lower stage expansion machines 3' form a serial communication connection between the host 2 and the plurality of expansion machines 3, and the address line 3 7 , the data line 3 8 and the address line 3 9 and are first set by the communication interface 3 1 The memory unit 3 is connected by the P0/AD1_0~Pb9/AD1_9 connection terminal in the connection module 3 1 3 and the PaO/DATA1_PalO/RDln connection terminal in the second connection module 3 1 4 The first output terminal 3 3 1 of 3 is used to form an output setting of the host terminal mode; then, the host 2 performs an initialization action of the host 2 or the upper level expansion

2使用串列之通訊介面 充機3之Dinst信號為(0),該擴充機3内之計數器〇丄 清除計數而歸零’並由讀取某一判斷模組(D_ins°t〇〜2 = St。!)〜2)信號’以判斷所連接之擴充機型式、容量, :機2與多數擴充機3間之連接與作動正常; 各擴充機3依其通訊介面3 接此撬 擴充機3轉換輪出之定位值收主機2或者上-級 2之資料存取,a巾,n自動判斷允許或隔離與主機 單元33!其主機:模=為允許之擴充機3連結記憶 換之暫存路徑模式與溝=機2間,以形成雙向資料交 換言之,由記憶單分.Q、,接’進行資料的讀取與寫入’ 提供一個資料的暫存位置,主機 料 資料 而擴充機3用主機 1來存取記憶單元3 3内暫存資 。 , 模式來存取記憶單元3 3内暫存 上述擴充機3與連 單元3 3所進行之眘M 機2透過通訊介面31及記憶 2於初始化動作,主機 二^程’請參閱第九所示’主機 或上一級相鄰擴充機3之Dinst2 Using the serial communication interface charger 3, the Dinst signal is (0), the counter in the expansion machine 3 〇丄 clears the count and returns to zero' and reads a certain judgment module (D_ins°t〇~2 = St.!)~2) Signal 'To judge the connected expansion type and capacity, the connection and operation between the machine 2 and most expansion machines 3 are normal; each expansion machine 3 is connected to the expansion machine 3 according to its communication interface 3. The positioning value of the conversion round is received by the host 2 or the data access of the upper level 2, a towel, n automatically determines whether to allow or isolate the host unit 33! Its host: mode = for the expansion machine 3 to allow the memory to be temporarily stored Path mode and groove = machine 2, in order to form a two-way data exchange, by memory single point .Q,, then 'read and write data' to provide a temporary location of data, host material data and expansion machine 3 The host 1 is used to access the temporary storage in the memory unit 3 3 . , mode to access the memory unit 3 3 temporarily stores the expansion machine 3 and the connection unit 3 3, the careful M machine 2 through the communication interface 31 and the memory 2 in the initialization action, the host two steps 'see the ninth 'Dinst of the host or the next-level adjacent expansion machine 3

1304931 五、發明說明(13) 信號為(0)(如流程4 〇 〇),擴充機内之計數器3 1 9清 除計數而歸零(如流程4 0 2 ),選擇轉變控制致能信號 • SHen之位移暫存器34(如流程404),接著,主機2於 確認選擇之位移暫存器3 4後,Dinst信號轉換為(3)(如 流程4 0 6 ),並由脈沖訊號Dck輸出脈波,資料傳輸線DI 輪出晶片選擇位址(如流程4 0 8 ); 又當LD訊號=1時,脈沖訊號Dck再輸出一個脈波(如 流程4 1 〇),使上述之晶片選擇位址存入致能準位信號 ♦ ΕΝ暫存器3 5(如流程4 1 2) ’同時,該計數器3 1 9之 岢择加▲ 1 (趴流程4 1 4 ),然後,脈沖訊號Dck輸出脈波 ’資料傳輸線DI輸出記憶單元3 3選擇位址訊號(如流程1304931 V. Description of invention (13) The signal is (0) (as in Flow 4), the counter in the expansion unit 3 1 9 clears the count and returns to zero (eg, flow 4 0 2 ), selects the transition control enable signal • SHen The shift register 34 (step 404), then, after the host 2 confirms the selected shift register 34, the Dinst signal is converted to (3) (eg, flow 4 0 6 ), and the pulse signal is output by the pulse signal Dck. The data transmission line DI rotates the chip selection address (for example, the process 4 0 8); when the LD signal=1, the pulse signal Dck outputs a pulse wave (for example, the flow 4 1 〇), so that the above wafer selection address is stored. Into the enable level signal ♦ ΕΝ register 3 5 (such as flow 4 1 2) ' At the same time, the counter 3 1 9 choice plus ▲ 1 (趴 process 4 1 4), then, pulse signal Dck output pulse wave 'Data transmission line DI output memory unit 3 3 select the address signal (such as the process

4 1 6) ’當Dinst信號為(3)時.(如流程4 1 8),於該LD 訊號=1,脈沖訊號Dck輸出一個脈波(如流程4 2 〇 ),使 上述之記憶單元3 3選擇位址存入位址暫存器3 6(如流 程4 2 2),該s十數器3 1 9之計數再加1(如流程4 2 4 )’當Dinst信號為(6)時(如流程4 2 6 ),LD訊號,脈 沖訊號Dck輸出一個脈波(如流程4 2 8 ),將纪惰罝-Q 3内儲存之資料讀出(如流程43〇),然後:脈;早:號3 ck輸出脈波,使上述由記憶單元3 3讀出之資料, 料傳輸線DI輸出(如流程4 3 2 ),計數器3丄9之 再 =如流程4 3 4),接著,進行記憶單元3 3 有資料之判斷(如流程4 3 6 ),並在划齡支也-欠^ 艺 ^ J 亚在判斷為無資料之蚌果 而、束讀取流輕(如流程4 3 8 )。 、Ό 又,上述擴充機3與連接主機2透過通訊介面34 1 6) 'When the Dinst signal is (3) (as in the flow 4 1 8), the pulse signal Dck outputs a pulse wave (such as the flow 4 2 〇) to make the above-mentioned memory unit 3 3 select the address to be stored in the address register 3 6 (as in the process 4 2 2), the count of the s-numberer 3 1 9 is further increased by 1 (as in the process 4 2 4 ) 'When the Dinst signal is (6) (eg, flow 4 2 6 ), LD signal, pulse signal Dck output a pulse wave (such as process 4 2 8 ), read the data stored in Ji 罝 罝 -Q 3 (such as process 43 〇), then: pulse; Early: No. 3 ck outputs a pulse wave, so that the above-mentioned data read by the memory unit 3 3 is outputted by the material transmission line DI (for example, flow 4 3 2 ), and the counter 3丄9 is again = as in the process 4 3 4), and then, Memory unit 3 3 has the judgment of the data (such as the process 4 3 6 ), and in the ageing branch also - owe ^ art ^ J Asia in the judgment of no data, and the beam reading stream is light (such as the process 4 3 8 ). Ό, the expansion machine 3 and the connection host 2 are transmitted through the communication interface 3

surface

第18頁 1304931 五、發明說明(14) 記,單元3 3所進行之資料寫 ,其訊號與控制流程大致與:f閱第十圖所不 .相同’所不同處係在該對記憶單元3 ; 3 〇 ◦〜4 2 4 係當Dinst信號為(6)時(如流〜程 資料寫入控制, '出脈波’同時,資料傳輸線DI輪出欲〇)丄脈,號?輸 資料(如流程4 4 2 ).接罢T n 5己憶單元3 3之 出-個脈波(如流程4 4 ^ 訊號=1 ’脈沖訊號Dck輸 3 3(如流程446),計數〇資枓存入纪憶皁兀 4 4 8)·^^ 、杜/十數1^319之計數再加1(如流程 行^單元3 3内是否還有資料之判 〇 並在判斷為無資料之#I ^ 流程(如流程4 5 2 )。 只π < π果而、乡口采讀取 掇二並f ί殊(非數位點)擴充機功能模式(RAM讀取 二而既閱第十一、十二圖所示,擴充機3利用其通 ' —積體電路之硬體模式設定連結模組 六15 & 〇DElsn〜3 )315,設定其擴充機型態、 谷L、定位值後,利用前、後級連結模組3 1 1、3 1 2 連接主機2 ’ $者上、下一級之擴充機3,以形成主機2 與多數擴充機3間位址線3 7 a、資料線3 8 a及定址線 3 9 a之並列通訊連接,並由通訊介面3 1之第一設定用 連結模組3 1 3中的Pb〇/ADl-0〜Pb9/AD1_9連接端,以及 第二設定用連結模組3 1 4中的PaO/DATAl一〇〜PalO/RDln 連接端’設定連接上述記憶單元3 3之第一輸出端3 3 1 ’以形成主機端模式之輸出設定,同時由通訊介面31之 '第一设定用連結模組3 1 3中的PM0/AD2 一〇~Pbl5/AD2_5Page 18 1304931 V. Description of Invention (14) Note, the data written by unit 3 3, the signal and control flow is roughly the same as: f read the tenth figure. The same 'the difference is in the pair of memory unit 3 ; 3 〇◦~4 2 4 When the Dinst signal is (6) (such as the flow ~ path data write control, 'out of the pulse wave' at the same time, the data transmission line DI turns out the desire) 丄 pulse, number? Data loss (such as process 4 4 2 ). Stop T n 5 recall unit 3 3 out of a pulse (such as process 4 4 ^ signal = 1 'pulse signal Dck lose 3 3 (as in process 446), count 〇 枓 枓 纪 纪 兀 兀 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十 十#I ^ flow of the data (such as the process 4 5 2 ). Only π < π fruit, the township to read the 掇 two and f ί (non-digit point) expansion machine function mode (RAM read two and read In the eleventh and twelfth figures, the expansion machine 3 sets the expansion mode, the valley L, by using the hardware mode setting connection module six 15 & 〇DElsn~3 315 of the integrated circuit. After the positioning value is used, the front and rear connection modules 3 1 1 and 3 1 2 are used to connect the expansion machine 3 of the upper and lower levels of the host 2' to form the address line 3 7 a between the host 2 and the majority of the expansion machine 3. a parallel communication connection between the data line 3 8 a and the address line 3 9 a, and the Pb〇/ADl-0~Pb9/AD1_9 connection end in the first setting connection module 3 1 3 of the communication interface 3 1 , and PaO/DA in the second setting connection module 3 1 4 The TAl_PalO/RDln connection terminal 'sets the first output terminal 3 3 1 ' of the memory unit 3 3 to form the output setting of the host mode, and the first setting connection module of the communication interface 31 PM0/AD2 in 3 1 3~Pbl5/AD2_5

第19頁 1304931 五、發明說明(15) 及DrO/AD2_6、DrO/AD2_7等連接端及第二設定用連結模 組3 1 4中之Pa8/CSln〜Pal5/RD2n連接端、以及從機端模 -式連結模組(LED/DATA2_0〜LED/DATA2_7 ) 3 1 6 等,設 定連接上述記憶單元3 3之第二輸出端3 3 2,形成主機 端模式輸出設定;Page 19 1304931 V. Invention description (15) and the connection terminals of DrO/AD2_6, DrO/AD2_7, and the connection terminals of the second setting connection module 3 1 4, the Pa8/CSln~Pal5/RD2n connection end, and the slave end mode - type connection module (LED / DATA2_0 ~ LED / DATA2_7) 3 1 6 and so on, set the second output terminal 3 3 2 of the above memory unit 3 3 to form a host mode output setting;

擴充機3於開機時執行一晶片定址程序,主機2執行 一初始化動作,接著,主機2端讀取某一判斷模組 (D—instO〜2或D-instoO〜2)之訊號’以判斷所連接之擴 充機型式、容量,確認主機2與多數擴充機3間之連接與 作動正常’然後’當主機2或者由上一級擴充機3轉換輸 出一定位值(CODE ),各擴充機3依其通訊介面31接收 主機2 ’或者上一級擴充機3轉換輸出之定位值,自動判 斷允許或隔離與主機2之資料存取,其中,該判斷為允許 之擴充機3即使其記憶單元3 3與主機2間形成雙向資^ 交換之暫存路徑模式與溝通連接,換言之,由記憶單元3 3提供一個資料的暫存位置,主機2使用主機端模式來存 取記憶單元3 3内暫存資料,而擴充機3用從機端模式^ 上述之晶片定址程序’僅需於擴充機3開機時執行— 次,其執行流程請參閱第十三圖所示,由微處理器3 2 入位址5 1 2資料(0)(如流程5 0 0 ),而執行轉變控制、’、 致能信號811^忌之位移暫存器3 4 3及位址暫存器(^(^ ss register ) 3 6之清除動作(如流程5 〇 2 ),接著,6 由微處理器3 2寫入位址5 1 2資料(1)(如流程5 〇 4’)The expansion machine 3 executes a wafer addressing procedure at boot time, the host 2 performs an initialization operation, and then the host 2 reads a signal of a certain judgment module (D-instO~2 or D-instoO~2) to determine the location. Connect the expansion type and capacity, confirm the connection between the host 2 and most of the expansion machines 3 and operate normally 'then' when the host 2 or the upper level expansion machine 3 converts and outputs a positioning value (CODE), each expansion machine 3 according to its The communication interface 31 receives the positioning value of the conversion output of the host 2' or the upper expansion machine 3, and automatically determines whether to permit or isolate the data access with the host 2, wherein the determination is that the extension machine 3 is allowed even if its memory unit 3 3 and the host 2 temporary storage path modes and communication connections forming a two-way exchange, in other words, a temporary storage location of the data is provided by the memory unit 33, and the host 2 uses the host-side mode to access the temporary storage data in the memory unit 33, and The expansion machine 3 uses the slave mode. The above-mentioned wafer addressing procedure 'only needs to be executed when the expansion machine 3 is powered on—the execution flow is shown in the thirteenth figure, and the microprocessor 3 2 enters the address 5 1 2 data (0 ) (eg, process 500), and perform the transition control, ', the enable signal 811^ the displacement register 3 4 3 and the address register (^(^ ss register) 3 6 clear action (such as Flow 5 〇 2 ), then, 6 is written by the microprocessor 3 2 to address 5 1 2 data (1) (eg, flow 5 〇 4')

第20頁 1304931Page 20 1304931

五、發明說明(16) ’並執行貢料傳輪線齡θ 5 〇 fn,否等於1之判斷(如流程 5 ϋ 6)田判斷結果為1,則位址暫存酱广 ister) 3 6 執杆 a ii (Address reg • 轨仃加1運作(如流程5〇r、,缺你机/ 址暫存器(Address register) 3 8)…、後,執行位 ·(如流程5 1 m * :g ) 3 6是否第16次之判斷 、如流扛b 1 〇),當流程5 〇 6判 執行流程5 1 〇之判斷,计在剎齡沾 、 、直接 “i:結束(如流程512),但若判斷結果為 定二;回到流程50 4繼續執行至符合設 》义1來1千Of 兀成晶片定址而結束。 2丄t述擴充機3利用其通訊介面3 1並列連接主機 ^ ^ 、下一級之擴充機3間之資料存取運作路程, 租 > 閱第十四圖所示,微處理器3 2寫入位址5丄2資料 2+ ^片位址(如流程6 〇 〇),將上述晶片位址存入現時位 址,存器(Address register ) 3 6 a (如流程 6 〇 2 ), 接者執行現時位址暫存器(Address regi s ter ) 3 6 a 與位^址暫存器(Address register ) 3 6是否相等之判斷 ▲如流程6 〇 4 ),當判斷結果是相同者,由微處理器3 2 讀取或寫入資料至記憶單元3 3 (如流程6 〇 6 ),然後完 成存取流程而結束(如流程6 〇 8 ),又,當判斷結果是不 相同者’則不做任何資料存取動作而直接結束。 由於本發明之PLC擴充機與主機之多模式連接通訊介 面’以積體化電路設計通訊介面,而於該通訊介面上定義 了各種不同擴充機型態及其多各功能設定之連結模組,… 搭配微處理器使主機與各種擴充機型態間之通訊連接, 以 以V. Description of invention (16) 'And perform the judgment of the age of the tributary transmission line θ 5 〇fn, no equal to 1 (as in the process 5 ϋ 6), the judgment result is 1, the address is temporarily stored in the sauce) 3 6 Pole a ii (Address reg • track plus 1 operation (such as process 5〇r, lack of your address register (Address register) 8 8)..., after execution bit · (eg flow 5 1 m * :g ) 3 6 is the 16th judgment, such as rogue b 1 〇), when the process 5 〇6 judges the execution of the process 5 1 〇 judgment, counted in the brakes, direct "i: end (such as process 512 ), but if the result of the judgment is fixed; return to the process 50 4 to continue to the implementation of the meaning of 1 to 1 thousand Of into the wafer address and end. 2丄t expansion machine 3 using its communication interface 3 1 parallel connection host ^ ^, the data access operation distance between the expansion machine 3 of the next level, rent > As shown in the fourteenth figure, the microprocessor 3 2 writes the address 5丄2 data 2+ ^chip address (such as the flow 6 〇〇), the above-mentioned chip address is stored in the current address, the address register (6 8 a (such as the process 6 〇 2), the receiver executes the current address register (Address regi s ter ) 3 6 a Judging whether or not the address register 3 6 is equal ▲ If the result of the judgment is the same, the data is read or written by the microprocessor 3 2 to the memory unit 3 3 ( If the process 6 〇 6 ), then complete the access process and end (such as process 6 〇 8), and when the judgment result is not the same, then do not do any data access action and directly end. Because of the PLC expansion of the present invention The multi-mode connection communication interface between the machine and the host computer uses the integrated circuit design communication interface, and defines various connection modes of different expansion machine types and various function settings on the communication interface, ... Communication connection between the host and various expansion models to

第21頁 1304931 五、發明說明(j7) 的/〇點數擴充具有_致適用之通訊介面’可簡易、方便 If訊介面之積體電路的輸出設定用連結模組,依據點 求設定I/O點擔充數量,改善設計人員需分別在硬體 f式及I/O點數擴充上作不同硬體設計及其時間浪費 供使用者更簡便,低廉但ί/0點擴克方便之實用p 擴充機與主機之多模式連接通訊介面。 :時’利用於擴充機内設有至少一記憶單元,搭配積 ΐί:路;計之通訊介面應用於特殊擴充機連接,形成Ξ 向貝料父換之暫存路徑模式,可供主機與特殊 =雙 擴充機以並列主從方式傳遞資料。 數位 士述僅為本發明之較佳實施例而e,並非 〜 發明只施範圍。即凡依本發明申請專利範圍所 h本 化與修飾’皆為本發明專利範圍所涵蓋。 的均等變 1304931 圖式簡單說明 【圖式簡單說明】 第一圖係習知之通訊 第二圖係本發明之组 第二圖係本發明通訊 -第四圖係本發明通訊 第五圖係本發明通訊 第六圖係本發明於串 輪出/入示意圖。 >第七圖係本發明於串 路内部電路連接示意 $八圖係本發明於串 ^部電路連結架構 九圖係本發明於串 东構讀取流程圖。 十圖係本發明於串 ^架構讀取流程圖。 十一圖係本發明於 ^路内部電路連接示 十二圖係本發明於 ^路内部電路連結架 十二圖係本發明於 略架構晶片定址流 十四圖係本發明於 電路架構資料存取流 介面架構方塊示意圖 成架構示意圖。 介面之積體電路 介面之輸入控制 介面之輸出控制 列數位點擴充機 腳位架構示意圖。 電路方塊圖。 電路方塊圖。 功能模式應用之資料 %特殊擴充機功 圖。 %特殊擴充機功 示意圖。 列特殊擴充機功 能模式應用之積體電 月匕板式應用之積體電 能模式應用之積體電 歹·!特殊擴充機功能模式應用之積體電 並列特殊擴充機 意圖。 &列特殊擴充機 構示意圖。 串列特殊擴充機 程圖。 串列特殊擴充機 程圖。 功能模式應用之積體 功能模式應用之積體 功能模式應用之積體 功能模式應用之積體Page 21 1304931 V. Inventive Note (j7) The expansion of the /〇 point has the interface of the output interface that can be easily and conveniently used for the integrated circuit of the If interface, and I/I can be set according to the point. The number of points O is sufficient to improve the designer's need to make different hardware designs and time waste on the hardware f-type and I/O points expansion for the user to be more convenient, low-cost but easy to use. p Expansion mode and host multi-mode connection communication interface. :Time's use of at least one memory unit in the expansion machine, with the accumulation of ΐ: road; the communication interface is applied to the special expansion machine connection, forming a temporary storage path mode for the shell father, for the host and special = Dual expansion machines deliver data in a side-by-side master-slave manner. The digital description is only a preferred embodiment of the present invention, and e is not the scope of the invention. That is, the scope and the modifications of the patent application scope of the present invention are covered by the scope of the invention. Uniform change 1304931 Brief description of the drawings [Simplified description of the drawings] The first diagram is a communication of the prior art The second diagram is the second diagram of the invention The communication of the invention - The fourth diagram is the fifth diagram of the communication of the invention The sixth diagram of the communication is a schematic diagram of the invention in the serial wheel. > The seventh figure is a schematic diagram of the internal circuit connection of the present invention in the series. The eight-picture is the serial connection structure of the present invention. The tenth figure is a flow chart of the invention in the string architecture. The invention is based on the internal circuit connection diagram of the invention. The invention is based on the internal circuit connection frame of the invention. The flow interface architecture block diagram is a schematic diagram of the architecture. The interface of the integrated circuit of the interface is controlled by the interface. The output control of the interface is shown in the figure. Circuit block diagram. Circuit block diagram. Function mode application data % Special expansion machine diagram. % Special expansion machine diagram. The special expansion machine function mode application of the integrated body of the moon plate type application of the integrated energy mode application of the integrated body 歹·! Special expansion machine function mode application of integrated power Parallel special expansion machine Intent. & column special expansion mechanism diagram. Serial special expansion machine diagram. Serial special expansion machine diagram. The integration of the functional mode application The integration of the functional mode application The integration of the functional mode application

1304931 圖式簡單說明 【主要元件 本發明主要 .主機2 擴充機3 _發光元件4 通訊介面2 微處理器2 記憶單元3 >位移暫存器 EN暫存器。3 位址暫存器 現時位址暫 位址匯流排 資料匯流排 晶片位址匯 前級連結模 後級連結模 第一設定用 第二設定用 硬體模式設 從機端模式 輸入控制電 輸出控制電 計數器3 1 符號說明 元件符號 說明 1、 2 > 3 3 4 3 1 4 a 3 6 存器3 6 3 7、3 3 8、3 流排3 9 組3 1 1 組3 1 2 連結模組 連結模組 定連結模 連結模組 路3 1 7 路3 1 8 9 a 7 a 8 a 、3 組3 4 1 a1304931 Brief description of the diagram [Main components: Main body of the invention. Main unit 2 Expansion unit 3 _ Light-emitting element 4 Communication interface 2 Microprocessor 2 Memory unit 3 > Displacement register EN register. 3 address register current address temporary address bus data bus bar address address pre-stage connection mode post-stage connection mode first setting with second setting hardware mode set slave mode input control electric output control Electrical counter 3 1 symbol description component symbol description 1, 2 > 3 3 4 3 1 4 a 3 6 memory 3 6 3 7 , 3 3 8 , 3 stream row 3 9 group 3 1 1 group 3 1 2 link module Connection module fixed connection module connection module road 3 1 7 way 3 1 8 9 a 7 a 8 a , 3 groups 3 4 1 a

13049311304931

第25頁Page 25

Claims (1)

日修(束3 #£ 94146081Daily repair (Bundle 3 #£ 94146081 1304931 六、申請專利範圍 、一種PLC擴充機與主機之客 置,包括 一主機,包含: ^ : 飛之夕拉式連接通訊介面裝 模組; 一通訊介面,具有一積體電路及其多 說功能設定連結 一微處理器,與上述通訊介面電性 至少一擴充機,包含: 接’ 一微處理器; 一記憶單元’電性連接上述微處理器; —通訊介面,與上述微處理器電性&接,具有一積體 電路及其多組功能設定連結模組; _其中,上述擴充機以通訊介面之積體電路定義各種不 同的擴充機型態及其通訊連接模式,以連接上述主機及另 一相鄰擴充機形成通訊連結,並利用積體電路之至少一功 能設定之連結模組,供依需求設定I /0點數擴充接腳,使 主機與各種擴充機型態間之通訊連接,以及丨/〇點數擴充 具有一致適用之通訊介面,以快速透過主機輸出之定位值 ’由擴充機自動允許或隔離主機所發送之資料及進行暫存 於記憶單元之資料存取。 2、 如申請專利範圍第1項所述的PLC擴充機與主機 之多模式連接通訊介面裝置,其中,該主機通訊介面與該 擴充機通訊介面間更包括位址線、資料線及定址線之串、 並列之其—方式連接。 3、 如申請專利範圍第1項所述的PLC擴充機與主機1304931 Sixth, the scope of application for patents, a PLC expansion machine and the host guest, including a host, including: ^: Feizhi Xi pull connection communication interface module; a communication interface, with an integrated circuit and more The function setting is connected to a microprocessor, and the communication interface is electrically connected to at least one expansion machine, comprising: a 'microprocessor; a memory unit electrically connected to the microprocessor; a communication interface, and the microprocessor Sex & connection, having an integrated circuit and a plurality of sets of function setting connection modules; _ wherein the expansion machine defines various expansion type and communication connection mode by using the integrated circuit of the communication interface to connect the above The host and another adjacent expansion machine form a communication link, and use at least one function setting connection module of the integrated circuit to set the I / 0 point expansion pin according to requirements, so that the host and various expansion modes are Communication connection, and 丨/〇 point expansion have a consistently applicable communication interface to quickly pass the positioning value of the host output' automatically enabled or isolated by the expansion unit The data sent by the host and the data access temporarily stored in the memory unit. 2. The multi-mode connection communication interface device of the PLC expansion machine and the host computer described in the first application of the patent scope, wherein the communication interface of the host and the communication interface of the expansion device further comprise a address line, a data line and an address line. String, juxtaposed by its way. 3. As shown in the patent extension, the PLC expansion machine and host 第26頁 304931 案號.Q414fi08l 六、申請專利範圍 a_修正f /_Page 26 304931 Case No. Q414fi08l VI. Application for Patent A_ Correction f / _ 之多模式連接通訊介面裝置,其中,該主機通訊介面與該 擴充機通訊介面係為相同之積體電路與功能連結模組設 計。 4、如申請專利範圍第1項所述的PLC擴充機與主機 之多模式連接通訊介面襞置,其中,該擴充機之通訊介面 具有一積體電路,包括: —前級連結模組,以電性連接主機或者上一級擴充機 -第 數擴充以 〜石更 柃初始化 :值與轉 置之定位 資料存取 ''從 ,以電性 由擴充機 , 〜輪 4之資料 趿連結模組, —、二設定用 及外部連接, 體模式設定連 判讀,並電性 換輸出定位值 值選擇主機是 9 機端模式連結 連接發光元件 進行記憶單元 入控制電路, 讀取輸入; 出控制電路, 用連結模組之 如申請專利範 與下一級擴充機電性連接; 連結模組,供依據需求設定I /0點 執行資料讀取及輸出; 結模組,以設定擴充機型態供主機 連接取得主機或者上一級輸出之定 送至下一級擴充機,以及依分配位 否可連接,或者透過記憶單元進行 模組,配合擴充機型態與連接模式 掃瞄輸出顯示各數位點狀態,或者 暫存資料之存取; 以控制上述第一,二設定用連結模 渔〜輪 第二敦定 5The multi-mode is connected to the communication interface device, wherein the host communication interface and the expansion device communication interface are the same integrated circuit and function connection module design. 4. The multi-mode connection communication interface of the PLC expansion machine and the host computer according to the first aspect of the patent application scope, wherein the communication device mask of the expansion machine has an integrated circuit, comprising: a front-end connection module, Electrically connected to the host or the upper level expansion machine - the first expansion is initialized with ~ stone 柃: value and transposition of the positioning data access ''from, electrically by the expansion machine, ~ wheel 4 data 趿 link module, -, two setting and external connection, body mode setting and interpretation, and electrical output output positioning value selection host is 9 machine mode connection connected to the light-emitting element for memory unit into the control circuit, read input; output control circuit, with The connection module is as follows: the patent application model and the next-level expansion electromechanical connection; the connection module for setting the I/0 point to perform data reading and output according to the requirements; and the junction module to set the expansion mode for the host connection to obtain the host Or the output of the upper level is sent to the next level expansion machine, and whether it can be connected according to the allocation position, or the module is connected through the memory unit, and the expansion type and connection are matched. Scan type display for each digit output point state or the temporary access information; to control the above-described first and second set with a second coupling wheel London ~ fishing die set 5 以控制上述第一設定用連結模組及 資料輪出。 圍第4項所述的PLC擴充機與主機 p〇49U案號顯咖 a修>㈣他修'&l 六、申請專利範圍 之多模式連接通訊介面裝置,其中,該擴充機之通訊介面 更包括一轉變控制信號,以單線方式電性連接主機及相鄰 擴充機與電源信號端V cc。 6、如申請專利範圍第&項所述的PLC擴充機與主機 之多模式連接通訊介面裝置,其中,該擴充機之通訊介面 更包括一計數器’與上述硬體模式設定連結模組電性連接 產生計數信號。 7、如申請專利範圍第4項所述的PLC擴充機與主機 之多模式連接通訊介面裝置,其中,該前級連結模組更包 括:設有至少一判斷模組,以配合不同型態擴充機電性連 接與透過訊號讀取而辨識其型態設定。 8、、如申請專利範圍第4項所述的plc擴充機與主機 之多模式連接通訊介面裝置,其中,該後級連結模組更包 括.5支有至少一判斷模組,以配合不同型態擴充機電性連 接與透過訊號讀取而辨識其型態設定。 9、、如申請專利範圍第4項所述的PLC擴充機與主機 之多模式連接通訊介面裝置,其中,該輸入控制電路包括 有.一輸出/入通道開關量控制器(PI SO )及一閂鎖裝置 jL_atch )/斤_構成,另於該閂鎖裝置“以以)電性連接一 動:控制單7〇 ’以控制上述擴充點狀態顯示之該發光元件 鎖梦里述該輪出/入通道開關量控制器(PIS0 )及該閃 $ 瑕置(L a t c h )雷,14& . 電陡連接並接受該前級連結模組輸入之 炫制信號,而由該第— 也 /弟 、二設定用模連結模組接收資料。 >中專利範圍第9項所述的PLC擴充機與主The first setting connection module and the data wheel are controlled to be controlled. The PLC expansion machine and the host p〇49U case number shown in the fourth item are repaired. (4) He repairs &l 6. The multi-mode connection communication interface device of the patent application scope, wherein the expansion machine communication The interface further includes a transition control signal electrically connected to the host and the adjacent expander and the power signal terminal V cc in a single line manner. 6. The multi-mode connection communication interface device of the PLC expansion machine and the host computer as claimed in the application scope of the patent scope, wherein the communication interface of the expansion machine further comprises a counter and the above-mentioned hardware mode setting connection module electrical property. The connection produces a count signal. 7. The multi-mode connection communication interface device of the PLC expansion machine and the host computer according to the fourth aspect of the patent application, wherein the pre-connection module further comprises: at least one judgment module is provided to cooperate with different types of expansion Electromechanical connections and identification of their type settings by signal reading. 8. The multi-mode connection communication interface device of the plc expansion machine and the host computer as claimed in claim 4, wherein the rear connection module further comprises at least one judgment module for matching different types. The state expands the electromechanical connection and recognizes its type setting by reading the signal. 9. The multi-mode connection communication interface device of the PLC expansion machine and the host computer according to claim 4, wherein the input control circuit comprises: an output/input channel switch quantity controller (PI SO ) and a The latching device jL_atch is configured to be electrically connected to the latching device: the control unit 7〇' controls the light-emitting component of the extended-point state display to lock the round-trip/in The channel switch quantity controller (PIS0) and the flashing device (Latch) mine, 14&. electric steep connection and accepting the dashing signal input by the pre-connection module, and by the first - also / brother, two Set the module connection module to receive data. > PLC expansion machine and main program described in item 9 of the patent scope 1304931 _案號 94UR0R1 六、申請專利範圍 機t多模式連接通訊介面裝置,其中’該輸出/入通道開 關=控制器(P丨S〇 )更包括:分別透過一開關元件與前級 連結模組之脈波信號輸入端Dck及資料傳輸端電性連接、 $由該開關元件電性連接一資料輸入端,並在該資料傳輸 端D I與該資料輸入端間利用二串接之該開關元件進行訊號 電^連接控制’該閂鎖裝置(Latch )透過該開關元件與 該則級連結模組之LD訊號端電性連接,以接受該前級連結 模組輸入之控制信號。 ° 1 1 '如申請專利範圍第4項所述的pLc擴充機與主 $之夕模式連接通訊介面裝置,其中,該輸出控制電路包 $有:一資料庫管理裝置(SIP0)及該閃鎖裝置 Latch )所組成,另於該問鎖裝置“以以)電性連接一 =不控制單兀,以控制上述擴充點狀態顯示之該發光元件 $作,上述該資料庫管理裝置及該閂鎖裝置(Latch)電 一連接,接受該前級連結模組輸入之控制信號,而由該第 、二設定用連結模組輸出資料。 1 2、如申請專利範圍第1 1項所述的ριχ擴充機與 之多模式連接通訊介面裝置,其中,該資料庫管理裝 S IP0 )更包括:分別透過該開關元件與該前級連結模 二η “虎輸入端Dck及資料傳輸端€性連接、另由-Γ, 70電性連接一資料輪入端,並在資料傳輸端DI與資 击别入端間利用二串接之該開關元件進行訊號電性連接控 制,該閂鎖裝置π a t r h、、泰 , 指,τ ^衣1 Uatch )透過該開關元件與該前級連結 模組之LD訊號端雷,w遠垃, 電丨生連接从接受該前級連結模組輸入之1304931 _Case No. 94UR0R1 VI. Patent application range multi-mode connection communication interface device, wherein 'the output/input channel switch=controller (P丨S〇) further includes: respectively through a switching element and the pre-connection module The pulse signal input end Dck and the data transmission end are electrically connected, and the switching element is electrically connected to a data input end, and the switching element is connected between the data transmission end DI and the data input end by using two serially connected switching elements. The latching device (Latch) is electrically connected to the LD signal end of the level connection module through the switching component to receive the control signal input by the preamplifier module. ° 1 1 'The pLc expansion machine and the main eve mode communication interface device according to item 4 of the patent application scope, wherein the output control circuit package $ has: a database management device (SIP0) and the flash lock The device is composed of a device Latch, and the device is electrically connected to the controller device for controlling the display of the expansion point state, the library management device and the latch. The device (Latch) is connected to receive the control signal input by the front-end connection module, and the first and second setting connection modules output data. 1 2. The ριχ expansion as described in claim 1 The machine and the multi-mode connection communication interface device, wherein the database management device S IP0) further comprises: respectively, through the switching element and the front-end connection module η "the tiger input terminal Dck and the data transmission end, the other connection The data transmission terminal is electrically connected to the data transmission terminal DI, and the signal connection is controlled by the two serially connected switching elements between the data transmission terminal DI and the resource input terminal. The latch device π atrh, Thai, refers to, τ ^ clothing 1 Uatch) through the switching element and the LD signal terminal of the front-end connection module, the remote connection, the electrical connection is accepted from the input of the front-end connection module 第29頁Page 29 _年 1月--i 六、申請專利範圍 控制信號。 13、如申請專利範圍第1項所述的PLC擴充機與主 機之多模式連接通訊介面裝置,其中,該記憶單元更包 括:具有一第一輸出端及一第二輸出端。 1 4、~種plc擴充機與主機之多模式連接通訊介面 通訊連接方法,係應用於主機與數位點擴充機之串列通訊 連接模式’其方法步驟包括: a )、擴充機由通訊介面之硬體模式設定連結模組, 没定其擴充機型態、容量與定位值; b)、由通訊介面前、後級模組接腳連接主機,或者 上、下一級擴充機,形成主機與多數擴充機間之串 電性連接; —T C )、利用通訊介面之第一及第二設定用連結模組机 疋I/O點數擴充及其接腳; 、、又 m f }主機執仃初始化動作,由通訊介面讀取某一判 斷J組之信號’以判斷所連接之擴充機型式、$量茅丨 主機與多數擴充機間之電性連接與作動正常; 確w 充機:)、主機及另—相鄰擴充機轉換輸m值至擴 士)、擴充機根據定位值判斷自备w△ 機所發送之資料。 動判斷允許或隔離立 1 5、一種PLC擴充機與主機之 通訊連接方法,係應用於主機鱼 '式連接通訊介面 接模式,其方法步驟包括:^特殊擴充機之串列通訊 a )、擴充機由通訊介面之硬體模式設定連結模組, 設定其擴充機型態、容量與定位值; b )、由通訊介面前、後級連結模組連接主機,或者 上、下-級之擴充機,形成主機與多數擴充機間位址線、 資料線及定址線之串列通訊連接; 二設定用連結模組設 形成主機端模式輪出 c)、利用通訊介面之第—及第 定與上述記憶單元之一輸出端連接, 設定; )、主機執行初始化動作,由通訊介面讀取某一判 斷模組之信號,以判斷所連接之擴充機型式、容量,確認 主機與多數擴充機間之連接與作動正常; e)、主機及另一相鄰擴充機轉換輸出一定位值至擴 充機; f ^ ;、擴充機根據定位值自動判斷允許或隔離主機與 記憶單元之資料存取; g )、擴充機根據定位值判斷允許與記憶單元之資料 存取’形成雙向資料交換之暫存路徑模式與溝通連接; ^ )、主機使用串列之通訊介面存取記憶單元内暫存 資料’而擴充機用主機端模式存取記憶單元内暫存資料。 1 6、如申請專利範圍第1 5項所述的PLC擴充機與 主機之多祕JU、土 镇式連接通訊介面通訊連接方法,其中,該特殊 擴充:係指非數位點擴充機。 7、一種PLC擴充機與主機之多模式連接通訊介面 通訊連接v 石法’係應用於主機與特殊擴充機之並列通訊連_January--i VI. Application for patent coverage Control signals. 13. The multi-mode connection communication interface device of the PLC expansion machine and the host according to the first aspect of the invention, wherein the memory unit further comprises: a first output end and a second output end. 1 4, ~ plc expansion machine and host multi-mode connection communication interface communication connection method, is applied to the serial communication connection mode of the host and the digital point expansion machine's method steps include: a), the expansion machine is controlled by the communication interface The hardware mode setting connection module does not determine its expansion type, capacity and positioning value; b), the host front and rear module pins are connected to the host, or the upper and lower level expansion machines form the host and the majority Expanding the serial connection between the machines; -TC), using the first and second setting of the communication interface, the I/O points expansion and its pins; and, mf} The communication interface reads the signal of a certain J group to determine the connected expansion type, the electrical connection between the main machine and the majority of the expansion machine, and the normal operation; indeed, the charging machine:), the host and In addition, the adjacent expansion machine converts the m value to the expansion), and the expansion machine determines the data sent by the self-prepared w△ machine according to the positioning value. The dynamic judgment allows or isolates the vertical connection. The communication connection method between the PLC expansion machine and the host is applied to the host fish's connection communication interface mode. The method steps include: ^ serial expansion communication of the special expansion machine a), expansion The machine is set by the hardware mode of the communication interface to set the expansion mode, capacity and positioning value; b), connected to the host by the front and rear connection modules of the communication interface, or the expansion machine of the upper and lower levels Forming a serial communication connection between the host and most of the expansion machine address lines, data lines and address lines; 2 setting the connection module to form the host end mode round c), using the communication interface - and the above One output of the memory unit is connected, set; ), the host performs an initialization operation, and the signal of a certain judgment module is read by the communication interface to determine the connected expansion type and capacity, and confirm the connection between the host and most expansion machines. And the operation is normal; e), the host and another adjacent expansion machine convert and output a positioning value to the expansion machine; f ^ ;, the expansion machine automatically determines whether to allow or isolate according to the positioning value The data access of the host and the memory unit; g), the expansion machine judges the data access of the memory unit according to the positioning value to form a temporary path mode and communication connection for forming a two-way data exchange; ^), the host uses the serial communication interface The temporary storage data is accessed in the memory unit, and the expansion machine uses the host mode to access the temporary data in the memory unit. 1 6. The method for communication connection between the PLC expansion machine and the host computer, and the town-to-town connection communication interface, as described in claim 15 of the patent application scope, wherein the special expansion refers to a non-digital expansion machine. 7. A multi-mode connection communication interface between the PLC expansion machine and the host computer. The communication connection v stone method is applied to the parallel communication connection between the host and the special expansion machine. 案號9414608】 1304931Case number 9414608] 1304931 」 、申請專利範圍 接模式’其方法步驟包括: a )、擴充機由通訊介面之硬體模式設定 設定其擴充機型態、容量與定位值; 連,棋組’ b )、由通訊介面前、後級連結模組連接主機, 上、下一級相鄰之擴充機,形成主機與多數擴充機 線、資料線及定址線之串列通訊連接; C )、利用通訊介面之第一及第二設定用模組接 定與上述記憶單70之二輸出端連接,形成具主機端 ^ 從機端模式輸出設定; 、'久 d )、擴充機於開機時執行一晶片定址程序; e )、主機執行初始化動作,由通訊介面讀取某一 斷模組信號,以判斷所連接之擴充機型式、容量,確句、主 機與多數擴充機間之連接與作動正常; f)、主機及另一相鄰擴充機轉換輸出一定 充機; ,值主擴 g )、擴充機根據定位值自動判斷允許或隔 記憶單元之資料存取; 雕王機與 h )、擴充機根據定位值 允許與記憶 存取,形成雙:資料交換之暫存路徑模式與溝通連;貝枓 ’而擴充機用從機端模式存取記憶單元内暫存資:存貝枓The method of applying for the patent range is as follows: a) The expansion machine is set by the hardware mode of the communication interface to set its expansion mode, capacity and positioning value; even, the chess group 'b), in front of the communication The rear-end link module is connected to the host, and the adjacent expansion machines of the upper and lower levels form a serial communication connection between the host and the plurality of expansion machine lines, data lines and address lines; C), using the first and second communication interfaces The setting module is connected to the output end of the memory unit 70 to form a host terminal ^ slave mode output setting; , "long d", the expansion machine executes a wafer addressing procedure when booting; e), the host Performing an initialization action, reading a certain module signal from the communication interface to determine the connection type, capacity, confirmation sentence, connection between the host and most expansion machines, and normal operation; f), host and another phase The expansion output of the adjacent expansion machine must be charged; the value is expanded by the main expansion g), and the expansion machine automatically judges the data access of the memory unit according to the positioning value; the engraving machine and h), the expansion machine according to the positioning value Allow and memory access, form a double: data exchange temporary path mode and communication connection; Bellow ’ and the expansion machine uses the slave mode to access the memory unit for temporary storage: 第32頁Page 32
TW94146081A 2005-12-23 2005-12-23 Multiple mode communication interface for plc expander and host and method for operating the same TWI304931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94146081A TWI304931B (en) 2005-12-23 2005-12-23 Multiple mode communication interface for plc expander and host and method for operating the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94146081A TWI304931B (en) 2005-12-23 2005-12-23 Multiple mode communication interface for plc expander and host and method for operating the same

Publications (2)

Publication Number Publication Date
TW200725281A TW200725281A (en) 2007-07-01
TWI304931B true TWI304931B (en) 2009-01-01

Family

ID=45071041

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94146081A TWI304931B (en) 2005-12-23 2005-12-23 Multiple mode communication interface for plc expander and host and method for operating the same

Country Status (1)

Country Link
TW (1) TWI304931B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI786930B (en) * 2021-11-04 2022-12-11 固緯電子實業股份有限公司 Power supply device and data transmission method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI786930B (en) * 2021-11-04 2022-12-11 固緯電子實業股份有限公司 Power supply device and data transmission method thereof

Also Published As

Publication number Publication date
TW200725281A (en) 2007-07-01

Similar Documents

Publication Publication Date Title
CN101308484B (en) Serial bus device, transmission method and USB device
TWI320888B (en) Microprocessor, microprocessor interface system and method of performing a half-width data transaction on a system bus
Bainbridge et al. Chain: a delay-insensitive chip area interconnect
TWI281612B (en) Communication method, apparatus and system, and storage medium having stored thereon instructions
CN102799509B (en) High-bandwidth extendable complex logic verification system based on double FPGA (Field- Programmable Gate Array) chips
CN104641360B (en) Bi-casting PCIe inbounds write-in to memory and peer device
CN101449251B (en) Apparatus and method for establishing device identifiers for serially interconnected devices
CN105283863A (en) Camera control interface extension bus
TW200845036A (en) Address assignment and type recognition of serially interconnected memory devices of mixed type
CN102262604B (en) Concurrent access method, system and interface device
JPH02501183A (en) layered network
JP5382661B2 (en) Apparatus and method for capturing serial input data
CN102970013A (en) Resetting method and resetting control device of register inside chip based on scanning chain
CN1543650A (en) High frequency range four bit prefetch output data path
US20110268137A1 (en) Communication within an integrated circuit including an array of interconnected programmable logic elements
CN109062829A (en) A kind of hard disk expansion equipment
TW200939029A (en) Method, apparatus, and system for employing an enhanced port multiplier
TWI304931B (en) Multiple mode communication interface for plc expander and host and method for operating the same
CN107771330A (en) Single SDIO interfaces with multiple SDIO units
CN104133792B (en) RSB communication method and RSB communication system
TW201112130A (en) Controllers and methods for controlling data transfer, and electronic systems
JPS6187451A (en) Architecture of processor for intelligent control of adapterfor data communication
CN102508807B (en) Scalable processor architecture (SPARC)-V8-processor-based bus structure
TWI280478B (en) Apparatus and method for programming integrated in-circuit
CN113918497B (en) System, method and server for optimizing AHB bus data transmission performance

Legal Events

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