EK18xx 系列耦合器結(jié)合了 EK1100 EtherCAT 耦合器的功能和標(biāo)準(zhǔn)型數(shù)字量 I/O。這種緊湊型設(shè)計特別特別適合用于具有少量 I/O 的應(yīng)用。與 EK1100 一樣,EK18xx 系列耦合器也可以通過所有 EL/ES 端子模塊擴(kuò)展。數(shù)字量 I/O 采用的是單線制連接技術(shù)。接線采用直插式連接技術(shù),無需工具。
EK1828 有 4 個數(shù)字量輸入和 4 個數(shù)字量輸出。DXGRP : UDINT; IDXOFFS : UDINT; LEN : UDINT; (*寫數(shù)據(jù)長度,單位 Byte, 通常以 SizeOf( )函數(shù)獲取*) SRCADDR : DWORD; (*寫數(shù)據(jù)源地址,通常以 ADR( )函數(shù)獲取*) WRITE : BOOL; (*觸發(fā)條件,上升沿有效*) TMOUT : TIME; (*超時時間*) END_VAR VAR_OUTPUT BUSY : BOOL; ERR : BOOL; ERRID : UDINT; END_VAR 使用時按照 5.1.2 中 4 要素的描述填寫輸入變量即可。
6.1.4
從高級語言調(diào)用 ADS 通訊
供應(yīng)倍福耦合器ek1828 倍福模塊ek1828 全新現(xiàn)貨模塊
各種語言:參考 Beckhoff Inbation System,其中不僅有函數(shù)的描述,也有相關(guān)的程序代 碼,并且可以解壓示例程序。
在此,以 VB 函數(shù) AdsSyncReadReq 為例。 AdsSyncReadReq:用于從一個 ADS 設(shè)備同步讀取數(shù)據(jù)。 b.AdsSyncReadReq( nIndexGroup As Long, nIndexOffset As Long, cbLength As Long, pData As YY)
第 123 頁 共 141 頁 本文純屬個人經(jīng)驗,非 Beckhoff 公司正式發(fā)行,如有疑問,請直接聯(lián)系作者。 2016-5-19
69725610.doc
As Long 參數(shù): nIndexGroup [in] ADS 變量的 Index group nIndexOffset [in] ADS 變量的 Index offset cbLength [in] 讀取數(shù)據(jù)長度,單位:字節(jié)。 pData [in] 從 ADS 讀取的數(shù)據(jù)賦給指定的變量 返回值:見 ADS 故障代碼 注意: 發(fā)生錯誤時,pData 變量會置為"0". NetID 和 Port 實際上定義了一個設(shè)備,是在 OCX 對象的屬性 AdsAmsServerNetId 和 AdsAmsServerPort 里設(shè)置的。
供應(yīng)倍福耦合器ek1828 倍福模塊ek1828 全新現(xiàn)貨模塊
說明: 使用同步讀寫指令時,ADS 讀寫完成或超時報錯之前,VB 應(yīng)用程序一直掛起等待。 Visual Basic 變量必須聲明為一個數(shù)組。不支持字符串變量。 Example Dim VBVarInteger(0) As Integer Dim VBVarLong(0) As Long Dim VBVarSingle(0) As Single Dim VBVarDouble(0) As Double Dim VBVarByte(0) As Byte Dim VBVarBool(0) As Boolean
技術(shù)參數(shù) | EK1828 |
---|---|
EtherCAT 系統(tǒng)內(nèi)的任務(wù) | 連接 EtherCAT 端子模塊(Elxxxx)與 100BASE-TX EtherCAT 網(wǎng)絡(luò) |
數(shù)據(jù)傳輸介質(zhì) | Ethernet/EtherCAT 電纜(最低 CAT 5),屏蔽型 |
站點之間的距離 | 最長 100 米(100BASE-TX) |
EtherCAT 端子模塊數(shù)量 | 最多 65,534 個 |
協(xié)議 | EtherCAT |
延遲 | 約 1 μs |
數(shù)據(jù)傳輸率 | 100 Mbaud |
總線接口 | 2 x RJ45 |
額定電壓 | 24 V DC(-15 %/+20 %) |
E-bus 電流負(fù)載 | 1000 mA |
Up 電流消耗 | 40 mA + 負(fù)載 |
Us 電流消耗 | 100 mA +(Σ E-bus 電流/4) |
輸入點數(shù) | 4 |
規(guī)范 | EN 61131-2,type 1/3 |
“0” 信號電壓 | -3…+5 V(EN 61131-2,type 1/3) |
“1“ 信號電壓 | 15…30 V(EN 61131-2,type 3) |
輸入濾波 | 3.0 ms |
輸入電流 | 通常為 3 mA (EN 61131-2, type 3) |
輸出點數(shù) | 8 |
負(fù)載類型 | 電阻式負(fù)載、電感式負(fù)載、電燈負(fù)載 |
最大輸出電流 | 每通道 0.5 A(短路保護(hù)) |
短路電流 | 典型值 < 2 A |
反向電壓保護(hù) | 有 |
斷裂能 | < 150 mJ/通道 |
開關(guān)時間 | 通常為 TON:60 μs, TOFF:300 μs |
電氣隔離 |
500 V(電源觸點/電源電壓/Ethernet), 500 V(E-bus/場電位) |
導(dǎo)線類型 | 實心線、絞線和線鼻子 |
導(dǎo)線連接 | 實心線:直插式連接技術(shù);絞線和線鼻子:用螺絲刀驅(qū)動彈簧 |
額定截面積 | 實心線:0.08…1.5 mm2;絞線:0.25…1.5 mm2;線鼻子:0.14…0.75 mm2 |
工作/儲藏溫度 | -25…+60 °C/-40…+85 °C |
相對濕度 | 95 %,無冷凝 |
抗振/抗沖擊性能 | 符合 EN 60068-2-6/EN 60068-2-27 標(biāo)準(zhǔn) |
抗電磁干擾/抗電磁輻射性能 | 符合 EN 61000-6-2/EN 61000-6-4 標(biāo)準(zhǔn) |
防護(hù)等級/安裝位置 | IP 20/可變 |
認(rèn)證 | CE,UL |
The EtherCAT Couplers from the EK18xx series combine the functionalities of the EK1100 EtherCAT Coupler with standard digital I/Os in one housing. This results in a compact design that is especially suitable for applications with a low number of I/Os. Like the EK1100, the EK18xx coupler can be extended by all EL/ES terminals. The digital I/Os are implemented with a 1-wire technique. The wiring can be implemented without tools using a direct plug-in technique with solid wire conductors or ferrules.
The EK1828 has four digital bs and eight digital outputs.
Technical data | EK1828 |
---|---|
Task within EtherCAT system | coupling of EtherCAT Terminals (ELxxxx) to 100BASE-TX EtherCAT networks |
Data transfer medium | Ethernet/EtherCAT cable (min. Cat.5), shielded |
Distance between stations | max. 100 m (100BASE-TX) |
Number of EtherCAT Terminals | up to 65,534 |
Protocol | EtherCAT |
Delay | approx. 1 μs |
Data transfer rates | 100 Mbaud |
Bus interface | 2 x RJ45 |
Nominal voltage | 24 V DC (-15 %/+20 %) |
Current supply E-bus | 1000 mA |
Current consumption from UP | 40 mA + load |
Current consumption from US | 100 mA + (∑ E-bus current/4) |
Number of bs | 4 |
Specification | EN 61131-2, type 1/3 |
“0“ signal voltage | -3…+5 V (EN 61131-2, type 1/3) |
“1“ signal voltage | 11…30 V (EN 61131-2, type 3) |
Input filter | 3.0 ms |
Input current | typ. 3 mA (EN 61131-2, type 3) |
Number of outputs | 8 |
Load type | ohmic, inductive, lamp load |
Max. output current | 0.5 A (short-circuit-proof) per channel |
Short circuit current | typ. < 2 A |
Reverse voltage protection | yes |
Breaking energy | < 150 mJ/channel |
Switching times | typ. TON: 60 μs, TOFF: 300 μs |
Electrical isolation |
500 V (power contact/supply voltage/Ethernet), 500 V (E-bus/field potential) |
Conductor types | solid wire, stranded wire and ferrule |
Conductor connection | solid wire conductors: direct plug-in technique; stranded wire conductors and ferrules: spring actuation by screwdriver |
Rated cross-section | solid wire: 0.08…1.5 mm2; stranded wire: 0.25…1.5 mm2; ferrule: 0.14…0.75 mm2 |
Operating/storage temperature | -25…+60 °C/-40…+85 °C |
Relative humidity | 95 %, no condensation |
Vibration/shock resistance | conbs to EN 60068-2-6/EN 60068-2-27 |
EMC immunity/emission | conbs to EN 61000-6-2/EN 61000-6-4 |
Protect. class/installation pos. | IP 20/variable |
Approvals | CE, UL |