Michael Walsh

MrPLC Admin
  • Content count

    1121
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. NT31 upload program to Support tools error

    ^ this.
  2. NB7W-TW00 with CP1L-EM30DR-D and MX2

    Thank you @AlbertMessakh
  3. Interfacing Union to NA alarm expression.

    I had no problem creating the Union in the controller and then creating the same union in the HMI. Created Union in the controller: Created global variable in controller: Created Union in the HMI: Created variable in HMI: Mapped the variables together in in the variable map (in HMI): Used the bit level function on a screen (note that it uses parentheses, not brackets): Used the LWORD (ULONG) variable for a display: It builds without any errors.
  4. Declare an Alarme

    I don't have the French version, but this is what it would look like in the English version (using the 300.01 example from earlier in the thread):    
  5. NSJ-Holding Bit from HMI on after power cycle

    No worries, understandable mistake.  You were trying to help. 
  6. NSJ-Holding Bit from HMI on after power cycle

    @Rob Nelson, I moved your topic here as it is not related to Sysmac Studio.
  7. NSJ-Holding Bit from HMI on after power cycle

    @b.k.n. He is not using NJ/NX.  He is using an NSJ (HMI/PLC combo). So, I am moving this to the proper area.
  8. Sysmac Studio empty rung after uploading

    If the Supplier checked the box shown below when the program was downloaded, then the source code was not downloaded to the NJ controller: If the source code was not transferred to the controller, then it is not there to upload.  I tested this and I uploaded a blank rung, just like your question.
  9. Sysmac Studio empty rung after uploading

    If it was protected, Sysmac Studio should show this after uploading the program (when you try to open the program in question):
  10. 1S Servo Merge Move

    The simplest way would be to use absolute movement commands and use a high jerk value (S-Curve).  
  11. 1S Servo Merge Move

    Are you asking if you can reverse directions without stopping? If you reverse directions, you will have to stop.  If you want it to be smooth though, you can do something about it.  Look at the Jerk parameter.  Another option would be to do a cam profile and link it to a virtual axis that just moves back and forth. 
  12. NB7W-TW00 with CP1L-EM30DR-D and MX2

    Perhaps you can share how you solved your issues so that someone else may benefit from your experience.
  13. PC send data to PLC

    First of all, the reception completed flag is A392.06.  Secondly, post a picture of the settings for the comm port.  Or just go ahead and post your project (.cxp file).
  14. CQM1 and CQM1H

    I would think that would be fine.  You will be limited to memory areas only available in the CQM1 PLC however.  
  15. CQM1 and CQM1H

    The CQM1H is an upgraded version of the CQM1, faster, more memory, etc.  However, both are obsolete.  There is a detailed explanation of the differences in section 1-5 of this manual: http://www.edata.omron.com.au/eData/PLCs/CQM/W363-E1-07.pdf  
  16. OPC Server for CJ1M-CPU23

    What do you see in the list?
  17. CX-programer Math function

    Do the ST FB, this is y=x6:
  18. UDTs from a Library Project

    Or start them all with AngryRobot_, then you just start typing AngryRobot and they will show up..... Obviously, you might choose to use something other than AngryRobot.....   
  19. UDTs from a Library Project

    Once you add the library reference to your project, the UDT is there, you just go ahead and use it.  It does not however show up in the Data Types.  See below: Here I created only a data type in my library project: Then I added the library file to a new project: Notice that the structure is in the list above.  Then I used the UDT to create a variable: Again, it does not show up in the Data Types window, but can be used.
  20. Value to corresponding bit instruction??

    Is it a CS1H, or a CS1H-H? If it is a CS1H-H (or any of our newer PLCs) then this would be simple solution: Divide the value in D100.  The answer is stored in D500 (in this example) with the remainder stored in D501.  Clear out all the words for the range that you want to use.  I left room for values from 0 - 159 (10 words), using D0-D9.  Then use the SETB instruction to point at the word with an indirect address (D500) and use D501 (the remainder) as the bit within the word.  As you can see, 17/16 = 1 with a remainder of 1.  Therefore the SETB instruction would set word D1, bit 1 to a 1 as shown in the table below: If you set D100 to 37, then the answer is 2 with a remainder of 5 (D2 bit 5 set to on) and you get this: You could then use the XFER instruction like this: to move the data from D0 to channel 0.  So, a total of 4 instructions.   Unfortunately, if your CPU is just a CS1H, then none of this matters as it does not support the SETB instruction.
  21. Encoder Pulses

    I am not sure which PLC you are using, so I guessed that it is a CP1H. The picture below illustrates some code that should get you what you need. I did not have time to test it, but it should work. If not, let me know and I can test later. Here is the file: PRV example.cxp Good luck.
  22. Encoder Pulses

    @Hartech Done.
  23. Encoder Pulses

    Sorry, I should have looked a little closer before I answered your question, I reverted back to the old days. You do not need the PRV instruction for reading the PV (present value) of the newer product. I still do not know if this is a CP1H or not, but I am going to go on the assumption that it is. The present values for the high speed counters are stored (as double integers, 2 words long) in A270, A272, A316 and A318 for each of the four counters, so you need the code below to do what you want. Here is the modified code: Counter example.cxp Give that a try.
  24. Errors that appears when i connect via serial port

    Wow, I am surprised.....must not really be getting those errors on the processor, just an incorrect notification.
  25. Errors that appears when i connect via serial port

    My first thought is some kind of grounding / potential issue on the computer's comm port. or there could be some kind of ground issues with the PLC.  That is what I would check.  Settings and dip switch settings would not cause the errors that you are seeing.