Search the Community

Showing results for tags 'nj501'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 13 results

  1. 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 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. Submitter photovoltaic Submitted 12/12/22 Category PLC Sample Code
  2. Nj501 and R88D

    Hello I have a problem with some application. In this application were used Nj501 and servos R88D-KN04H-ETC. They are proximity sensor conected to R88D as drive prohibiton input (POT,NOT). Everything it's ok. The user wants to be able to move beyond this sensor in manual mode. After assesing the risk, consent is given to such work in manual mode. The question: it is possible in some way in the program, e.g. when switching to manual mode, to deactivate this R88D input so that it does not respond to POT NOT sensors ? Thank you in advance.
  3. Hi I need to get data from a modbus rtu device to Omron PLC NJ501. I am using SCU32 or SCU42 as serial gateway. I have tried using sendcmd function, but I am having problrm with the DstNetAdr Here's my setup Cpu NJ501 1400 ID262 OD263 AD041 V1 EIP21 SCU32 My sendcmd parameter DstNetAdr.NetNo:=USINT#0 DstNetAdr.NodeNo:=USINT#4 DstNetAdr.UnitNo:=BYTE#16#84 senddata array 02 03 00 6A 00 02 E4 24 Anyone has any idea on how to do it?
  4. NJ/NX Get IP Address

    Version 1.0.0

    102 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.
  5. Hi All,Cx-Supervisor, NJ501-1340, Sysmac Gateway.I have been writing an update for a project and converting to this new controller.It's a pretty big project.Using a combination of Ladder and ST.Using Cx-Supervisor 3.5.I created some new Variables in Studio and made them Publish only.Started to create Points in Supervisor and made them I/O connected to the variables in Studio. No problems everything was connecting and working just fine.Then one of the points would not update. I could change it in the PLC and it would not change On the HMI.I deleted it and recreated it and it did the same thing. (sometimes points in Supervisor just stop working and recreating them fixes it).I then copied the control and pasted the old point into it and it did the same. Then other started to fail. Showing no reaction.I stopped the gateway and restarted, no help, I rebuilt the HMI, nope.The can check the tags in Sysmac gateway and they always change when the PLC changes but not the HMI.I checked the point maintenance in Supervisor and it would not change.I dumped all the affected variable in the PLC and in the HMI and recreated them. Then it got stranger.I could change some on the HMI and it would show in the PLC but not the other way.This is on Bools and UINTS.Stopped CX-server, tried using it with Win8 compatibility. nope.Pulling my hair out now. I should be coding but I'm trying to get the apps to work.Any ideas will be used with thanks.Peter
  6. Omron NJ501 - IFM IO-Link - Wenglor U1KT001

    Hi, I am looking at reading an ultrasonic sensor value through IO-Link, using a Omron NJ501-1320 PLC connected through EtherCat to a IFM AL1332 master with a Wenglor U1KT001 Ultrasonic sensor. I have managed to read the 2 outputs of the sensor using this: Output_1 := TestABit(USINT_TO_BYTE(TxPDO_input_byte_1_6000_02),USINT#0); Output_2 := TestABit(USINT_TO_BYTE(TxPDO_input_byte_1_6000_02),USINT#1); But cannot read the ultrasonic sensor distance value, this is what page 2 in the manual says: Measured Value in 1/10 mm 2…15 14 Bit 300…4500 Octet 1 Subindex 3 (LSB) 2 1 Bit Offset 7 6 5 4 3 2 1 0 I tried a couple of conversions but couldn`t get the distance reading. Any ideas? Help appreciated.
  7. I am trying to find the proper way to tie my 1S Servo Controller STO to my NX Safety CPU via Safety Output Module.....  I am looking in manuals that I have and searching OMRON site as well.. I am unfamiliar with Omron Programming in general but have had years of AB programming.....so I figure it will be similar, but I cannot get my Drives out of ST mode.... Thanks,
  8. Hello everyone, I have a problem with packing machine. There are some issues with one of the axis, when axis actual position is near to 1800000 some error appear and operator has to turn off machine on main contactor. This axis is working in Linear mode. I think that rotary mode would be better for this axis. And here is my question. Which instructions, and what options i should change/check when i change count mode in axis's options. Can any1 point me some manuals to read or give me some advice ? Thank you in advance.  
  9. Good Evening, using the Ethernet Built-in LAN I need to program 4 power supply. I'm tryng to program the firstone but even if I can send the correct command to the power supply I always recive a 2006 error on SKTTCPRCP function Is there someone that can help me in order to not receive the 2006 error code? Have I to respect a procedure? It seems that at the second connection time the socket remain closed. Thank you!
  10. Hi, I am trying to do a merge move on 1S Servo. The condition are as follows: Task: Move 2 in(absolute value) and then Move back to 1 in (absolute value). I have to do this move 10 times in a row.  The application is material leveling after dumping in the mold. The only question i have is if I use just MC_MoveAbsolute command, the only buffer mode for transition available is velocity. Is there a way i can do it with position. I dont want to stop when I can go from 1 to 2 and 2 to 1 again and again. Its time consuming. But rather a nice oscillation motion without stopping to mimic leveling. Can anybody please help me out with this problem.   Thanks
  11. I currently have certain amount of Recipe data located in form of Excel file on to a PC with static IP address. Is there a way to get that data inside the Nj501 without using an SQL server as I currently have NJ501-1300 which doesn't support SQL. I am okay to send data to the SD card I currently have on NJ PLC as it is easy to get data from SD card to the NJ501.  If there is any example code or a link that helps me create i would be helpful. Thanks in advance. FYI: I am currently using NB10 HMI with NJ PLC.
  12. I am trying to get the communication going between EZ3 EZAutomation Panel HMI and Omron NJ501-1300 PLC. I am currently using Modbus TCP/IP as a protocol. Has anybody figured out a way to do that? Or is there a better way to do this communication between HMI and PLC ? Right now I am using MTCP_Client_Connect function block to connect with HMI but it dont seem to be working. The IP address is correct along with Port no. I am still fuzzy about the Station address of NJ and the function code of the NJ for Modbus purposes. If anybody could help me out I would really appreciate it.
  13. I am experiencing a serious problem. Everything went fine in my project for month. Yesterday when I "Transfer to Controller" (like I use to do several time a day) I got this Message : "Build is not complete. Process was aborted". So I build again, I Rebuild controler, I restart SysmacStudio, restart the computer, reset the hardware on the project ... nothing worked. Always the same message. So I opened a previous version of my code. Since it was allready built when saved, I had no problem transfering it in the controler. However, the moment I change a line (have to rebuild) on this backed up version... same problem appear. I finally got to the "output windows" (Alt+3) where I saw ALL build are failed. I've contacted my Omron representative and he is trying to help but he seem as lost as I am. Please help if you can, I am using Sysmac Studio 1.13 on Windows 10. I also have a HMI wired to the project and everything work fine with it.