PLC

Last modified by xingzhi lin on 2026/01/19 14:26

Manual

Provides users with online viewing of Servo product Manuals of varies series and Servo software help.

Download

Provides users with manuals, hardwares, and softwares downloads.

Demo

Provides users with demonstrations about Wecon servo drives.

 

PLC LX3V - Modbus programming Config

การตั้งค่า Modbus Communication (RS-485)

ตัวอย่างการตั้งค่าการสื่อสารผ่านพอร์ต COM2 (RS-485) สำหรับ PLC โดยใช้โหมด RTU พร้อมกำหนดค่าในโปรแกรม Ladder ดังนี้:

  • Communication Format:
    • Baud Rate: 19200
       
    • Data Bits: 8
       
    • Parity: None
       
    • Stop Bit: 1
       
    • Protocol: RTU
       
  • Ladder Logic ตั้งค่าค่าเริ่มต้น:
    • MOV H91 → D8120 (ตั้งค่า Com Port)
       
    • MOV K1 → D8121 (กำหนด Station No. = 1)
       
    • MOV H2 → D8126 (ตั้งค่าโปรโตคอลเป็น RTU)
       
  • สถานะเริ่มต้น: ใช้ M8002 (First Scan Flag) เป็น Trigger
     

เหมาะสำหรับการสื่อสารกับอุปกรณ์ Modbus RTU ผ่าน RS-485 ได้ทันทีโดยไม่ต้องเขียนโปรแกรมเพิ่มเติมมาก