Michael Walsh

MrPLC Admin
  • Content count

    1801
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. CP1L-EM RS485 Problem

    Which port are you using?  1 or 2 on the PLC?  In your settings, you should have 8, 1, E according to the default parameters of the sensor.  I cannot tell what the end code is from this document, perhaps I am missing it.  It looks like you scan a code to set the end code.  I see that you have an end code of 77, which is "w", not a standard end code by any means.
  2. Auto Screen Switch

    As far as where to find documentation on the VB like programming in the NA, I have no answer as of yet.
  3. Auto Screen Switch

    Ok, I thought on this a little bit more and wanted to come up with a way that it only calls the subroutine when it is on the Intro_Page.  No reason to call it once you have switched.  Instead of making a Global Event that calls the subroutine, go to the Intro_Page and display the Events and Actions window (View pulldown -> Events and Actions). Then, add a new event based on a condition and have it call the subroutine.  Like this:  
  4. Auto Screen Switch

    I would create a global event that calls a subroutine that I called "SwitchFromMain" every second, like this: This is what my subroutine looks like: I am sure that there are other ways to do this, but this is what I came up with.  
  5. Connecting Sysmac Studio HMI to CJ PLC

    Mute your computer and then watch.   
  6. Cj2m-CPU31_ Allen bradley powerflex 525_Ethernet

    Assuming that you mean using EtherNet/IP, do this: http://forums.mrplc.com/applications/core/interface/file/attachment.php?id=13622 But instead of using the BNI EIP-508 EDS files, use the EDS files for the Powerflex found here: https://marketplace.odva.org/uploads/product/eds_file/580/11171_EDS.zip Notes: Don't worry about the BNI specific settings (Port Function).  The only type of connection type that can be set is Discrete Exclusive Owner.   The sizes of your tags will be different than the document.  Your tag sizes will be 8 bytes on the input side and 4 bytes on the output side.
  7. How do I display UNIT_BCD value from Omron PLC to Indusoft Scada

    @paresh It is quite simple.  You just have to change the expression for the display (this is for display only, not entry): Example: I have put a value of 123 (BCD) in DM_Test0.  With my expression set to this: My display shows this: 291 is of course the integer value of 123 (HEX).   If I change the expression to this: This tells the display to format the variable as if it was a hex value.  BCD is a subset of Hex, so it causes the display to change to this: And the BCD value is displayed properly.    
  8. CJ1M CPU13 Units not connecting to NS5-SQ01B-V2

    You can do a CTRL+W and CTRL+T method as well, just make sure to check the settings box before pressing OK: This is a CJ2H PLC, but the same holds true for the CJ1M.
  9. CJ1M CPU13 Units not connecting to NS5-SQ01B-V2

    Sorry, should have read closer....
  10. Omron Programming PLC TIMERS

    Here is some sample code of a 1.0s On-delay timer function block. On delay FB example.cxp
  11. Cognex Dataman 260 Series - Sysmac Studio

    First, add your device to the connection tab (as it looks like you have done, adding here for the benefit of others).  Note that you can see the available target assemblies by putting your cursor in the Target variable field and hitting CTRL+Space and you will see the options available.  Choose 11 (only option for input) and 21 (Only option for output).  The size of each assembly will then be shown. Next, go to your global variables in the project and create variables that are the correct size for each assembly.  Make sure to choose Network Publish input and output as appropriate for each variable. Next, go back to the EtherNet/IP settings and choose the Tag Set window.  Click on the Registration All button as shown below: Make sure the variables that you intend to use are checked and then press Register as shown below: Choose the appropriate variables for each connection as shown below: This is now ready to be downloaded.  Do this from the EtherNet/IP window or through the Transfer to the NJ or Synchronize process.  Note that if you do it through the Transfer to NJ or Synchronize process that you need to uncheck the box shown below as the EtherNet/IP settings are NOT transferred by default using these methods:  
  12. R88-1S servos with immidiate stop

    You could also move "stop trigger point" on the counter back a fixed known distance and then issue a relative move command to the virtual axis with it set to abort the original command.  Then you will have control over how far the servos move after receiving the stop command.  This option will take the variability out of the distance if the speed (while counting) changes from one operation to the next.  
  13. Cognex Dataman 260 Series - Sysmac Studio

    Can you attach the EDS file for it?  I looked online and apparently you have to install their configuration tool to get it.  I don't want to do that. I can provide an example once I have the eds file.  
  14. CJ1M CPU13 Units not connecting to NS5-SQ01B-V2

    I cannot see your settings (images are missing, for now, I will assume they are correct), but the first thing that I would check is the dip switch settings on the CJ1M-CPU13: Next, check to make sure you are using the correct cable.  An off the shelf store bought cable will not work.  You will need this: If you don't want to make this cable, you can purchase it from Omron, it comes in a 2m or 5m length: XW2Z-200T                 2m XW2Z-500T                 5m  
  15. Encoder Pulses

    Actually, I was using a CP1L in my online test shown above. The problem with your code is one of the contacts that you used. See the picture below: You have used a normally closed differentiated down contact. This means that it will be true all of the time, except for one scan when the limit switch turns off. This will make the move statement constantly move the present value of the counter in that rung. Change the contact as shown in the picture and it will work for you.
  16. NT31C SYSTEM TRANSFER PROBLEM

    I believe that you had to use a serial cable with full handshaking for this to work. Make sure that you are using a C200H-CN229 style cable. See pic below:
  17. Network between CJ1M and CP1L-L

    Just setting the port up as Protocol Macro is not enough to make the communications work. You need to write a protocol, store it on the SCU module and then trigger it from ladder using a PMCR command. You could use the C-Mode Host Link commands to get this done. I have attached a Protocol Macro that should get you pointed in the right direction. CS_CJ_CHostlink.zip
  18. C200H CPU

    You can communicate to the C200H using RS232. You will need the C200H and an LK201 (two versions available, the CPU mount version (3G2A6-LK201-EV1) and the rack mount version (C200H-LK201-V1)). The hard part will be finding an LK201 module. If you already have one, you can make a 9 pin to 25 pin serial cable and connect to the C200H with RS232. I have attached the cable pinout for this connection. It is a 9 pin female on the PC side and a 25 pin male on the PLC side.Omron PC to 25 pin port.pdf
  19. Sysmac Studio Improvement Request

    You can use the JMP instruction (or MC and MCR instructions together) to get down to even the rung level.  Of course you could use either JMP or MC instructions at the beginning of a section (and MCR at the end) and use it to jump the entire section.  They are very simple to use.   The main difference between the two is whether or not output values are retained when JMP or MC/MCR are used.  The other difference is that JMP jumps when active and MC/MCR executes the code between when active.  
  20. Map Physical Input and Output to Word

    Ah, then unfortunately you will have to do it bit by bit at the beginning of the code for inputs and at the end of the code for outputs.
  21. PIDAT Program setting

    That is correct.  PID / PIDAT instructions do not work in simulation.  
  22. Map Physical Input and Output to Word

    Just assign a word variable to the input channel (in my example, I am using an input card) and then put a move instruction in the first rung of code that moves the input word variable into the unionVariable.word and done. Of course output words would be at the very end of your program and you would be moving from the unionVariable.word into the output word.
  23. PLC data showing zeros in vijeo citect

    Does this have anything to do with Omron?
  24. Map Physical Input and Output to Word

    You have to make a union.    See below: First, make a union under data types like this: Then create a variable that is of the type that you created: Then use the variable as both a bit and a word like this: You can ignore my comments about VB in the ladder, this was an example that I did for someone else. 
  25. Lamp Bit and Buzzer

    Good point ... I did not look closely at the processor.