ข้ามไปที่เนื้อหาหลัก

Modbud Protocal ( Dec-2019)

Dec 2019 , 10

Modbus : Prosoft
Modbus:RealPars I
ModBus RealPars II
Rasgbery Pi Server on Docker with VPM remotr access  Dropbox back up influx Grafana 
Building a 4-node Rashberry PI Cluster

  • CRC checking at the first Modbus protocal both master and slave
  • MOD bus ASCII , Modbus TCP ( Client / Server : Over internet)  , Modbus RTU ( Master / Slave Serial communication ) 
  • How Modbus Protocal work ??
  • Start with Master sent request to Slave ?
  • Master : Slave address + Function code +Data + Error checking   === >
  • Slave : requeat + Data + Error checking  <===
Very Most Common Modbus Fuction Codes:

01  (01:hex)       ==   Read                                Discrete out coils
05 (05: hex)       ==   Write single                     Discrete output coil
15 (0F:hex)        == Write multiple                   Discrete output coils
02 (02 hex)         == Read                                  Discrear output contact

04 (04 hex)      == Read                                     Analog input contact
03 (03 hex)      == Read                                     Analog output holding registers
06 (06 hex)      == Write single                          Analog output holding registers
16 (10 hex)      == Write multiple                     Analog output holding registers




ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

LMS and Computer networking_2019

ODBC คืออะไร เเละมีประโยชน์อย่างไร ในวิทยาการคอมพิวเตอร์ การเชื่อมต่อฐานข้อมูลแบบเปิด [1] หรือ โอดีบีซี ( อังกฤษ : Open Database Connectivity: ODBC ) เป็น ส่วนต่อประสานโปรแกรมประยุกต์ แบบมาตรฐานสำหรับการใช้ ระบบจัดการฐานข้อมูล ผู้ออกแบบ ODBC ได้ตั้งจุดมุ่งหมายที่จะทำให้เป็นอิสระจาก ภาษาโปรแกรม ระบบฐานข้อมูล และ ระบบปฏิบัติการ ข้อกำหนดของ ODBC ได้เสนอส่วนต่อประสานเชิงขั้นตอนสำหรับการใช้ข้อคำถาม SQL เพื่อเข้าถึงข้อมูลการใช้ ODBC จะมีโปรแกรมประยุกต์หนึ่งโปรแกรมหรือมากกว่าในคลัง ODBC และตัวขับฐานข้อมูลหนึ่งตัวหรือมากกว่าในคลัง ODBC ซึ่งเป็นอิสระจากโปรแกรมประยุกต์หรือระบบจัดการฐานข้อมูลจะทำหน้าที่เป็นอินเทอร์พรีเตอร์ระหว่างโปรแกรมประยุกต์และตัวขับฐานข้อมูล เพราะว่าตัวขับฐานข้อมูลมีรายละเอียดเฉพาะของระบบจัดการฐานข้อมูล ดังนันนักเขียนโปรแกรมจึงสามารถเขียนโปรแกรมที่มีประเภทและลักษณะเป็นมาตรฐานได้โดยไม่ต้องกังวลกับลักษณะเฉพาะของระบบจัดการฐานข้อมูลแต่ละระบบที่โปรแกรมอาจพบนอกจากนี้ ผู้ใช้ตัวขับฐานข้อมูลเพียงจำเป็นต้องรู้วิธีการติดต่อกับคลังข้อมูลเท่านั้น คุณสมบัตินี้ทำให้ ODB...

WEB and OOP ( FEB '10 '18 )

 All About OOP  ( FEB '10 '18 ) OOP : Object -Oriented-Programming  OOP = คืออะไร   ทำไมการเขียน Programming ต้องมี OOP  Class คืออะไร มีไว้ทำไม  Method คืออะไร คุณสมบัติของ Object ทุกอย่างใน Program เป็น Object เเละเเต่ละตัวมีหน้าที่ต่างกันเเละความสามารถเเตกต่างกันออกไป  Program is group of Object  เเต่ละ Object เป็น instance ของ class เเต่ละ Object จะมีสถานะของตนเอง ( State) Object ที่มาจาก Class เดียวกันจะมีคุณสมบัติเเละ Class เดียวกัน Division of labors ( Service in a restaurant )  Chef ,Cashier ,Guest ,Receptionist ,Waiter ,Floor cleaner ,Dish washer Class คือ ต้นเเบบของ Object .ให้มองว่า Class คือ data type ประเภทหนึ่งที่รวมเอา Data ( Properties ) เเละ (Behaviors) เข้าใว้ด้วยกัน Object is instance ของ class จะต้องมีลักษณะสามอย่างต่อไปนี้ 1.Encapsulation  2.Polymorphism  3.Inheritance  เเต่ละอย่างคืออะไรเเละมีข้อดีข้อเสียอย่างไร http://www.tamemo.com/post/122/all-about-oop-1-class-and-object/...

Labview 2020

Up_Down  = (Timer) Simple up and Down Counter Fun and Easy -How the Canbus Protocal Works  สอนการใช้งาน Arduino มากมายดีมากก  Comdet KKU / Arduino  Arduino-DC motor speed control PID  ( +Visual studio) BorntoDev :เริ่มเขียน Java Script เเละเรื่องเพี้ยนๆที่เจอใน 10 นาที Labview_Egle_Eyes ( Dec_11 to  Dec_15 )    use LV17 and File below String format : ใช้จัดระเบียบข้อมูลให้เรียบร้อย End line ใน string ใช้วัน loop เเล้วขึ้นบรรทัดใหม่ Funtion สำเร็จรูปจะส่ง error ออกมาเป็น True อัตโนมัติ  === T เพื่อ stop loop ในกรณีที่มี error เเต่ funtion ที่เป็น sequent อาจไม่ส่งจึงเเก้ไขโดย == การทำ Flat sequent  + error checking State machine จะต้องมี Flow + Enum + Case + (( ตัวกำหนด Action == Transition Array )) Cluster  เเบบทำครั้งเดียว การทำ Sub VI  Build labview อย่างไร ( exe) NI-DAQmx  ( เป็น driver ของ DAQ ) เชื่อมต่อ  Hardware DAQ6800  Runtime ทำงานอย่างไร Engince คืออะไร  Versual Folder คือ...