Đăng Ký
Kết quả 1 đến 6 của 6
  1. #1
    Thành viên cấp 1
    Ngày tham gia
    Apr 2012
    Bài viết
    29
    Thanks
    8
    0 lượt trong 0 bài viết

    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 đỡ !

  2. #2
    Thành viên Đồng
    Ngày tham gia
    Mar 2011
    Đang ở
    Nếu có vấn đề gì hỏi thì làm ơn đưa lên diễn đàn nhé
    Bài viết
    1,879
    Thanks
    159
    231 lượt trong 198 bài viết
    sai kiểu dữ liệu khai báo nhé, số thực R mà
    Cung cấp Hidden Content ,Hidden Content ,vật tư tự động hóa cũ và mới
    Liên hệ: Hidden Content
    website: Hidden Content
    __________________________________________________ ___________________
    Phone: 0912888729 - 0985888729
    Y.M: codientuhd

  3. #3
    Thành viên cấp 1
    Ngày tham gia
    Apr 2012
    Bài viết
    29
    Thanks
    8
    0 lượt trong 0 bài viết
    Trích dẫn Gửi bởi anhlv.ddt Xem bài viết
    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 ạ ?

  4. #4
    Thành viên Đồng
    Ngày tham gia
    Mar 2011
    Đang ở
    Nếu có vấn đề gì hỏi thì làm ơn đưa lên diễn đàn nhé
    Bài viết
    1,879
    Thanks
    159
    231 lượt trong 198 bài viết
    #x2, #x1 ... em lấy ở đâu - nó đang báo lỗi chỗ đó gửi code lên đây xem nào
    Cung cấp Hidden Content ,Hidden Content ,vật tư tự động hóa cũ và mới
    Liên hệ: Hidden Content
    website: Hidden Content
    __________________________________________________ ___________________
    Phone: 0912888729 - 0985888729
    Y.M: codientuhd

  5. #5
    Thành viên cấp 1
    Ngày tham gia
    Apr 2012
    Bài viết
    29
    Thanks
    8
    0 lượt trong 0 bài viết
    chương trình đây anh
    File đính kèm File đính kèm

  6. #6
    Thành viên Đồng
    Ngày tham gia
    Mar 2011
    Đang ở
    Nếu có vấn đề gì hỏi thì làm ơn đưa lên diễn đàn nhé
    Bài viết
    1,879
    Thanks
    159
    231 lượt trong 198 bài viết
    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é
    Cung cấp Hidden Content ,Hidden Content ,vật tư tự động hóa cũ và mới
    Liên hệ: Hidden Content
    website: Hidden Content
    __________________________________________________ ___________________
    Phone: 0912888729 - 0985888729
    Y.M: codientuhd

Đánh dấu

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
  •  
Back to Top