Node-RED Modbus

Modbus 的起源: Modbus 是一種最初由 Modicon 公司於 1979 年開發的通信協議,用於工業控制系統中的數據通信。最初的目的是讓不同品牌的自動化設備能夠互相通信,並且容易地集成到控制系統中。由於其簡單、可靠和廣泛的應用,Modbus 成為了工業領域中最常用的通信協議之一。 Modbus 的實際應用場境及設備: 總的來說,Modbus 是一種經典且廣泛應用的通信協議,在工業控制和自動化領域中扮演著重要的角色,並且在各種應用場境中都能夠發揮其優勢。 Master vs Slave: Modbus 是一種工業控制系統中常見的通訊協議,用於在不同裝置之間進行數據傳輸。在 Modbus 通訊中,有兩個主要的角色:Master(主站)和 Slave(從站)。 差異: 在典型的工業自動化系統中,Master 負責收集各種傳感器和設備的數據,控制執行器的動作,並將數據傳輸到其他系統。而 Slave 裝置則是傳感器、執行器或其他智能設備,負責收集和執行 Master 下發的指令。 電端程式為視覺檢測程式會將工件的檢測結果透過Modbus發送檢測結果給PLC。請問電腦端程式是否為 Mdobus …

Node-RED mariadb setting

資訊庫元件設定 安裝【Manage Pallette】>>【Nodes】>> node-red-node-mysql 查詢待生產的訂單 msg.topic = “select concat(lastname, firstname) as ‘客戶名稱’, order_id as ‘訂單編號’, total as ‘金額’, date_added as ‘下單日期’ from oc_order where order_status_id =1”; return msg; var msg1 …

Opencart 新增訂單狀態

訂單狀態加急(Urgent) Opencart 後台設定: 【System】>>【Location】>>【Order Statuses】   資料庫關聯示意圖 訂單狀態值 初始值:Pending 生產中的值:Processing 生產完成的值:Processed 急單的值:Urgent 訂單完成的值:Complete 切換訂單狀態 狀態 值 Pending 1 Processing 2 Complete 5 Processed 15 Urgent 17

Django Views

^: indicating the begin $: indicateing the last [0-9]{4}: 4 characters and each character is 0~9. (?P<by_date>…….), will pass the value as by_date parameter to the view. r preceding the …

Use Docker-Compose to help Django Development

cd ~ mkdir practice_folder #create a virtualenv python -m venv .venv .venv\scripts\activate.bat pip install django~=4.0.0 psycopg2-binary~=2.9.9 django-admin startproject django_project . python manage.py runserver 0.0.0.0:8000 pip freeze > requirements.txt create a …