JYG

MrPLC Member
  • Content count

    70
  • Joined

  • Last visited

Everything posted by JYG

  1. OMRON MICROPROCESSOR

    NX1 seem to be using Atom Z530, 1 core, 512K Cache, 1.60 GHz, 533 MHz FSB : https://www.intel.com/content/dam/doc/case-study/omrons-integrated-machine-controller-case-study.pdf NX7 seem to use Intel quad Core i7 : https://www.ethercat.org/en/products/E07A519AC99D41359FB32FF4401AE03F.htm
  2. Beckhoff CX5020 PLC program not work

    When you activate your configuration, a dialog display an option "Autostart PLC Boot Project". You must check it.  
  3. What I do is adding a button "Enable" and "Disable" beside the RecipeViewer in a dialog box. You can select the recipe in the RecipeViewer and push the button "Enable" to confirm the selection. Your "Enable" button must have a event calling subroutine like this : Sub EventEnable RecipeEnabled = True WriteRecipeToController(RecipeViewerSelector.SelectedTemplate, RecipeViewerSelector.SelectedRecipe) End Sub Sub EventDisable RecipeEnabled = False End Sub  
  4. Read section  "9-8 Error- and Warning-related Objects" of  "1S-series with Built-in EtherCAT Communications User’s Manual (I586)". Register 4000.81  Error Full Code  Gives the error number of an error or warning which occurs in the Servo Drive. Register 4000.82  Error Code  Gives the code of the latest existing error or warning which exists in the Servo Drive.
  5. The Sysmac Studio documentation have a section named " Commands Whose Shortcut Key Assignment Cannot Be Changed". The Bookmarks is in this section.  
  6. I don't understand your problem. Can you explain details please? I'm using "RecipeViewer" and use a button to enable or disable a recipe. On enable, I use "WriteRecipeToController".
  7. SNTP omron plc

    I always use UTC in any device and convert to another timezone if display is necessary.  
  8. SNTP omron plc

    The most simple method is to use the Automatic Clock Adjustment Function on each ETN21 card. You can broadcast using FINS command GET CLOCK or SET CLOCK (Check FINS Command Reference Manual).
  9. I supposed you can read this register with EC_CoESDORead.
  10. You can use Excel or LibreOffice Calc to import XML file, here with Excel : Click Developer > Import Remove no interesting columns Click on Data > Remove duplicate Save as a CSV
  11. My Sysmac Studio version is 1.55 and have 2357 EventInfo, yours have 2220 EventInfo.
  12. String seem to be static. Sysmac Studio have directory to store definition : "C:\Program Files\OMRON\Sysmac Studio\ErrorDefinition". Definition is XML file about 3Mb, one for each language, for English is : "SysErrDef-en-US.xml". You can search the error code in this file and get the EventName string. Not very simple!  
  13. Hi pturmel, Just in case someone found this link, it's a complement! Not tried Read Modify Write Tag Service Request (0x4e).  You can read/write User Data Type structure with Read Tag Service (0x4c) and Write Tag Service (0x4d) in the limit of connection.
  14. For Ethernet/IP tags read/write you can read this manual : https://literature.rockwellautomation.com/idc/groups/literature/documents/pm/1756-pm020_-en-p.pdf Works fine with Omron NX.  
  15. Omron NA5-7W001

    This works for me : Image0.Source = "\User\SysmacHmi\inspection_" & ImageIndex & ".jpg" or Image0.Source = "\\Computer\Share\Inspection_4.jpg" Thank you realisator for sharing!  
  16. NA5

    See https://forums.mrplc.com/index.php?/topic/36275-na-hmi-operating-system-mismatch/
  17. I have used Kepware for several years but now it's a No-go. Kepware used licensing and lose licence when PC abnormally shutdown I must paid again to get my licence. The price is excessive. The NX102 have a OPC-UA server inside, and the cost is lower than KepServer. OPC is not appropriate for real time data.  
  18. That's why I commented but I don't know what he want to do.
  19. Yes, because the SktUDPSend() need a ARRAY[0..1999] of BYTE. Using ToAryByte() transform the structure in bytes and computes the size in the structure. Using the default Offset type NJ for the structure is the same packing and the same endian of Visual Studio C#. In C you can cast the bytes buffer receive from socket in pointer to struct. Voilà!
  20. With TCP you must care of socket status and close the socket if it's not _ESTABLISHED. Take care with SktTCPGetStatus() because the outputs are valid only when Done flag is TRUE and the socket is not closed. Use WireShark software to see what is the problem.
  21. You can look at Omron Instructions manual or on line help under SktUDPCreate() function for a complete example on the server side and client side. You must choose to use UDP or TCP for your application. Usually the PLC is the server and wait request from client but you can also choose to send data to client as soon new data is available. Your decision. If you have specific questions I will answer you.
  22. Last NX firmware version 1.50 does not used HTTP protocol, now using TLS! The port 80 does not respond. The web server seem to be gone.
  23. From W506 CPU Unit Built-in EtherNet/IP™ Port:  
  24. You can't use same subnet IP!
  25. Omron NA HMI Close Login popup

    Make your own Login/Logout dialog box and use timer to auto-logout.