MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by kaare_t

  1. Scan single bits

    Any special (or standardized) combinations you are looking for (BCD or input matrix)? You can also use a BMOV and move the int into an array of bools, or just compare the int value to another number.
  2. E1101 + E-Designer

    There is no direct way to do this. Some SIM operators have customized services for these kind of things, e.g. we used to have a service where we could send an e-mail to [phone-number]@[operator].no and this e-mail address would be interpreted as the phone number to send SMS to. (e.g. 12345678@telenor.no would forward the message to the phone number 12345678). Telenor is in this case the SIM operator, and they are offering the service itself. You might want to check out this with your SIM operator.
  3. Multiplying large numbers

    Use DDIV for DINT numbers. The result will be an array of DINT with two elements, where the first element is the value and the second element is the remainder (if any)
  4. Multiplying large numbers

    When working with "Double's", the compiler in GX IEC will only accept defined variables (you have to define the variable with a name and the correct type), and not HW addresses. The programming manual usually use GX Developer (which allows for HW addresses directly). As long as you only want to add up some numbers I wouldn'y bother thinking about the special registers (M80**). The output is by the way NOT a 64bit number, but a 32bit number (but you are correct regarding the output value). DINT is not floating point (it's simply double integer). If you want to use floating point (REAL), then you'll have to use the instruction "DEMUL_M". See both examples:
  5. MMP+ to GX IEC App Code Upgrade

    Not sure what the problem is, could you publish (upload) the source MM+ project in the forum?
  6. FX3u-485-BD & IMS MDrive 23 Plus

    No, you're using the RS2 instruction, and therefore you will have to check D8063 (when using channel 1)!! D8062 only applies when using the RS instruction. I would start with re-checking the devices you are using to ensure that they correspond with the RS2 instruction - RS2 is not the same as RS. I would in general just re-check your program. Your last line of code is also adressed wrong, and a little "odd"...!?
  7. MES Interface-it

    There are two different modules: 1. QJ71MES96 ("simple" module, does not allow for PLC-PLC comm. This only logs data to a database, with a backup memory ++) 2. I don't remember the name (I think it's something like Q13UDDEH or something), but it's actually a CPU, which also allows for OPC Server functionality (the module can do so much so I suggest reading about it in Mitsu docs).
  8. FX3u-485-BD & IMS MDrive 23 Plus

    You've still got some problems with the adressing. First: D8062 should be D8063 for this card, check the error message in this memory instead. Also; you use an ADP card with Channel1. Does this mean that you have a CNV-BD card between the main unit and the ADP card? If you have a BD comm-card, the ADP will be Channel2.
  9. Help - Communication between FX3U & Q-Series

    Hi! None of the PLCs have the "Master" protocol (the one that actually polls data) in these cards, so this causes some problems for you. I see you want to use "Form1", which is a Mitsubishi protocol, the problem is that both these cards only have the Slave function implemented (they only work as a server, waiting for a client -master- to poll data from them). If I were you I would purchase a QJ71MB91 (Modbus RTU) card for the Q PLC, and simply set this up as a Modbus Master. Then you can use the Modbus Slave function block in the FX3U for the 232-BD card. Another option is to use fixed buffer/No-Protocol between the PLC's but then you'll have to do some more programming (all in all, I think that the QJ71MB91 will be a less expensive solution since you will cut down on development time). If you still wan't to use Fixed Buffer/No-Protocol, you'll have to set up NoProtocol in the serial cards (check bit-pattern in the correct buffer memories/switch settings), and then you can just send whatever data you would like.
  10. error 1403 on Q02

    In GX Developer: Diagnostics->System Monitor Select the module you have a problem with (probably colored red/orange/yellow) - you can dobbel-click on the module name, or you can single click and then click on "Module's Detailed Information" to open up the detailed information about the specified module.
  11. FX2N Communication Modules

    Hi. FX2N PLC: You can basically choose if you want to use the 485BD or the 485ADP (with cnv adapter). 485ADP with cnv adapter will be more expensive, but note that the 485ADP card have a better spec regarding cable length: FX2N-485BD: 50m FX2NC-485ADP: 500m A2AS PLC: A1SJ71UC24 card
  12. iQ Works Q & A

    FYI: Beijer did not develop GX IEC Developer. They made Melsec Medoc ("Blue Screen"), but GX IEC Developer was developed by an external software company with specs/guidelines/assistance from Mitsubishi Europe. GX Works is as far as I know made by Mitsubishi Japan.
  13. gx iec developer rebuld project error

    Higher numbers are "super-users", lower numbers are "users".... So if you "log in" to security level 7, you have the most access.
  14. gx iec developer rebuld project error

    Hi! Not sure if I understood everything, but I think that your main problem is your security level (see 3). After checking that I'm pretty sure that 1 & 2 will be easy to figure out. 1. You can change the name in the header of the selected POU, or in the Global_Vars if the variable is a global one. 2. Red asterix means that the POU is not compiled, or part of the output code - you can verify this by removing one of the POU's from the Task_Pool, compile, and then you'll see that the specific POU will have a red asterix (and is not part of the compiled code). 3. When you enter "Properties" on POU's ("files" in the project tree), you can only change the security level within the same level you are actually "logged into". To change your current security level go to "Project->Change Security Level". There you can change to a higher level and you will be able to select other levels under the properties page for the different POU's (or files).
  15. Error Led on Mitsubishi A2NCPU

    Hi. You should try to get a software package for Mitsubishi (GX Developer or GX IEC Developer), so that you are able to read out the error code (as Metallion suggested). You could try to download the DEMO version (free) of GX Developer from Mitsubishi. You have a maximum om 1000steps of programming, but you can connect and check the error code of the PLC.You will also need a programming cable "SC-09" to connect to the PLC The CPU can go into error even if the battery was low..... In addition; this CPU with most of the IO cards cannot be purchased or repaired anymore, so I would strongly recommend that you (or your customer) start to consider changing/upgrading this PLC
  16. question about comments

    Yes this is of course correct Crossbow (regarding both new CPU's and "select" options), however my point was simply how easy it would be to have a dedicated "comments" memory. If you have a big program, why should you have to exclude comments in the download? You could say that: 1. Don't download comments 2. Just download some of the comments 3. If you have a FX, buy a Q. 4. If you have a full Q, then put in another one (to a total of 2/3/4 CPUs) and so on.... All in all, I don't feel that this is a problem, but as I first said; the solution is so easy and cheap and I cannot see why they haven't implemented this many years ago (and still don't implement it)
  17. question about comments

    OR: If someone at Mitsu (or other brands) would actually sit down and give it just a tiny, tiny, tiny thought they might find out that memory is cheap today , so why not just put in a small dedicated memory for comments, and always save everything ..... It would probably increase the price by 0.00001% Never understood the "logic" regarding this , so if someone have a good "answer" let us know
  18. Mitsubish FX3u - GX IEC developer.

    Hi POCKO! I downloaded and opened your FBs without any problems, did not have any problems! I've also opened it it IEC 7.03, put all the compiler parameters to default (so that the project compiles as 7.03 code), and it compiles without problems!Just to let you know
  19. Hi. Log into the Mitsubishi Electric Europe site (http://www.mitsubishi-automation.com/). If you don't have a user account, just create one.... Go to the download section (you can find this on the left hand side), and select as in the picture below and click "Search / Overview". Then you'll get a list of many program-examples/function-blocks/libraries which you can download, unzip and install (and as mentioned in the previous post you can check out the help-file). Better?
  20. How to read locked Mitsubishi A3CPU

    You will have to know the keyword (password) to be able to read out the program from the PLC. Discussions about hacking/cracking passwords are forbidden in this forum, so please do not ask for that! I would suggest to try and find the password for the original program.
  21. Version control software with GX IEC Developer

    It's always been hard to do version control with GX IEC, and the "best" solution I've found is simply to use version numbers in the folder name (the project folder). The best answer I could give you right away would actually be to "wait until GX Works" is released. GX Works has a built-in version control, and will hopefully be released in Europe/English after the summer.
  22. Hi! You're using GX IEC Developer right? I would start by getting a library from Mitsubishi (you can find them on the CD, or download them from the internet). When you get one of the libraries, they will contain a project and a help file, and the helpfile describes how you can import a library (containing function blocks) into an existing project. When you've got this, you will have a project containing a library and/or function blocks. You can open these by "right-click", and select open. Then you can edit the FB's inside the library as you would any other program in GX IEC. You can also create your own function blocks simply by adding a new POU and select FB instead of Program and select your desired language (Ladder, ST, IL...). The header of a FB gives you the possibility to define your variables as inputs/outputs (in addition to local variables or constants) You can also create your own library by "right-click" the "Library Pool" and select "Install/Create user library". Then you just enter a path and a name for the library, and a .sul file is created by GX IEC. You can then add function blocks to the library by cut/paste (Ctrl+C, Ctrl+V) to "move" the function blocks from your regular "POU Pool", to your new Library. Do some testing, and let us know if you're stuck in any of the suggestions above.....
  23. Mitsubish FX3u - GX IEC developer.

    No problem By the way, next time, if you explain exactly what you want to do and what equipment you are using right away (like in this case, where you only wanted to display decimal numbers), we might be able to give you the "easy way" at once and save you some time and frustration..... Best of luck!
  24. Mitsubish FX3u - GX IEC developer.

    If you don't need the REAL numbers in the PLC (you only wan't it for the display), why not just scale it in the display (take a look at the picture)? You don't need any PLC code, just adjust the gain (0.1 divides the value by 10, 0.01 divides by 100 and so on), and you can select the proper number of decimals.... Just test it in E-Designer with the simulator and you'll see it right away....
  25. Mitsubish FX3u - GX IEC developer.

    I think you have to open the program of the function block, and modify the code (you could replace the function with real-number functions instead of standard INT/WORD functions.....). Or, you could just scale all the numbers (before converting them to real), and then convert the results to real numbers, and divide by 10 if you wan't 1 decimal....