Wiki source code of PLC
Last modified by xingzhi lin on 2026/01/19 14:26
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | $xwiki.ssx.use('Download.WebHome') | ||
| 3 | (%class="download-options"%)((( | ||
| 4 | (%class="col-xs-12 download-container download-option version-option border-blue fa-icon fa-desktop"%)((( | ||
| 5 | = [[Manual>>Servo.Manual.WebHome]] = | ||
| 6 | Provides users with online viewing of Servo product Manuals of varies series and Servo software help. | ||
| 7 | (%class="version-footer"%)((( | ||
| 8 | [[VD2 SA>>Servo.Manual.02 VD2 SA Series.WebHome||class="btn btn-primary]] [[Software Help>>Servo.Manual.04 Servo SCTool Help.WebHome||class="btn btn-primary]] [[More>>Servo.Manual.WebHome||class="btn btn-primary]] | ||
| 9 | ))) | ||
| 10 | ))) | ||
| 11 | (%class="col-xs-12 download-container download-option version-option border-cyan fa-icon fa-download"%)((( | ||
| 12 | =[[Download>>Servo.Download.WebHome]]= | ||
| 13 | Provides users with manuals, hardwares, and softwares downloads. | ||
| 14 | (%class="version-footer"%)((( | ||
| 15 | [[Manual>>Servo.Download.Manual.WebHome||class="btn btn-info]] [[Hardware>>Servo.Download.2 Hardware.WebHome||class="btn btn-info]] [[Software>>Servo.Download.3 Software.WebHome||class="btn btn-info]] | ||
| 16 | ))) | ||
| 17 | ))) | ||
| 18 | (%class="col-xs-12 download-container download-option version-option border-green fa-icon fa-table"%)((( | ||
| 19 | = [[Demo>>Servo.Demo.WebHome]] = | ||
| 20 | Provides users with demonstrations about Wecon servo drives. | ||
| 21 | (%class="version-footer"%)((( | ||
| 22 | [[More>>Servo.Demo.WebHome||class="btn btn-success]] | ||
| 23 | ))) | ||
| 24 | ))) | ||
| 25 | ))) | ||
| 26 | {{/velocity}} | ||
| 27 | ((( | ||
| 28 | (% class="wikigeneratedid" %) | ||
| 29 | |||
| 30 | |||
| 31 | = **PLC LX3V - Modbus programming Config** = | ||
| 32 | ))) | ||
| 33 | |||
| 34 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:13pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**การตั้งค่า Modbus Communication (RS-485)** | ||
| 35 | |||
| 36 | (% style="line-height:1.38; margin-top:16px; margin-bottom:16px" %) | ||
| 37 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)ตัวอย่างการตั้งค่าการสื่อสารผ่านพอร์ต COM2 (RS-485) สำหรับ PLC โดยใช้โหมด RTU พร้อมกำหนดค่าในโปรแกรม Ladder ดังนี้: | ||
| 38 | |||
| 39 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Communication Format**(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %): | ||
| 40 | ** (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Baud Rate: 19200(%%) | ||
| 41 | |||
| 42 | ** (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Data Bits: 8(%%) | ||
| 43 | |||
| 44 | ** (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Parity: None(%%) | ||
| 45 | |||
| 46 | ** (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Stop Bit: 1(%%) | ||
| 47 | |||
| 48 | ** (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Protocol: RTU(%%) | ||
| 49 | |||
| 50 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Ladder Logic ตั้งค่าค่าเริ่มต้น:** | ||
| 51 | ** (% style="color:#188038; font-family:~"Roboto Mono~",monospace; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)MOV H91 → D8120(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %) (ตั้งค่า Com Port)(%%) | ||
| 52 | |||
| 53 | ** (% style="color:#188038; font-family:~"Roboto Mono~",monospace; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)MOV K1 → D8121(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %) (กำหนด Station No. = 1)(%%) | ||
| 54 | |||
| 55 | ** (% style="color:#188038; font-family:~"Roboto Mono~",monospace; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)MOV H2 → D8126(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %) (ตั้งค่าโปรโตคอลเป็น RTU)(%%) | ||
| 56 | |||
| 57 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**สถานะเริ่มต้น**(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %): ใช้ (% style="color:#188038; font-family:~"Roboto Mono~",monospace; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)M8002(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %) (First Scan Flag) เป็น Trigger(%%) | ||
| 58 | |||
| 59 | |||
| 60 | (% style="line-height:1.38; margin-top:16px; margin-bottom:16px" %) | ||
| 61 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)เหมาะสำหรับการสื่อสารกับอุปกรณ์ Modbus RTU ผ่าน RS-485 ได้ทันทีโดยไม่ต้องเขียนโปรแกรมเพิ่มเติมมาก | ||
| 62 | |||
| 63 |