Cấu hình thông số modbus màn hình YKHMI:

  • Modbus RTU
  • YKHMI ( PLC ES2, MASTER) — TC4S, SLAVE ( address 1 )
  • Protocol: 9600 8 N 1 ( baud, data, parity, stop bit )

MODBUS RTU
H81: 9600, 8, N, 1 ( USING )

D1109: Communication protocol
M1136: Retaining communication setting
M1320: ASCII/RTU mode selection. (OFF: ASCII; ON: RTU)

D1255: PLC communication address
D1252: Set value for data receiving time-out (Unit: 1ms, min. 50ms, value smaller than 50ms will be regarded as 50ms) (only applicable for MODRW/RS instruction) In RS instruction, no time-out setting if ¡§0¡¨ is specifi

Cấu hình Modbus RTU
Cấu hình Modbus RTU

Đọc nhiệt độ TC4S

Khởi động quá trình liên lạc
Khởi động quá trình liên lạc

K1: address of slave 1, TC4S: 9600, 8 , N ( parity: none) , 1
H3: READ ( function code )
H6: WRITE ( function code, no use)

K0: area for PV of slave , D100 ( present value )
K2; area for SV ( setting value) D102
K3: length is 3

Lệnh đọc nhiệt độ thực tế từ TC4S
Lệnh đọc nhiệt độ thực tế từ TC4S

M1318: For data receiving completed (Only applicable for MODRW and RS instruction)
M1316: For sending request (Only applicable for MODRW and RS instruction)

Nhiệt độ thực tế: PV 32 oC
Nhiệt độ cài đặt: 0 oC

Bài viết liên quan:

Bộ điều khiển nhiệt độ Modbus RS485 TC4S

0 0 votes
Đánh giá bài viết
Đăng ký
Thông báo
guest
0 Góp ý
Cũ nhất
Mới nhất like nhiều nhất
Inline Feedbacks
View all comments