BT San Technology

4 May 2026

Bare-metal, RTOS, Linux and the PLC scan cycle: timed work versus heavy processing

2 min read · Automation

Illustration: a finned edge box, a DIN-rail PLC, two boards, an oscilloscope and a linear stage
AI-generated illustration

This guide is available in Thai only.

งานอ่านเซนเซอร์ งานสื่อสาร และงานภาพมีเงื่อนไขเวลาต่างกัน การมีระบบปฏิบัติการหรือใช้ PLC ไม่ได้ยืนยัน deadline ของทุกงานโดยอัตโนมัติ ต้องพิจารณา scheduler การออกแบบ task การสื่อสาร และผลวัดจริงร่วมกัน

เนื้อหาที่สอนและลำดับทดลอง

  1. นิยาม latency jitter deadline และ throughput
  2. เทียบ loop interrupt task และ scan
  3. กำหนดงานที่รอได้กับงานที่ต้องตอบภายในขอบเขต
  4. วัดเวลาจากเหตุเริ่มถึงผลปลายทางภายใต้โหลด

แบบฝึกและตัวอย่างนำไปใช้

แบบฝึก: วางแบบจำลองอ่านปุ่ม เก็บข้อมูล และตรวจภาพ โดยแยกภาระงานแล้วตรวจเวลาตอบสนอง

ข้อจำกัดและสิ่งที่ต้องตรวจเพิ่ม

อย่าเรียกทุกระบบว่า hard real-time จากชนิดบอร์ด และอย่าใช้ Linux application ทั่วไปแทนฟังก์ชันนิรภัยโดยไม่มีการออกแบบที่เหมาะสม

เอกสารผู้ผลิตที่ควรอ่าน

  • Arduino GIGA R1 WiFi
  • Arduino UNO Q
  • NVIDIA JetPack
  • Siemens controller selection

References

  1. Arduino GIGA R1 WiFi (accessed 2026-11-21)
  2. Arduino UNO Q (accessed 2026-11-21)
  3. NVIDIA JetPack (accessed 2026-11-21)
  4. Siemens controller selection (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer