Michael Walsh

MrPLC Admin
  • Content count

    1801
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. SYSMAC Studio Project Type

    Library project is for building Libraries.  A library is a file that contains custom data types, functions, function blocks, etc. that you would want to use in other programs.  When you include a library in your project, the functions and function blocks will show up in the toolbox for you to use. IAG project is for creating custom objects that can be used on HMI screens.  Similar concept to a library but for the NA screen.
  2. inv002_refresh scanlist

    Hex #4002 - each digit is 4 bits.  So, Hex 4002 means 0100 0000 0000 0010 (which would be bit 2 and 14 on).
  3. Tank Level Program from PM

    Both of the above issues are big issues.  By having the real number in the input field, the PID instruction was looking at nonsensical data as it was looking for an integer.  Also, by Having D350 rather than D200 as the second entry, the instruction was not even looking at any of the parameters that you had set up in the D200 range.  It was looking in the D350 - D388 range (which was likely all zeros, except for your setpoint).   Lastly, it is recommended that you zero out the "scratch pad" area that the PID function uses for its calculation.  
  4. Inter PLC Communication over FINS

    @SillyBoy You need to add every node on your network to the IP Address table of each PLC and of the touch screen (note that the Conversion method needs to be combined (or IP Address Table) to enable entry into the IP Address table): PLC A (I am going to assume the 22 that you mention is the dials on the front of the unit.  That is a hex number.  Hex 22 = decimal 34, so I used 34 as the node number): PLC B (I am going to assume the 23 that you mention is the dials on the front of the unit.  That is a hex number.  Hex 23 = decimal 35, so I used 35 as the node number): NS5 (I am going to assume it is FINS node 44 to match the last octet, I would recommend that for the PLCs also, but did not change that above):  
  5. Inter PLC Communication over FINS

    @Deng You only need to use SEND or RECV to make data go from one PLC to another.  Think of SEND as if it were a "WRITE to other PLC" command and RECV as if it were "READ from other PLC command".
  6. Tank Level Program from PM

    First of all, don't scale the feedback to BCD. Scale it to an unsigned integer. I assume 0-100 is a reference to percent. With this setup, C+6 would be: #0010 Bits 8-11 are the input range. Since 100 is in the 8 bit range, a value of 0 is what you use. Bits 4-7 is for the integral and derivative unit.  I chose a multiple of the sampling period.  This determines the multiplier of C+2 and C+3.  Bits 0-3 are the output range.  This has to be the same as bits 8-11.   So I set this to 0. So, your input is a 0-100 % value as scaled from the analog input.  The output of the function will then be a 0-100% command to the analog output. C+7 would then be 0 - the lower limit for the output. C+8 would then be 100 - the upper limit for the output.   You would then take the output value and scale it to the analog output range using the function block that I referred to earlier. If the range was 0-3999 for instance, you would use the FB to scale 0-100 to 0-3999.   Hopefully this helps.        
  7. Tank Level Program from PM

    I would suggest that you use this scaling Function block: https://forums.mrplc.com/index.php?/files/file/996-analog-scaling-function-block/
  8. Inter PLC Communication over FINS

    Read this thread: https://forums.mrplc.com/index.php?/topic/25148-cj2m-ethernet-ip-error-f3/#comment-121115 It explains why you are having issues.  You will have to add every node that you wish to communicate to the IP Address table as FET_Destroyer mentions. 
  9. CJ1M Serial Communications Buffer

    You either set an end code in the setup of the port, or you specify a number of bytes received.   If the end code is received or the number of bytes set is received, then this bit turns on.  
  10. omron cqm1 clear program and password

    You can contact Omron.
  11. free HMI bitmap or jpeg

    @LD_M fixed.
  12. You can certainly use a CJ1 for testing and it would likely cover everything you need.  The CJ2 is the current family though.
  13. CP1H Modbus issues

    From @Janaka Angampitiya: Hello, I have Three CP1H PLC with Cj1w scu31-v1. I need to send a Modbus command SCU unit through Modbus RTU compatible power meter. I use instruction TXDU and CMND but it's not working. My PLC Arrangement CP1H PLC  - CP1H-X40DT1-D    ver. 1.3 Option Board 1 mounted Cp1w-CI41   to NB HMI its work Option Board 2 Mounted CP1W-CIF12-V1 to PLC 1, PLC 2 and PLC 3 between communication Serial gateway mode it is work. CJ1W SCU31-V1  (ver.1.3) and Modbus compatible Power meter it's not working. Please help to how to connected and what is the use of instructions for this case. 
  14. Automatic update NS screen time/date from PLC

    @LD_M:  I think that I got all the links repaired.  Let me know if I missed something.
  15. DWORD is a hex format, generic for a double channel.  I assume these are integers, so you would want the data types to be DINTs (signed) or UDINTs (Unsigned).  I would recommend that you make them DINTs or UDINTs from the get go though (Therefore no conversion instructions).  Unless there is a specific reason they need to be DWORDs....  
  16. Capture snapshot of I/O data for simulation

    You need to do what Bits N Bytes suggested.  Store the values that you want to write in DM words that you are not using in your code.  Then on the first scan, use the XFER function.  So, lets say you want to set up the CIO channels 0-3.  Lets say you are not using D500 - D503.  Load up D500 - D503 using the memory tool.  They will not reset to 0 when you go from program to monitor.  Or, you could set your code up to load up D500 - D503 on the first scan of the program.  When you are simulating and you want to change the I/O to the test values, just turn on the TransferNow bit (manually or with some part of your code) in the image below:
  17. Can't open cxp file

    Attached below is a simple print out of the program: mr PLC program.pdf
  18. CJ2 and CS1 are not going anywhere.  Not being phased out.  No worries.
  19. Capture snapshot of I/O data for simulation

    Yes, that would work, but the conditions would not change as he I believe he is asking. This would only create a static configuration of the IO. Personally, I would just turn them on manually as I need them.  I don't know how to create the file for the playback mode.  
  20. Humming Noise in Motor

    The motor needs to be tuned.  There are parameters in the drive that need to be modified according the the load, inertia and movement requirements of the system.  Often, a simple auto tune process is enough to make the motor perform well and not vibrate or hum.  Please investigate auto tune in the manuals. 
  21. Capture snapshot of I/O data for simulation

    If you are in the CIO area, it is not retentive, so when you go into run / monitor, it is all reset to zeros.  The memory tool will not do what you want.  I/O Conditions and replay is the only possibility.
  22. CPU load memory

    What I told you shows used and available.  If you need percentage, do the math.
  23. Function block - execution

    Change the function block.  Add a second boolean input that is called Invert.  If it is true, it inverts the input if not, it does not.  Or if it always needs to be inverted, just change the FB to invert it all the time.
  24. Cam Parameter in NX 1P2 Controller

    Use the MC_GearIn function block.
  25. CPU load memory

    With respect to program capacity, View pulldown menu, then Memory View