MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About cyberdrag

  • Rank
    Hi, I am New!

Profile Information

  • Country India
  1. Understanding 3E frame for FX5U PLC over SLMP

    Hey @Mark-, thanks for sharing this, I did try as per your suggestions - my code now has this frame structure: //50 00 01 01 FF 03 00 0D 00 00 00 01 14 01 00 12 00 00 9C 01 00 10 //C# Code byte[] payload = new byte[] { 0x50, 0x00, 0x01, 0x01, 0xFF, 0x03, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x01, 0x14, 0x01, 0x00, 0x12, 0x00, 0x00, 0x9C, 0x01, 0x00, 0x10 }; Upon execution, I got an error (ERR LED on the PLC is on), and the response was as per below: D0 00 01 01 FF 03 00 11 00 5F C0 01 01 FF 03 00 01 20 01 00 00 00 I can also see, the request data length is 13 as per above table, however I see that from CPU Timer to Final data, the length is actually 14 bytes. Can you please help me resolve this? Another detail I'd like to point out here is, in GX Works 3, I have Parameter > FX5UCPU > Module Parameter > Ethernet Port > Basic Settings > Communication Data Code set to "Binary". I hope this is okay?
  2. I did a lot of research for being able to control my Mitsubishi FX-5U PLC. I want to control it over network using SLMP with 3E frame messaging, but I am unable to understand the message frame. I am referring this manual. But despite spending days I haven't been able to understand how to control the PLC using SLMP. I understand that if I use this message frame, I will be able to read data on D200 register, and it does work successfully. 50 00 00 FF FF 03 00 0C 00 10 00 01 04 00 00 C8 00 00 A8 01 00 But, I just don't understand, how to access and control the devices on X and Y. Lets say I have to read data from all inputs (X) or write data to all/few output (Y) at once. I tried resolving this issue by trying to write to outputs, Y1 and Y2, and set them to high, but it doesn't work (Below frame is in ASCII format) 50 00 00 FF FF 03 00 0D 00 00 10 14 01 00 01 Y* 00 00 01 00 02 11 I know I am doing it wrong, so want to know really what am I doing wrong
  3. Hi All, I'm new to using PLC, and my background is majorly programming. I am learning how to control a PLC over the internet using HTTP or TCP/IP. I have a Mitsubishi PLC Melsec FX-5U 32MR and my requirement is, I want to send create a setup where the PLC works more like a Client on the network and reads values from the server (which is a computer). The outputs on the PLC are controlled by the values on the database in server.  So, lets assume I have a value like this on the server "1,0,0,1,0,1", it should translate like below: Y0 = 1 Y1 = 0 Y2 = 0 Y3 = 1 Y4 = 0 Y5 = 1 Is there any guidance where I can read through and learn how to do this. I would prefer doing it by ST programming and not Ladder.