-
Thành viên cấp 1
Các anh chị giúp m lỗi này với ạ !
Em check lỗi thì thấy báo thế này mà em ko biết lỗi chố nào các a chị chỉ cho em với ạ .
MAIN (OB1)
Network 7, row 1, col 1: ERROR 57: (operand 2) The literal/constant type is not legal for the instruction operand.
Network 7, row 1, col 2: ERROR 57: (operand 2) The literal/constant type is not legal for the instruction operand.
Network 7, row 1, col 3: ERROR 36: (operand 1) The size or data type is not valid for the instruction operand.
Network 7, row 1, col 3: ERROR 36: (operand 6) The size or data type is not valid for the instruction operand.
net7.PNG
SCALE (SBR4)
Network 1, row 1, col 3: ERROR 36: (operand 1) The size or data type is not valid for the instruction operand.
Network 1, row 1, col 3: ERROR 36: (operand 2) The size or data type is not valid for the instruction operand.
Network 1, row 3, col 3: ERROR 36: (operand 1) The size or data type is not valid for the instruction operand.
Network 1, row 3, col 3: ERROR 36: (operand 2) The size or data type is not valid for the instruction operand.
Network 1, row 5, col 3: ERROR 36: (operand 1) The size or data type is not valid for the instruction operand.
Network 1, row 5, col 3: ERROR 36: (operand 2) The size or data type is not valid for the instruction operand.
Network 2, row 5, col 3: ERROR 36: (operand 2) The size or data type is not valid for the instruction operand.
Network 2, row 5, col 3: ERROR 36: (operand 3) The size or data type is not valid for the instruction operand.
net1_scale.PNGnet2_scale.PNG
MBUS_INIT (SBR1)
Network 29, line 16, ERROR 33: (operand 1) Undefined global symbol or local variable for the instruction operand.
Network 29, line 17, ERROR 33: (operand 1) Undefined global symbol or local variable for the instruction operand.
MBUS_SLAVE (SBR2)
Network 4, line 9, ERROR 67: The number of operands does not match the standard instruction signature.
Network 59, line 2, ERROR 67: The number of operands does not match the standard instruction signature.
modbus_in.PNGmodbus_slave.PNG
Rất mong được các anh chị giúp đỡ !
-
-
Thành viên Đồng
sai kiểu dữ liệu khai báo nhé, số thực R mà
-
-
Thành viên cấp 1

Gửi bởi
anhlv.ddt
sai kiểu dữ liệu khai báo nhé, số thực R mà
Em sửa kiểu dữ liệu rồi nhưng cái Modbus nó vẫn báo :
MBUS_INIT (SBR1)
Network 29, line 16, ERROR 33: (operand 1) Undefined global symbol or local variable for the instruction operand.
Network 29, line 17, ERROR 33: (operand 1) Undefined global symbol or local variable for the instruction operand.
MBUS_SLAVE (SBR2)
Network 4, line 9, ERROR 67: The number of operands does not match the standard instruction signature.
Network 59, line 2, ERROR 67: The number of operands does not match the standard instruction signature.
Lỗi này sửa thế nào ạ ?
-
-
Thành viên Đồng
#x2, #x1 ... em lấy ở đâu - nó đang báo lỗi chỗ đó gửi code lên đây xem nào
-
-
-
-
Thành viên Đồng
code này bạn viết hay copy ở đâu - khi bạn sử dụng modbus init và slave nó cần thêm ra các sub và ngắt theo hàm thư viện có sẵn, theo mình thây của bạn đang thiếu nhé
-
Quyền viết bài
- Bạn Không thể gửi Chủ đề mới
- Bạn Không thể Gửi trả lời
- Bạn Không thể Gửi file đính kèm
- Bạn Không thể Sửa bài viết của mình
-
Nội quy - Quy định
Back to Top
Múi giờ GMT +7. Bây giờ là 02:54 AM.
Phiên bản 4.2.5
Phát triển bởi thành viên PLCVietNam®.
Đánh dấu