Luke.S

MrPLC Member
  • Content count

    110
  • Joined

  • Last visited

Everything posted by Luke.S

  1. If you just want to run a Mitsubishi rotary servo at a constant speed does it make any difference if you use the JOG command or put it into speed control mode? Or to put it another way; is there any reason you should <u>not<\u> use jog mode for routine operation?   Say you have 8 servos in a line that you just want to run at a very low, accurate speed, simply putting 8 JOG FBs in the program would save a lot of time. You can change the speed even in JOG operation with the speed change command. The drive must be controlling the torque in the same way to achieve steady velocity as in speed control mode unless you are limiting torque or something. So what's the difference?
  2. E700 Drive

    Are you talking about an unwinder tension control? Anyway with an  E700 inverter presumably you're using an induction motor. If you forcibly reverse an induction motor I would expect it to trip the drive or at least overheat pretty badly. It sounds like you should use a permanent magnet servo motor or torque motor. 
  3. String to Decimal

    If you interpret the ASCII table in decimal, the number characters start at 48 for zero. Therefore if you subtract 48 from any number character byte, you will get its unit value. To get the tens, multiply by 10. To get the 100s multiply by 100 etc. Then sum them to get the number. E.g. (57-48*100)+(52-48*10)+(53-48*1) = 945 Because Mitsubishi PLCs have maths functions which take data 2 bytes at a time, to get the single byte you could mask the byte you don't need with WAND. Then shift the byte to the right place with SHR. E.g if you have '34' in D1, the following should give you decimal 3 in D10. WAND HFF00 D1 D10 SFR D10 k8 - D10 k48 D10
  4. Open B&r 2005 Files

    Unlike some other PLC brands, you cannot upload B&R source code back into the programming tool. Compiling the project into binary data to write to the CF is a one-way process. You should speak to the OEM or whoever developed the software regarding obtaining a copy of the source code. Sometimes a copy of the source project is attached on the CF in the user partition but if you cannot find a .apj or zip file anywhere then it appears that it is not in this case.
  5. Stop positioning instruction!

    I've used the LA and LB line driver outputs before to get the position from an analogue IO drive. That was to a Q and I used the QD62 high speed counter card with no problems.  Your FX5U should support a FX3U-2HC high speed counter card (I think it also needs a bus converter module). If you're willing to fork out for this hardware, it will be a sure-fire way to receive the line driver pulses from the drive.  
  6. CVS file log not generated.

    Or even better, handshake with the HMI: 1. SET your logging trigger 2. Map the 'Logging Notification Device' to an M contact 3. When this M contact turns on or any relevant alarms occur, RESET the logging trigger This is much more robust than using a timer delay.
  7. AJ65SBT2B-64RD3 PT100 Module

    Yes, just writing H0 should disable averaging. Or H0101 would also do so I think. Are you sure you have the correct X and Ys. Check your cclink remote device map: Is the cclink definitely communicating and the RTD station not in error? If it is working properly and you follow the program example only change device addresses for your hardware config, it should work. Yes you could just enable the X1018 network with a one shot but you would have to do it after the network communication was established, not SM402. I suppose you could just wait 1 min with a timer and trigger it on the rising edge of the timer to see if it's working. But the right thing to do would be to get a program like the example working. Post a screenshot of any parts if you'd like me to explain what it's doing.
  8. FX5 PLC loses impulses from encoder

    Yes sorry, I think JRoss is right. It's different if you're using high speed counting functions. It says the specs are up to 100kHz for 2 phase input.
  9. AJ65SBT2B-64RD3 PT100 Module

    If you just delete the lines it will be in sampling mode. If you do that then I think you will need to set another hex value so than the number of samples is zero. Or there should be a hex code you can set so that averaging is off completely. But you will still have the delay from the ADC time. Please look in the users manual for the hex codes.
  10. How to calculate KWH from instantaneous KW

    Perhaps it's easier if you consider that a Watt = Joules per second, the rate of energy transfer. So a kWh = 3600000 Joules. 1kW = 1000 J/s 1 kWh = 3600000 J Now imagine you wanted to know how close you got to a city 3600000 meters away travelling at a speed of 1000m/s. You would integrate the speed over time to get distance. If you travelled for 10 minutes you would do (10*60)seconds * 1000 m/s = 600000m. 600000/3600000 = 0.166 so you are 16.6% of the way to the city. In the same way, if you integrate the instantaneous kW over 24 hours you will find how close you got to a kWh. Or how many multiples of kWhs you did. You can do this in the PLC by adding the kW PV to the on the rising edge of a one second timer. |--(NOT t0)-------------------------------------[t0 10]--| |--(t0)--↑---[+ kW_SUM kW_PV kW_SUM]--| |---------------------[/ kW_SUM 3600 kWh_PV]--| The kWh_PV will tell you how many kWh you have done in the integrating period and you could log this value and reset to zero every 24 hours. Sampling the kW PV every second may not be fast enough depending on how fast it fluctuates. So you could sample it every 100ms but you would have to devide by 10 before adding it to the sum.
  11. AJ65SBT2B-64RD3 PT100 Module

    The hex code specifies the averaging method used to reduce the effects of noise or other unwanted disturbances. Basically like a software low pass filter. These will be explained in the manual for this module and you will find the hex codes there too. The D register will be copied to the buffer memory on the PT100 module for the averaging settings. They've only set up CH1 and 2. Probably CH3 and 4 will be in D1002, D1003 but you might need to change the FROM/TO functions too. If your temperature signals are not stable or too sensitive to things like doors opening etc., you might consider using averaging. Although it does delay the feedback to the controller, it shouldn't be a big deal in a temperature control application. If you just delete those two rungs, I'm pretty sure all channels will just be on sampling mode anyway (they will just be 16#0).
  12. Indirect addressing FX3U

    You may find this post helpful:   http://forums.mrplc.com/index.php?/topic/31279-iteration-trough-data-registry/&do=findComment&comment=146904
  13. FX5 PLC loses impulses from encoder

    To the OP, you said the input response settings are "no setting" or 10ms. This means you are sampling the encoder at 100hz. But you should be sampling at at least double the maximum frequency of the encoder. This explains why it's ok at 41.5 rpm but only catches pulses intermittently at higher rpms. You can lower the input response for the high speed X inputs to 0.6ms minimum giving you around 1.6kHz sampling or 800 pulses per second at the encoder MAX. If you expect in the application that the encoder can give you over 800pps at higher speeds, you should use a high speed counter card instead.  
  14. PT100 on Q50UDEH

    RTD = Resistance Temperature Detector There are various standard RTD types and PT100 is one of them ( 100 being 100Ω I believe) . You can take the readings remotely over CCL with this device station: https://www.cc-link.org/sch/c020?CL=1&prodId=Prod46&menuSeqNo=2 Then you would have to use function blocks or code PID in the PLC to calculate commands to output to PWM or whatever method you are using to control your heater. OR You could just use a temperature controller which interfaces with the PLC over CCL. It handles the PID loop locally and will have an auto tuning function greatly reducing your development and tuning costs. Commands such as temp. SV and monitor data such as temp. PV can be sent over CCL. https://www.cc-link.org/sch/c010List?bunruiNm1=CC-Link&catTemplateSeqNo=9&menuSeqNo=2 If your project is simple ladder (no variables) and you can't use function blocks then you are looking at a quite involved and risky software development if you do the PID on the PLC. I'm assuming you are using CCL v1.1 or 2 with a Q here.
  15. Q series PID control

    What do you want to control with the PID? There are PID function blocks available in Mitsubishi which are probably best suited to temperature control.  For harder realtime applications I have PID programmed in simple ladder but I would have to make a generic example to share it.
  16. Coverting Q-A series program

    It's relatively easy to do so. In Gx works 2 in the file menu there is an option to open a Gx Developer project. The project will be converted to Gx Works and can be downloaded to a Q without a lot of modification but you need to watch out for: 1. Special relays and registers. E.g these are M8000 onwards etc. in A but need to be changed to SM400 etc. in Q 2. Analogue scaling calculations might need to be reviewed because the resolution of Q hardware is generally higher than A (16000 vs 4000). Although some Q modules let you choose 4000 resolution mode instead of 16000. 3. You will probably need to carefully check X and Y assignments and FROM/TO command unit numbers.
  17. Real Time comparision Using TM instruction.

    For example: |-----[TM= D10 D20]-----------(M0)--| When the time data structures in registers beginning D10 and D20 have exactly the same time, M0 turns ON ("conducting").
  18. Distance Measure with rotary encoder 2phase A/B

    Please tell us more about the arm. Is it rotatating directly about the encoder shaft? Or is the part where the displacement takes place linked to the encoder by gears/pullies? Because your units are mm it sounds like some kind of ratio needs to be calculated.
  19. MR-J4 SERVO POINTS TABLE QUESTION

    Technically you could put a HMI on the IE Field network. Then you could program the PLC, via the HMI USB port for example, in transparent mode without needing two networks at the FX5U. CC-Link IE Field has two layers of communication; cyclic for control/drives and transient for data. It is not the same as standard ethernet hardware and you can't put them on the same hub. There is a new GOT model which connects to IE Field: https://www.cc-link.org/sch/c020?CL=1&prodId=PD12050554&menuSeqNo=2   But it is probably quite expensive and I don't know what the support would be like in your location yet. Therefore I would recommend just setting up a normal Ethernet for your programming and HMI. It would be nice to have one network with the HMI, drives and remote I/O all on there but the cost would probably be a little bit higher than standard Ethernet/CC-Link V2 right now.
  20. can't config timer interrupt in GX IEC developer

    Something like this should work. There are 3 timer interrupt pointers I6 to I8 for the fx3 series. The last two numbers after the pointer are the interrupt timer in ms e.g. I610 is 10ms, I620 is 20ms.
  21. A few things to try: 1. Update to the latest version of Gx Works if it won't cause compatibility issues with your end user. Updating often fixes a lot of stability issues like this. 2. Delete all data on the PLC and transfer the whole project again (only if it's safe to do so!). This is an option at the top of the same window that you open to write to the PLC. 3. Add more RAM to your PC. I doubt Windows XP would cause problems but also perhaps try it on a Win 7 PC too. 4. Uncheck "device comments" in the write options. A lot of models with smaller ROM capacity can't store all the comments of a large project. Apart from that, we would need to know the model of your PLC and whether you are using a simple project or labels (variables).
  22. Trouble editing ladder program

    You should go to the search function (ctrl+f) and search through everything. Click yes if it asks you if you want to search other data. The project could contain an SFC program and the timer might be in there if it is not in the ladder program.
  23. PLC won't connect with PC

    What are you connecting your PC with? Ethernet or USB? What is model of the monitor panel and PLC? How are you connecting them?
  24. Bit shift

    @kaare_t Yeah I learnt this stuff at university but when you've done it many times and you know it works you just use it without thinking. But it certainly is good to have to justify what you're thinking every know and again. I think decimal addition holds up to the same principle too. E.g. if I have 10 (1x10^1+0x10^0)and I want to put 2 (0x10^1+2x10^0) in the "empty" space on the right, 10+2=12 works. But you're right, using OR instructions is probably a simpler way to do it. I'll try using them next time. Anyway, I think this is going a bit off topic sorry..
  25. Bit shift

    @kaare_t I think a WAND of D30 D20 (H0034 & H3500) would just return H0000. My idea is to put the "5" to the left of the "4" in the same word with binary addition. This will XOR the bits so if a 1 is there it will be kept as a 1 in that position. Because there are no 1s being XORed together in this case there won't be any carries.