captainpatje

MrPLC Member
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About captainpatje

  • Rank
    Newbie

Profile Information

  • Country Netherlands
  1. How to connect + Program wire encoder

    Hi all, I am not a PLC expert but can find my way within the program and would like to develop much more. For work (We sell industrial bandsaws) we have purchased a Posital Fraba wire encoder, and we would like to hook it up to our Mitsubishi FX3G PLCs to measure at what height the saw bow of the bandsaw is at that moment. Unfortunately I have little experience with connecting these things, as other encoders used in our machines are pre-installed by our factory. Below is described what functions the wires have. What I thought was the following: Pin 1 goes to an input of the PLC Pin 2 goes to + (or 24V) Pin 3 doesn't go to "Ground" as they describe, but instead to - (or 0V), which is technically ground Pin 4 and 5 we don't use, correct me if I am wrong. The saw bow goes up and down only, and I thought we don't need to use these wires.   I connected it like this, connected wire 1 to X0 on PLC and just to test I made the program read:   M8000 ------------------------------ C235 k99999   But the value stays 0, whether I pull the wire or not. So something is wrong, but what, I really can't figure out. Hope someone can help!  
  2. Converting digital output from FX2N-2AD module to mm

    Okay! Highest point of the sawbow = 54mm 54mm = digital value 589
  3. Converting digital output from FX2N-2AD module to mm

    Hoi Gambit, Even though we are both Dutchies I will continue in English. When the sawbow is down, which would amount to 0 mm, the plc has a digital value of 502. Can you tell me how to adjust it to be correct? I have already played with some offset/gain but I don't really understand how that works. Thanks! PS. Not using Mitsubishi GOT, using some HMI called Pingtung (Chinese brand). Software also gives me possibility of offset/gain, but rather do it via screws on the module.
  4. Hi,   We have a company that is specialized in bandsaw machines, this is one of those machines: What we have done is hook up a wire encoder to the saw bow and the other end of the wire on the base of the machine. You can see a picture of it in the attachment. I have followed the manual of the FX2N-2AD module, the wire encoder requires the current input from 4-20mA, and I am getting a digital output, but this needs to be converted to show in millimeters on the HMI. Unfortunately I am only learning how to do this, and am not an expert in Mitsubishi PLCs (yet). Currently the only code we are using in PLC for reading the 2AD module is found in attachment. TLDR: Wire encoder giving a digital output, but now need code that can convert this value into mm.    
  5. Silly question: bits calculation MOV command

    Ha! Ja dat klopt. Oh dus het steekt zo in elkaar. Bedankt! Duidelijk! PS. Zit ik verdomme in mijn Device list te kijken zie ik inderdaad dat 8 en 9 niet bestaan. Zoveel kennis heb ik er dus van Weer wat geleerd!!   In English: @inntele, dang, I looked in my device list in GX works and can indeed see that 8 and 9 are non existent. Shows you how much knowledge I have of this haha! Well hey, I am glad that you guys could understand my nonsense explanation and made some sense of it! Thanks!
  6. Dear all, Just to let you know: I am not an PLC expert, but for my job I was send to our headquarters in Taiwan to learn basic PLC programming. For context: We sell bandsawing machines (metalcutting saws) for industrial use, and we sell certain options with this (blade deviation detection, mist spray, laser light) which all use inputs/outputs on our Mitsubishi FX3G plcs. Now I must say that I have learned more than originally thought, but one important thing I am not familiar with, which is the calculation behind bits. What I mean by this is, when you use the MOV command, f.e K4X020 K4M020, I know this means K4 actually means 4x4=16bits it moves. But then I don't know where the gap is, because I am tempted to count like this: x20 = m20 x21 = M21 x22 = M22 X23=M23 x24= M24 x25=M25 x26=M26 x27=M27 x28=M28 x29=M29 x30=M30 etc But i know this ain't right, because I should count until x25 and then forget x26, x27 and then go further with x28. Or something like this! This is the easiest way how I could explain the problem I am facing, again I have not really mastered the knowledge of bits, but could someone explain to me how I should know which inputs/outputs I should skip? I was told once but I completely forgot. Thanks in advance!!