Michael Walsh

MrPLC Admin
  • Content count

    1098
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. Aritmética cx-programmer

    Using Google Translate:  He asked: "Good evening. Could you help me, what better way to run the following account: Cp1l omron Y = a. 1.06 - 150 a = analogue input signal channel a643" I responded: "Hello.  I would use the function block example here:"
  2. Aritmética cx-programmer

    Olá. Eu usaria o exemplo de bloco de função aqui: http://forums.mrplc.com/index.php?/files/file/996-analog-scaling-function-block/  
  3. Hypens have been replaced with ASCII boxes

    Mine looks like this: Is there anyway your default language was changed or something?  Seems like it may be referencing an odd FONT.
  4. Output not on

    Can you post your code for us to look at it? If you don't want to post it, you could message it to me and I will look.  
  5. Output not on

    It is difficult for me to see what the contacts are in your rung, but one (at least) of the three contacts in the lower branch of the rung does this (lets just call it BitA):   BitA is turned OFF by the ladder code somewhere before this rung  When this rung is scanned, BitA is OFF, therefore the coil does not turn on. BitA is turned ON by ladder somewhere after this rung.     Sysmac Studio can only show the status of the bits at the end of the scan as bits can change too fast during the scan to display this, so it looks like the coil should be on.  However, when the rung was scanned, the logic was NOT true and the bit is NOT on.   The output bit is not turned on for the next scan because when the ladder scans from the beginning, BitA is turned off by the ladder again and is still off when the rung in question is scanned.  My picture above shows this.  The first rung Resets the OnCondition bit.  When the second rung is scanned, OnCondition is FALSE, so Outbit is NOT turned on.  The third rung Sets OnCondition to True.  Sysmac Studio displays the status of the bits at the end of the scan and therefore it looks like Outbit should be on.  When the ladder scans again, OnCondition is Reset to FALSE again and Outbit NEVER turns on.
  6. Output not on

    Is the inside of the coil colored in, or is it blank, like this:   If the inside of the coil is not on, then the condition that turns it on is FALSE when the rung in question exectues (rung 1 in this example) and then is true after the rung in question.  Since Sysmac Studio cannot show the value as each rung executes and only shows the value of all bits/words at the end of the scan, it looks like the coil should be on. There are a few other possibilities, but start here.
  7. I/O not getting updated in one rung

    Then unfortunately, all we can do is guess....   1)  Did you download the code to the PLC? 2)  You said that you looked for IL commands, did you look for Jump commands? 3)  Is the code in SEC_04_15 - SEC_04_17 working?  If not, look for an extra END statement before your code that is not updating.
  8. I/O not getting updated in one rung

    Did you verify that the code is in the CJ? Attach your program and we will look.  We are just guessing without seeing the code.
  9. I/O not getting updated in one rung

    Is the function block used elsewhere in the code?  If so, were unique instance names used?  If you post your code, we can take a look and let you know some more ideas.
  10. Will Sysmac Studio coexist with CX-One?

    I agree that they should be installed on the same VM.  I have been running them on the same PC since Sysmac Studio came out and I have not had any issues.
  11. How do I make a recipe

    This is an example of how to do it using the PLC.  It allows for a bit more flexibility.  This is just the basic beginnings of the program, but shows how it would work:   http://forums.mrplc.com/index.php?/files/file/1030-recipe-sample-code-ladder-program-with-supporting-nb-project/
  12. OMRON ODD or EVEN value

    Yep!  And older PLCs that will not let you do contacts for D bits have the TST and TSTN instruction.
  13. OMRON MODULAR DIVISION

    The regular / and /L instructions return the modulus (remainder):
  14. Sysmac Studio and Motoman Robot problems

    Try making your Input and Output variables arrays of bytes, 16 bytes each.  If that works, then you can create a union that is either an array of bytes or an array of bits.  
  15. Omron NT31C-ST142B-EV2 communications to a Omron CJM1 CPU11

    You would not use CX-Integrator for this.  You need a software package called NTST.  I believe that the last version was version 4.82.  If you have your CX-One install disk, it is in a folder titled Utilities.  I can still run it in Windows 7, but anything newer and you may need a virtual machine with an older operating system.
  16. FB's

    If you execute them at the same time, then the last one will be the one that is valid.  You get around this by only executing one at a time.  I am not sure if this is exactly what you are asking, but we should start here.  If you are having some other issue, please provide more information.
  17. MOVE

    You may want to consider rounding (perhaps to the ones place though) as shown here: http://forums.mrplc.com/index.php?/topic/34317-595000-czy-chodzi%C5%82o-ci-o-jak-mog%C4%99-zaokr%C4%85gli%C4%87-warto%C5%9B%C4%87-realu-do-2-miejsc-po-przecinku-how-can-i-round-up-the-real-value-to-2-decimal-places/#comment-160536
  18. what is this instruction?

    @Eric Miller:  I missed the fact that you were already using the simulation mode.   I had no problem changing the value of 2005 in simulation mode, using your program.  The picture below shows the value of 2005 being 2000, which I manually entered:
  19. what is this instruction?

    Yes, it is the nature of the beast.  The input will always be updated, no real way around that.
  20. what is this instruction?

    Since 2005 is an input from an analog module, it is overwritten by the analog module the next time the PLC scans.... if you want to test the functionality, put a dummy address that is not used in the program (or by an I/O device) and then test.  Or go offline from the PLC and test in simulation.  
  21. what is this instruction?

    That means that the address (W75.11 in this case) is controlled by a DIFD instruction.  The contact itself is just a regular NC contact, but the bit will not act as if it is controlled by a coil.  As I was typing this, @Knox replied.  I agree with him ^, trailing edge instruction.  When you typed ANDNOT to try to replicate, you must have chosen an address that was not controlled by a DIFD instruction.
  22. Half Screen when app is opened.

    .attach_div {float:left;margin:3px;} .attach_content_div {font-size:14px; text-align:center;} A colleague of mine just shared this with me.  Open CX-Programmer, choose Options from the Tools Pulldown menu, make the setting shown below and restart CX-Programmer.  It is supposed to resolve this issue.  If you try it, please confirm if it works here.  
  23. NB7W hmi password

    The default is 888888.  Try that.
  24. Hold a "For instruction" for X time

    I would recommend this: Once the ConditionForRunningLoop turns on, the For Loop will run for 5 seconds and then stop.    
  25. 1.  Unless you purchased this from Omron (or if it is specifically designed to work with an Omron PLC), it will not work.  I am not aware of an Omron USB / serial cable (but that does not mean that it does not exist). This is what the CW1W-CIF01 looks pinout looks like: and therefore needs this cable from a PC port to the serial port: