Michael Walsh

MrPLC Admin
  • Content count

    1363
  • Joined

  • Last visited

Community Reputation

171 Excellent

About Michael Walsh

  • Rank
    Omron Expert
  • Birthday 07/22/73

Contact Methods

  • Website URL http://

Profile Information

  • Gender Male
  • Location Charlotte, NC
  • Country United States

Recent Profile Visitors

10135 profile views
  1. Time+date set output

    This code will check the entered date and the current time and turn on the output for 1s. Here is the sDT format that you can use to enter the setpoint on the HMI.  Of course you could customize this to have the operator enter some of the fields and fix some of the fields to constants in the NX102 (for instance always move the current year into the year setpoint field or something similar).
  2. Analog Output Simple Problems

    @Megoof:  I fixed the link.
  3. Display Decimal values NB Screen

    It is simple.  Just change the number of decimals: If the address has 32000 in it, it will display 320.00 if the settings above are made.
  4. Tag Sets Max 32

    Not with the EtherNet/IP port that is built in.  Can you just add to existing tag sets or are you adding a new device / devices?  Tag sets (as you may or may not know) can have multiple tags in them. You could add a CJ1W-EIP21 if you are using an NJ processor.  
  5. Display Decimal values NB Screen

    Set the storage format on the Numeric Data tab to Signed integer.  Also pay attention to the data length.  Usually position data is a Double Word.   Of course you need to tell it the number of integer positions and decimal positions as well as Min/Max display values.  
  6. [NJ501-1300]Changing count mode

    Select Rotary Mode and then set the min and max as shown below: The 0 and 360 would represent a rotary axis such as a turntable.  
  7. CJ1W-ETN21 Detection

    Yes.  This is my suggestion.   Create IO table as if two cards are present and then use the card missing error to enable the single card program.   If you were to do separate IO tables for the 1 card method or the 2 card method, then you would already know which configuration you had and would not need to auto detect, you could manually activate program for 1 card or for 2 cards when installing it.  
  8. Modbus TCP with CP1H and CP1L from PM

    Are you trying to write 10 words from the CP1H starting at D0 to the CP1L and put the data beginning at D1001?   From the manuals that I see, Modbus register 1 is in memory location D1001: I would try to write values manually into D1001 in the CP1L and see if the value changes after the write FB is triggered (W10.00 on transition). Here is the manual where I found the above table: http://products.omron.us/Asset/CP1W-MODTCP61_SetupGuideManual_EN_201207.pdf Here is the guide for the Function Blocks that you are using: https://www.support-omron.fr/telechargements/documentations/2017-03-09%20-%2011-41-14%20-%20105486908/MRTU_CPU_Master_E.pdf  
  9. Modbus TCP with CP1H and CP1L from PM

    From @SamuelT Please, I want to know if you know how to communicate two plcs omron CP1H (master) and one CP1L (slave). The master CP1H will send 10 DM memories to slave CP1L. Now I have this configuration: CP1H MASTER PORT: CP1W-MODTCP61 MASTER IP: 10.150.1.5 SLOCK: 1, DIP SWITCH PLC # 4 = OFF CP1L SLAVE PORT: CP1W-MODTCP61 SLAVE IP: 10.150.1.1 SLOCK: 1, DIP SWITCH PLC # 4 = ON I use the modbus RTU function blocks, but the master PLC does not communicate or send the DM memory values to the slave PLC Thank you very much for your reply if you have any example program it helps me a lot MRTU_CP1L SLAVE.cxp MTCP CP1H_MASTER.cxp
  10. CJ1W-ETN21 Detection

    You could have both modules registered in the I/O Table and if one is missing, there will be a non-fatal (PLC will keep running) error  A402.03 will be on when one is missing and then the bit in A427 corresponding to the unit number (dials on front of module) that is missing will be on:   So, if you have 2 ETN21 cards registered in the I/O table as units 0 and 1, if unit #1 is missing then A402.03 will be on and A427.01 will also be on.  
  11. PULS & SPED for Controlling Servo Drive

    Check scaling in the servo drive parameters on the pulse input side.  There may be something like input numerator / input denominator so that:  Motor movement = pulses in * (input numerator/input denominator). 
  12. Prv instruction in structured text

    Structured text is incredibly valuable for specific situations such as calculations and loops, etc.  However I find it very tedious for boolean operations and greatly prefer ladder for that case.
  13. Sysmac Studio Improvement Request

    @Webbs Unfortunately, there is no functionality to change the name of the units.  This is only what is displayed inside Sysmac Studio though.  The operator of the equipment will never see this unit setting.  I would recommend setting Pulses and then make a note somewhere in your code or in the comments of the program that states that the units are really "Tiles" and not pulses.  
  14. Buttons with images in NA

    The easiest way is to delete the button and then set a press event for the image.  To do this, show the Events and Actions window: Then select the image and in the Events and Actions window, select Press as the event.  Then choose what action to take when the image is pressed: It seems that this is a button that switches you to another page, so you could use the ShowPage Action, you would then just need to specify which page to go to.  You could also do many other functions like setting a variable to a specific value, etc.  
  15. Prv instruction in structured text

    The counter value is a double word starting at A270.  Monitor A270 as a DINT and you will see the value.  A271 would only contain the most significant bits and would only change when the counter exceeds 65535.  I believe that you do not need to use the PRV instruction to update this address if everything is configured and wired properly.