Veganic

MrPLC Member
  • Content count

    471
  • Joined

  • Last visited

Everything posted by Veganic

  1. Real numbers

    I haven't tested it. Does it work? The idea is : val1 is 32 bit each M is 1 bit. Each K "stands for" 4 bits. K1M0 stands for M0,M1,M2,M3 K2M0 stands for M0,M1,M2,M3,M4,M5,M6,M7. and so on. say val1 = 11101010101010101010101010101010 (32 bit binary reading Bit 0 to Bit 31 - sort of back to front but you get the idea) then K8M0 = 32 bits (8*4 =32) So when K8M4 :=Val1 then M0 =1, M1 =1, M3=1, M4 = 0......M31=0. Take this as two 16 bit words, M0 to M15 is K4M0 and M16 to m31 is K4M16. So D200 = K4M0 = 1110 1010 1010 1010 and D201 = K4M1 = 1010 1010 1010 1010 Edit : let me know if that's not clear.
  2. How to add a DI/DO card in a FX2N

    It's not easy to explain the way the i/o in used with special extension modules. See this manual, which may help: http://download.mitsubishi-automation.com/...submit=View+now If you are stuggling to find the start address for you extension unit just force Y10, Y20, Y30 etc. until a light comes on.
  3. Real numbers

    This is not tested: val1 defined as DINT K8M0 := val1; D200 := k4M0; D201 := K4M16;
  4. File registers ?

    You seem to have understood everything quite well. What bit are you stuck on? This may be saying what you already know but : From the FX2 'handy' programming manual: -------------------------------------------------------------------------------------------------------- Consider them 'read only' changed only by a program download. ------------------------------------------------------------------------------------------------------- Don't any of the following strings appear on the HMI? ERROR EN D3/D4 ERROR ON PHASE2 INITIALIZATION ERROR ON S3 NAPAKA VAR STRAN WORKING READY MACHINE STOPPED DOOR OPENED EMERGENCY STOP The Bmov moves the above strings to D100-D108. D102... do exist in the program implicitly in the BMOV. They are not used anywhere else in the program as they are for the use of the HMI only. ------------------------------------------------------------------------------------------------------- The file allocation could be a typo?
  5. Device memory Fx1s-2MT

    Type directly into the 'box' in the table. Don't type into the 'popup'
  6. Device memory Fx1s-2MT

    Why do you want to change it? What happens when you change it? What is connected to outputs Y0 and Y1? You can change D128 either: 1. in the device table, then download. 2. with online 'device test'
  7. Device memory Fx1s-2MT

    Zip the entire project directory.
  8. Device memory Fx1s-2MT

    9600Kb! Are you sure?
  9. Device memory Fx1s-2MT

    Round about line 286 : -----[DMUL C251 K-1 D2] Zip up the program directory and it will make more sense.
  10. 3 x serial on FX1N

    What are you monitoring with? Transparent mode should* work with anything that would normally connect to the PLC. Alternatively look at connecting the modem directly and the RS232 device thru the plc. Or look at the costs of the FX3 suggested by Crossbow if you have the latest software.
  11. 3 x serial on FX1N

    For ladder program monitoring? Relatively simple. The only limit I found was that the connection speed between the PLC and HMI had to be reduced to give reliable connection. E-series, just put a modem between the PC and HMI, consult the manuals. http://www.beijerelectronics.com/web/beije...1256FFF003DE5ED (As you can see it also does 'no protocol' mode for connection of an RS232 device.) And for Redlion: http://www.redlion.net/G3features/G3%20Fea...%20through.html The Redlions are cheaper, have more ports, and have a programming function but the display is not as beautiful.
  12. 3 x serial on FX1N

    Ask the manufacturers, I know nothing about Delta..sorry. It can be done with a Mitsu E-series and Redlion G3's using transparant or pass-thru mode. What functions is the modem to perform?
  13. 3 x serial on FX1N

    FX2N-232-IF doesn't work with FX1N so that's one problem solved. One possible solution would be to connect the HMI to the PLC, then the modem or other device to the HMI. What HMI are you thinking of using?
  14. Inverter multidrop

    I haven't found any yet but haven't checked out the part numbers. But.... I have the following 'snag'. When checking the inverter for faults I get 'B1' meaning PU error. As I am connecting through the PU connector this is understandable. So what parameter do I have wrong (I've tried various settings for P79 and P75)? Edit : It's an E500 BTW.
  15. Inverter multidrop

    I want to connect to a couple of Mitsi inverters with RS485. What plugs do I use and how do I connect them to the RJ45 sockets? Do I wire to terminals first or is there some what to get 2 wires in a tiny RJ45 plug? Advice and/or RS part numbers gratefully received.
  16. Inverter multidrop

    Thanks for the reply It's not so much 'where do the wires go' as 'how do you get them there.' The inverters are the new D700s with RJ45 plugs. I was just wondering what other people do to daisy-chain them together as I doubt that it can be done at the plug. If I connected to terminals I was worried about ending up with a star-connection and possible sceening issues.
  17. Serial Port Sniffer

    Free but maybe not what you are after if you want to monitor the RS422 end: http://www.serial-port-monitor.com/
  18. Compare command

    The sort is 'merely' to order the list so that any method of getting the difference between two values does not result in negative values. (is there an equivalent of a ABS() function for mitsubishis?) I understood the problem as follows: D105 = 'the differential' = 100 L1 = 550 -----------Diff = 30 L2 = 520 -----------Diff = 70 L3 = 450 -----------Diff = 50 L4 = 400 ----------Diff = 50 L5 = 350 I assumed that this would be a NO FAULT condition as the difference between each level is <100. D105 = 'the differential' = 100 L1 = 550 -----------Diff = 30 L2 = 520 -----------Diff = 70 L3 = 450 -----------Diff = 50 L4 = 400 ----------Diff = 101 L5 = 299 This would be a FAULT condition as the difference between two of the levels exceeds 100. Is this correct or would the first one be a fault condition due to the the difference between L2 and L4 being >100? Even if you want it that way comparing all 5 values only takes 9 'comparison' operations. But I'm not sure of an easy way to do this without sorting first.* I've done the code but there's no point posting if it's not what you want. *Edit : If the difference is >100 or <-100 obviously! In which case the sorting wouldn't be necessary but the answer to your original question would be no there isn't a command to compare 5 values at the same time.
  19. Compare command

    I had nothing like that in mind
  20. Compare command

    I can post some code later unless someone beats me too it.
  21. Compare command

    1. Assuming : you only need to check the highest or lowest values. On the Q/FX2 you can do a SORT and then compare the two highest or lowest values. On the FX1 you could sort the data yourself somehow then compare the highest and lowest.
  22. ASCII Hex convert to BIN Decimal

    DHABIN: The D means the result is 32 bit. The instruction acts on 4 consecutive 16 bit addresses D4638...D4641. So D4640 and D4641 are likely to be H0000,H0000. Hence the fault.
  23. ASCII Hex convert to BIN Decimal

    Won't DHABIN used D4638, D4639,D4640 and D4641? Doesn't explain why HABIN doesn't work though.
  24. ASCII Hex convert to BIN Decimal

    DHABIN section of the Q programming manual. Any help?
  25. CC-Link Newbie

    Configurators are for wimps * I doubt if anyone can give you as much information as the CC-link module manual. The first thing is to make sure you get your addressing right, in TO/FROM commands for example. We will be able to help with more specific questions though. *Unless it's Profibus.