Michael Walsh

MrPLC Admin
  • Content count

    1801
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. Could not open file

    I was able to open the three files just fine.  
  2. You were very close!  Thanks for posting that it worked.
  3. MOV #B400 D7702 You are trying to communicate with the CPU, so the least significant byte of C+2 (D7702) needs to be 00.  
  4. Bit access in Words in CX-Programmer using structured text

    It won't let you use a variable for the index of the bits when it is a structure.  This is ok: In.CheckLWord[4] This is not: In.CheckLword[j] Not sure why, but that is how it is.  CXP will only let you use variable indexes for arrays and apparently it does not recognize an array of an array. The unexpected syntax will go away after this issue is resolved.   Sorry.  
  5. Can't switch to mnemonics view

    Do you have any function blocks in your code?  That will prevent it from showing mneumonics.  Even if one is loaded in the project, but not used, mneumonics is grayed out.  Try a new project and just add a contact and a coil and see if you can display mneumonics.    
  6. Simulator Platform

    Sysmac Studio (64 bit version) now has a additional license that can be purchased that allows for 3D simulation with 3D cad models.  Contact your Omron representative for details.  
  7. Bit access in Words in CX-Programmer using structured text

    Make your variable an IN/OUT variable.  You can make it a bit array then. The FB above should do the same thing that my sample program above did.  
  8. Socket UDP Send not working

    You need to set up the entire _sSocket variable prior to executing the SktUDPCreate function block.  Notice in the very first post in this thread where the initial value of the Socket variable is set.  
  9. Can you use internal plc bits in function blocks?

    Yes, you can assign the AT (Address Translation, I think) field: When creating the variable: After creating: Then just use Minutes_Seconds in your code.  Of course you may need to strip out minutes and seconds using the MOVD command for it to be useful.
  10. Bit access in Words in CX-Programmer using structured text

    Make bit arrays: The structured text above will make W2.00 be equal to W0.05. Of course if you go over 15, the bits roll into the next word as all addresses are 16 bits starting with bit 0.  For instance Input_Bit_Array[16] is pointing to W1.00.
  11. CP1L-E communication with ethernet / ip slave

    That is correct.  It cannot be an EtherNet/IP slave with the built in Ethernet on the CP1L-E.
  12. CP1L-E communication with ethernet / ip slave

    I can confirm IO_Rack's answer:  No.  It does not support EtherNet/IP.  
  13. Auto online connection failure

    You said you were using a standard 9 pin cable.  Omron does not use a standard 9-pin cable.   If instead you are using the CS1W-CIF31 and the CS1W-CN226, this will work fine with the peripheral port.  Dip sw 4 set to off means the peripheral port will use the default settings for it, which is toolbus, 9600.  Try setting your communications up manually for your project.  Choose the proper serial port, then set toolbus as the option, then set 115,200 baud as the speed and check the Baud Rate Auto Detect option (this will use any baud rate lower than what you set (115,200)).  
  14. Auto online connection failure

    PC  PLC 2 - 2 3 - 3 5 - 9 Jump 4 to 5 on PLC side and Jump 4 to 6 and 7 to 8 on PC side.
  15. cp2e PIDAT

    You did not move all of your settings into the D550 area.  For instance, you move a value into D504, but never move it to D554.  Basically, you need to change your XFER instruction from moving 3 words from D500 to D550 to moving &11 words from D500 to D550.   You set everything up and then did not move it into the area used for the PIDAT instruction.   Also, it is recommended to put zeros in the scratch pad area.  D511 - D540 in your case.  Use a first scan flag to a BSET instruction. Instruction:   BSET #0 D511 D540  
  16. cp2e PIDAT

    There are several posts on this topic,.  Did you read this post that has being going the last few days? https://forums.mrplc.com/index.php?/topic/38865-tank-level-program-from-pm/
  17. NT-Support Tool V4.8

    Ok, Link is above. Go download it.
  18. Tank Level Program from PM

    From a PM from @Jason_G I am newbie her  to omron and need some help. I am trying to program a tank level control using a CP1H. What I would like to do is to take a 4-20mA signal from a DP cell located on the bottom of the tank to measure the level (0 to 100%). I would want to take this level and send it to a PID which would then manipulate a VFD pump to control the level base on the set value in the PID as well as the PV from the transmitter. I need help in setting up the PID parameters and also how best to scale the analog input should I use SCL or APR?  Specs: DP Transmitter : 4-20mA on Tank O to 10 feet of water to be displayed in percentage of 0 to 100% VFD pump taking in an analog of 4 to 20mA to drive a 0 to 2000 rpm VFD drive   Tank Level Program.cxp
  19. Inter PLC Communication over FINS

    Read this:  https://forums.mrplc.com/index.php?/topic/25148-cj2m-ethernet-ip-error-f3/#comment-121115  
  20. Inter PLC Communication over FINS

    This is correct.  All 3 devices will have a different last octet.  Also, there are settings for node numbers on the HMIs in the software.  Make the node numbers for the HMIs match the last octet as well.  Software node settings for HMIs and rotary hex dial settings for PLC network card.
  21. Auto online connection failure

    Did you purchase the cable from Omron or make it?  It is not a standard 9 pin cable.
  22. Tank Level Program from PM

    Well,  first, change W10.04 to P_First_Cycle (A200.11).  That will make sure that your scratch area is zeroed out when you first power on the machine. The instruction moving into D16 needs to move #1010 into D16.  This enables the output limiting so that the output value in D200 is from 0-100. Delete this: You have moved a decimal value of 2048 (hex 800) into the AT calculated gain.  Not sure what that would do , but you don't need it. You likely have your direction backwards.  You moved a #3 into D15, which specifies the direction of the Proportional action to be forward.  For reference, if this were a temperature related application, Forward would be cooling and reverse would be heating: You likely need to move a #2 into D15.  This is likely what is causing it to not work as expected.  But, please do all recommendations.  
  23. Inter PLC Communication over FINS

    @Abdul Wajid: Yes, you can use the Ethernet port to connect directly to NS/NB HMI if you follow a few simple rules: 1)  If the IP Address of the PLC and HMI are on the same network and you have a Class C network (there are other potentials using other subnets, but to keep it simple, use Class C). So, if the subnet mask is 255.255.255.0 on both the HMI and PLC and the first three octets of the PLC and HMI's IP Addresses are the same.  Example:  PLC IP Address 192.168.0.15 and HMI:  192.168.0.10.  Subnet mask on both is 255.255.255.0. 2)  If you set the node number (dials on front of Ethernet module on PLC) to the same value of the last octet of the PLC's IP Address.  For example, if your PLC IP address is 192.168.0.15 (like in #1), then the node number would need to be 0F on the front of the module.  The node number is in hexadecimal, so 0F = 15 decimal.   For your second question, yes, just add a network switch to your network and you can have multiple HMI's talking to the same CPU.  There are some control / notify (at least that is what it used to be called) areas that will need to be unique on each screen.
  24. inv002_refresh scanlist

    The bit numbers start with 0 (bit 0 is far right, least significant).  It is bit 1 and 14 that are on. 
  25. Tank Level Program from PM

    Yes, did you put this in a PLC?  I cannot open your attachments.  All that is needed is the file with the .cxp extension.