photovoltaic

MrPLC Member
  • Content count

    630
  • Joined

  • Last visited

Everything posted by photovoltaic

  1. CJ - Adding several consecutive floating points

    Here is summing D10 to D50 (20 floating point values)   The way I did it requires 1 extra loop hence the 21 in the FOR loop because I increment the index after adding. You may write yours differently.
  2. I should clarify as well - NX1P2 will respond the FINS data requests (ex. D100 qty:5). The controller doesn't support all FINS messages and you can't use issue any messages with it, but for reading and writing data with a PC FINS will work. The manual claims that it is not supported but for the OPs application it may be enough.
  3. Average Function

    Are you looking for an example of the AVG instruction use?
  4. Ethernet Communication Between CS1G and RedLion Graphite HMI

    Duplicate IP addresses may cause it as well. Remember to power cycle the PLCs after any changes
  5. Ethernet Communication Between CS1G and RedLion Graphite HMI

    You can have multiple nodes on a single network, as long as they have unique Node Numbers. That behavior sounds like a duplicate Node Number issue. If you stick with Network 0 you should be able to avoid routing tables all together.
  6. View File NJ/NX Get IP Address A Library containing a function Block that can be run on any Omron NJ or NX PLC. The Function Block will retrieve the host PLC's IP address, Subnet Mask, Gateway, and MAC Address. The Port Details are presented through 2 structures , 1 per-port. In the event the PLC only has one port the structure for Port 2 will be blank. Submitter photovoltaic Submitted 12/12/22 Category PLC Sample Code
  7. NJ/NX Get IP Address

    Version 1.0.0

    76 downloads

    A Library containing a function Block that can be run on any Omron NJ or NX PLC. The Function Block will retrieve the host PLC's IP address, Subnet Mask, Gateway, and MAC Address. The Port Details are displayed through 2 structures , 1 per-port. In the event you only have 1 Ethernet port then the structure for the 2nd port will contain all 0s. Data Format: IP Address - USINT[4] Subnet - USINT[4] Gateway - USINT[4] MAC - BYTE[6]  (hex value) Access the retrieved details by the typical parent-child tag structure. ex. Port_1_Detals.IP_Address[0] will get the first octet of Port 1's IP. Tested on: NX1P2, NX102, NX502, NX7, and NJ301 IMPORTANT: This Function Block should not be run immediately after startup. Allow the PLC a few seconds to establish a connection with the Ethernet network.
  8. DUPLICATED OUTPUT WARNING

    Duplicated outputs are usually only a concern on coils. Your error is for an MOV instruction which is commonly duplicated. Ignore it   Edit: I see you have multiple warnings, if you could share the list of them we could better advise you.
  9. TLS session establishment fail

    Try a timeout of UINT#1000. 10ms for a ping across the WAN is unlikely.  
  10. TLS session establishment fail

    The MQTT library that supports TLS is only compatible with NX PLCs (NX102 & NX1P2) >= firmware 1.46 I'm trying to track it down now...
  11. TLS session establishment fail

    Looks like the official library available for download supports it - https://www.ia.omron.com/product/tool/sysmac-library/index.html The example program uses it:  
  12. It is still supported. Project -> Library -> Create Library This saves the SLR file. It is different from the publish method previously used but it is the same in the end.
  13. I don't believe there is a way to de-compile an SLR file into a project. However it is fairly simple to copy the contents(with dependents) of the function blocks into a new Library project as long as you didn't restrict displaying them. Essentially make a new function block and copy over (with dependents): Internals In/Out Externals All logic  
  14. NX1p2 Webserver

    The NX1P2 can serve webpages yes. They are a bit rudimentary but for basic data back and forth they work(See attached). You can also serve more elaborate pages from the SD Card with images etc but there is no interaction with actual variables. There is a project underway which will drastically improve this experience but I'll have to look into it WebServer NJ_NX.slr WebServer_NJ_NX_E.pdf
  15. NX1P2 EIP with Siemens S7-1214FC?

    Look like it is available if you are registered on their support website: https://support.industry.siemens.com/cs/document/109782315/ethernet-ip-adapter-connecting-third-party-control-systems-to-simatic-s7-controllers-via-ethernet-ip?dti=0&lc=en-HN Alternatively you could try the Omron Generic EDS file available on this site which works with most devices.
  16. Unable to connect CJ1M CPU12

    Most USB to serial converters have the IBM DB9 Pinout (even Omron's own converter has this) - use this cable to communicate with an Omron PLC:
  17. error 87 ethercat

    Disable all inputs - specifically input 1 as that is ESTOP by default. Be sure to transfer them to the drive and cycle power after
  18. HOW TO CREATE A IAG WITH AN EDITABLE LABEL

    Correct. The only way I can think of to get this behavior would be adding a label on top of an IAG and grouping them together. Briefly ungrouping them to edit the label. It will probably take fewer clicks to use the page explorer method though.
  19. I suggest using the AB side to read from and write to the Omron side. You'll need to make up for the run/idle header - I'll send you a guide
  20. HOW TO CREATE A IAG WITH AN EDITABLE LABEL

    You can add a string tag to the IAG and make the label a data display object instead of a label - Like @BE said. It will appear in the properties pane when you double click on the IAG instance. The downside is the value you enter will only be visible at runtime. During development it will show "#" as the text.
  21. HOW TO CREATE A IAG WITH AN EDITABLE LABEL

    Go to View-> Page Explorer  then drill down to the label you want to change when you are on the page with the IAGs
  22. MODBUS TCP

    If the device you are sending these to can't recombine the words then divide then this method won't work. You may need to use copyRealToDword and then split the DWORD into 2 words.
  23. Sysmac Studio Improvement Request

    I don't have time to go into each of these but a few that jump out at me and are easy to answer: Assistant can suggest FB array members in Ladder (see picture). You are correct that you can't in Structured Text. You can get your own MAC my sending yourself (127.0.0.1) an explicit message: Class F6, Instance 01, Attribute 03. Returns your 5 byte MAC. Union Datatypes - What is your use case for these? I find there is almost always a better option than a union. Some of your points are definitely valid.  
  24. Question Sysmac Studio remote control

    There are a few different options for VPN. You can use a local PC, a VPN-type device (microhard, ewon, RT100 to name a few), or some routers support it as well. Not much needs to be done to the PLC - usually just the default gateway needs to be the VPN gateway.