PLC world
PLC 相關 機電整合 試機心得 PLC學習 設備 工程師 自動化 電控 Automation Module 伺服馬達 Servo Motor 個人生活 工作
網頁
首頁
工具箱
伺服選型
Modbus設定流程
討論區最新文章
2011年8月25日 星期四
PLC|RS485使用人機來通訊,最好
PLC|RS485使用人機來通訊是最好選擇
在上一篇文章寫到,因為PLC的掃描時間的關系,
使得通訊時間<掃描時間,
很多時間浪費在PLC的掃描時間。
而人機是使用韌體來處理通訊方式,可以避免掉PLC掃描時間的問題。
如果使用人機來做RS485,又有相對的問題會發生。
1.人機的通訊方式跟PLC寫法不同。
2.PLC、HMI兩邊都有控制權&程式,後續DEBUG會比較麻煩。
3.一般人機會離其他元件較遠,干擾問題要考慮。
2011年8月24日 星期三
PLC|RS485 PLC to write the key
RS485 communication
speed
up to
115200bps (bits per second)
115200bps/1000 = 115.2bp (ms)
Data
string
=
begin
code +
data
(7-8 bit) +
Check
code +
end
code
= 11bit
115.2bp (ms) / 11bit = 10.5
data streams
/ ms
The existing
PLC scan time
of about
4-20ms,
in fact,
are
much larger than the
communication speed
of RS485
.
So the
PLC
simplified way
,
so
at least
the number of scans
, you can
complete the
transmission
&
reception
,
Is the biggest
key.
2011年8月23日 星期二
PLC|PLC自行寫RS485的重點
RS485的通訊速度最高為115200bps(
bits per second)
115200bps/1000=115.2bp(ms)
以一個資料串=開頭碼+資料(7-8 bit)+檢查碼+結束碼=11bit
115.2bp(ms)/11bit=10.5組資料串ms
以現行PLC的掃描時間約4-20ms,其實都遠大於RS485的通訊速度,
所以PLC簡化寫法,讓最少掃描次數,就可以完成傳送&接收,
反而是最大的關鍵。
較新的文章
較舊的文章
首頁
訂閱:
意見 (Atom)