Andrei Blagaila

MrPLC Member
  • Content count

    225
  • Joined

  • Last visited

Everything posted by Andrei Blagaila

  1. Hex adresses while comunicating

    I can tell you the HW configuration. It's definitely a WinCPU and not a C controller. In the past it was a PPC.  i'll try to get more info when th machine will arrive where I am. I wanted to understand how the WinCpu accesses the PLC data. I am going to go over the file @kaare_t uploaded and try to undestand. Unfortunately I don't know much about C and C++ and it's a bit difficult to understand but not impossible. FF02 was found in the C code. 
  2. Hex adresses while comunicating

    I have a question. Take for example I have a SW that contains a lot of variables D, B, M etc... On the Rack I have a PPC that is used to collect data from the PLC (using C written software). In that communication software it has addressed written as hex (ex: 0xFF02). How can I tell what is that linked to in my PLC software? Is there a way? For example I have M200 in the software. How can I address it in the C software to read it's value (true or false), or for a word like D200 the same question. Is there a way? PLEASE HELP!!!
  3. Q50UDEHCPU battery info

    Does anyone know if the Q50UDEHCPU is supplied with a battery for saving the RAM memory in case of power down? Also i read that you can put a second battery to back-up the memory stored in the Memory Card in case of power down. Is this also supplied by Mitsubishi or does it need to be ordered separately?
  4. Hex adresses while comunicating

    I use a Q50UDEH with a WinCPU or PPC on the older models. The WinCPU or PPC runs a c code that gathers info from the PLC and sends it to the host. I am interested in understanding how does it do that. I learned that the WinCPU or PPC has access to all the memory of the PLC. I just want to know if in the C code I want to call a variable M200 how do I do that. Does M200 have an address in the PLC that I can call. I assume it's a HEX address but i'm not sure. I cannot post parts of the code unfortunately :( Confidentiality clauses. I basically want to find out how the memory can be accessed from the outside. 
  5. Q50UDEHCPU battery info

    I read in the manual that also there is a special memory SM51 and SM52 that warn you when your battery is low. I was thinking of adding a functionality to the HMI with a pop-up message when one of these turn on. (One turns on and stays on even if the battery level improves and one stays on only when the battery level is low). 
  6. RS232 TO instruction

    So in my case it sends only the constant 0 to address H93 that I found is : DTR/DSR(ER/DR), DC control designation : • Transmission control (b0) 0: DTR/DSR control 1: DC code control • DC1/DC3 control (b8) 0: No control 1: Controlled • DC2/DC4 control (b9) 0: No control 1: Controlled I need to search a bit more to understand exactly which of these does it reset but I get the functionality now. Thank you so much.
  7. RS232 TO instruction

    Working with a project that reads an RF-ID via RS232. I posted a lot of questions about this project because I'm new to Mitsubishi PLC's and it's hard to understand some of the commands from the help menu.  I'm hoping you can help me once again with the TO Function. I attached a photo. Can someone explain what is U5 for example and how the function works? Thank you so much
  8. RS232 TO instruction

    Ok. Hope I got it right (i can be a bit challenged to understand sometimes). On my RS232 module starting from address H93 till 16 bits after will be rewritten with 0 in this care. Did I understand correctly?
  9. RS232 TO instruction

    So looking on my HW configuration i can tell that the module corresponding to U5 is a RS232 QJ71C24-R2. This means that starting from X/Y50 are points used to address this specific module. H93 is the particular address that will be written with 0 in this case. But the K1 part is not so clear. Either it's one word to be written or one bit of a word ?
  10. WAND Function

    Never mind. After searching a bit longer I found the DAND instruction. Thank you nevertheless.
  11. WAND Function

    In the project I'm working on, I came across something I don't really understand in this form. The line is as follows. SM400 - [WAND H0FF D9686] I know how the command works (ANDs the 16 bits from two word memories) but in this sintax i don't understand where it puts its results and why does it get used with a Hexadecimal constant? Has anybody come across this before? Thank you
  12. WAND Function

    So I understood how to load a value in a double word. Now I want to to a WAND between this and a Hex value and write the result into another double word. How do I do that?  For example I load the value k68000 intro D0 and D1 usind DMOV K68000 D0. How do I write correctly (it keeps telling me the value i want to WAND exceeds the limit)? WAND H7FFFFF D0 and write it into D2 D3? Thank you
  13. Q50UDEHCPU battery info

    I read the owner manual for the q50UDEH and I wanted to know exactly what it comes with. I am working on a project (already coded by someone else) that has produced with the HW and SW a lot of machines. The problem is i'm working blind, because I don't have the Hardware here to see exactly what is present on the CPU. I have to do a sort of manual for the clients where I recommend changing the battery every x years and so on. And I wanted to know what is standard and what is not. Thank you for your help. Now I understand the use of the memory card (if present) and that it comes with a battery if ordered from Mitsu.
  14. Q50UDEHCPU battery info

    Yes, the battery that backs up the memory card. Is that supplied by default or does it need to be ordered separate?
  15. Registers like D4000Z7

    Can someone help me understand what D4000Z7 means? Is it a register? Is it a word? 
  16. FY0 FY1

    I ran across something in the software i'm working on. and I don't quite understand it. So the program uses a XCALL function to call a Pointer. What i don't understand is what happend to the Y after the call. When I went to see the Pointer it has a set and reset FY0 And FY1. What are they and what are they used for?
  17. ALARM HISTORY GT DESIGNER

    Found Them. Thank you very much. :D
  18. ALARM HISTORY GT DESIGNER

    Hi guys, So on the same project i've bben posting a lot of my questions came up an interesting one. The HMI has a alarm Log and history window as you guys can see in the picture attached. My question is, where can I find and edit this ALM_CFC330 in GT designer? I have never worked in GT Designer 3 before and don't know the works of it. Please help. Thanks
  19. FY0 FY1

    I don't understand where i went wrong ...
  20. Registers like D4000Z7

    Thank you so much. Now I understand. And why does it get used. I don't see the use for this. Can you give me an example why it's recommended to be used?
  21. FY0 FY1

    I have another problem again but this time with EFCALL. So i have two PUI's. P0 and P2049. In P0 i call a pointer called P2050 as in the images. The problem is it goes into error again before I even force X1 to ON. Why is that? i'm trying again to simulate a functionality in my sofware.
  22. SECS/GEM Communication

    As soon as it arrives. I'm still waiting on the HW. I only have the SW.
  23. SECS/GEM Communication

    I'm not asking for an exact answer just some guidelines to help me narrow my search. I did not know that the WinCPU or PPC can fetch any data it wants from the PLC. That is usefull to know. I just have to understand how it does that at the moment in order to be able to modify it in the future.
  24. SECS/GEM Communication

    So I have a project already done with Q50UDEHCPU and it has SECS/GEM implemented in it already using ladder. I'm trying to understand exactly what happens here because at the moment it's all a blur. I have on the rack a WinCPU and on older models of the machine i have a PPC that runs a custom software written in C that takes data from the PLC and sends it to the host via Ethernet. I'm not sure what it communicates with on the host side because i'm doing a kind of reverse engineering on the software in order to understand it. But i'm stuck at the moment on this. Where do I store in the PLC the information that is sent to the PPC and then to the host? The CEIDs and SVID's for each CEID. Basically i send an event to the host when the machine passes from a state to another. I don' know if I explained well or not. I want to understand how it communicates. A basic principle involving also the variables where i store the information. Maybe an example. Thanks
  25. SECS/GEM Communication

    I'm interested in understanding how the PLC communicates with the Host. I'm guessing that there is some kind of shared memory where both PLC and host write. I'm using for example ladder diagram in GX Works 2. What kind of variables do I use for the communication part? B kind? I've been trying to study the Q50UDEHCPU (the one i'm using) and it's manual to understand where is it's shared memory and if that is the solution because as I wrote above, I'm new to SECS/GEM and don't quite understand how it's supposed to work with Mitsubishi. Thank you