Michael Walsh

MrPLC Admin
  • Content count

    1801
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. CX Programmer. Button for turning on and off one light

    The P_Off is used to temporarily disable a part of the ladder logic.  Usually this is done when someone is not sure if they want to make the change permanent.  After testing, the P_Off should be removed, or the ladder should be removed.  However, you will often find P_Off contacts that have been left in the code permanently.
  2. gateways setup for PLC CJ1M with Ethernet module

    actually i want to ask.. the ip address and subnet mask at the coloumn that u have upload in your comment is stance for what? is that PLC IP address? it is fixed to 192.168.x.x or i can change it to other address like 10.8.26.x ?  Yes, you can set the PLC IP Address and Subnet mask to what your setup requires.  In my example, the PLC has an IP address of 192.168.0.22.  It is also necessary to set the node number switches on the front to match the last octet.  So in this example, the node number would be 16 Hex (which is equal to 22 decimal) what is the purpose of adding the address in the  IP Router Table? the address should be refer to what IP address? for example the 000.000.000.000 is stance for what and also 192.168.0.1 stance for what? As I mentioned in the initial response, the 0.0.0.0 means to get to any node not on this network, go through 192.168.0.1 (which was the router IP Address, what you would put in a default gateway field).  The zeros are wildcards.  So, if you wanted to be able to get to a specific subnet, you could put 192.168.5.0 and the PLC would only respond to devices that have a starting address of 192.168.5.***.  Of course, you can set the IP address of the router to whatever your system requires.  also what is communication that i have to use because there are several type of Ethernet? i have try the first one only... Use the first Ethernet option and be sure to set the IP Address of the PLC by clicking on the settings button next to Ethernet and choosing the driver tab.  Also make sure that the greyed out workstation node number matches the last octet of your PC's IP Address.  If not, uncheck the Auto-detect and manually type in the last octet.  In your given info above, it should read 254 (from 10.61.47.254).  If not, uncheck the auto-detect and type in 254. and for the connection.. do i have to use modem router in order to connect PC and PLC through WAN? You have to be able to get to the PLC from the PC. Whatever methodology you are using.  You can do it across the internet if you have allowed yourself a way to get through the firewall at a facility. 
  3. gateways setup for PLC CJ1M with Ethernet module

    Add this entry into your IP Router table: This says that for any address not on your subnet, go through 192.168.0.1 (for example) as your router.  If you wanted to allow communications only from a specific subnet, you could put something like this: 192.168.250.000    192.168.0.1  This would only allow the PLC to communicate with devices on the 192.168.250.*** subnet.
  4. NJ controller firmware upgrade.

    Yes, but Omron's policy is that the user will not do this process (Using DDWin) as there is a potential to make a brick of the controller. Omron will actually sell the firmware already installed on an SD card that comes with a step by step procedure to update the firmware.  This will lessen the likelihood of damaging the processor.
  5. Union

    Did you do everything with respect to Unions as I suggested in this post: Here is my union definition: Here is my variable definition: Here is my simulated program (all that I did in simulation was to set on Bit00 of the array): Note that the value of UnionTesting.WordVal = 0001 Hex.  As expected, the least significant bit turned on when I set bit 0 on.  
  6. You can do it two ways.  You can use a union, or you can use a structure.  First, I will explain a union:  A union is when you would like to view a word in multiple formats.  For instance, if you would like to use the word value as a whole and would like to use the bit also.  You can define a union and then make the variable that union data type.  If I create this union: and then define the variable as shown below: Then I can look at a bit from the first word and the word value of that same word, like this: However, I think that a Structure will be better suited for what you are trying to do. If you know the layout of the Nachi assemblies, you can create a structure to match.  So, I made up this example of what the Nachi 8 word (16 byte) input assembly might look like: It consists of one word of bits and then 7 other integers: You could even get more granular with the InputBits field by using the USER offset type (but V1.0 processors do not support this type).  What I mean by this is if you had newer hardware and software, you could break each bit out individually (Ready, Error, Done, Running, etc.) Then I define the variable to look like this: Then I can use the variable like this: A structure allows you to create a single variable that has multiple different formats inside.  Hopefully this helps.
  7. CP1L to NP5 HMI

    We need a little more info to go by than you have provided.  Please post your ladder and your HMI code. Correction:  I misread your post.  I thought that you said that "There is even a light..."  I agree with Jay below, look at the cable. Omron ports are not standard RS232 ports.  If you still have issues after checking the cable, then post your code.
  8. Setting FINS network for inter-PLC communication

    Please only post in one forum.  I have answered your question in the other forum.  Thanks.
  9. Using CJ2M Plc as TCP Server

    The CJ2M built in port does not support Socket Services.  You can however use FINS commands from the CJ2M side if you would like.
  10. Ok, I have exported my program as an .smc file, but this means that the EtherNet/IP settings are not contained within Sysmac Studio, they are then done only in Network Configurator for EtherNet/IP.  I have attached the files below: Nachi EIP Sample.smc NJ to Nachi EIP.nvf If you have registered your copy of Sysmac Studio online, I would highly recommend updating.  You can do it online for free and it will get you all the way up to the current version (1.15).  Many things have changed / been improved since 1.0.  You can get to the online update here:
  11. Simple PID explanation

    Sorry arsenen8, I just saw this post.  Somehow I missed it.  The function block is designed to work with a positive feedback value (an analog input for instance) and is therefore looking for positive numbers.  If you treat -55 as an unsigned integer, it is 65481.  This number is likely larger than the number of bits that you have selected for your feedback, so it stops working.  As a fix to your issue, you could always apply an offset to your input and to your setpoint to compensate.  For instance, if your values range from -500 to 500, then you could add 500 to your feedback and then set your setpoint from 0 to 1000.    
  12. Take a look at this: Nachi EIP Sample.smc2 I used the default of 16 bytes for the input and output assemblies.  See if you can reproduce this setup and then let me know if you have questions.  It is not the most intuitive setup that Omron has produced, but I think with this point in the right direction, you can figure it out.  Of course the settings in this project will have to be downloaded to the network for it to function.  I did not do any code.  Just the Global Variables, the Tag Sets (input and output) for the EIP Configuration and the Connection. By the way, the 100 and 150 in the Target Variables column of the connection setting come from the EDS file and are the Assembly numbers for the input and output assemblies.  To get to this, go to Tools pulldown menu, then choose EtherNet/IP Connection settings.  Next, double click on the only device in the EtherNet/IP Device List.  Then click on the lower of the two buttons on the left hand side of the window and it will show the connection.
  13. windows 7 ultimate and usb driver

    Try this: Omron Win7 USB 32 and 64.zip This has the 32 bit and 64 bit Windows 7 drivers in it. Good luck.
  14. Attach the EDS file here and I can provide a small sample of how to do it.
  15. Continuous Weighing

    A while back, the site went through an upgrade.  After that point, the attachments were not attached properly.  It is easy to repair, but has to be done on a case by case basis.  If you report it to a moderator, it can be restored.  I will restore the file in this thread for you.
  16. the code #FF06

    If you are seeing this code in your ladder program, the # symbol just means a Hexadecimal or BCD constant.  So, it means a 16 bit binary pattern of a word.  The bit pattern that is equivalent to the HEX value of #FF06 is 1111 1111 0000 0110.  A HEX value of FF06 also means an unsigned integer value of 65286 and a signed integer value of -250.  To really understand what it is doing, we would have to see how it is being used. 
  17. Help! Using CMP(20) with TS101

    It is working fine here (I converted it to CP1L and simulated, but the code is fine). Are you sure that the code was actually in the PLC?  Is there an HMI connected to the PLC?  Either the code is not in the PLC, it was not running or there is something external overwriting bit 12.01.
  18. Help! Using CMP(20) with TS101

    Zip up your .cxp file and post it in this forum.
  19. Omron servo (R88D) homing using Mitsu FX3u

    The E in your part number does not appear to be correct.  Is it supposed to be R88D-KT?  Your PLC position controller should have the ability to perform an origin search.  There should be a sensor mounted on the machine so that the servo can locate its home position during the home search routine.
  20. Help! Using CMP(20) with TS101

    Post your code and we will look at it.
  21. Omron servo (R88D) homing using Mitsu FX3u

    What is the part number of the servo motor?  That will tell us if it is an absolute or incremental encoder.  If it is absolute, then it will have a battery that will allow for the encoder to remember its position.  There is a short process to go through to establish the origin / home position and then it will remember it from then on out.  If it is an incremental encoder, then you will have to perform an origin / home search every time that you turn power on to the machine.
  22. NJ controller firmware upgrade.

    Yes, either that, or an Omron engineer can do it at your facility.
  23. NB10W

    I believe that you set the starting address on the Basic Property tab of the Recipe tool.  The starting address, combined with the data length setting on the Recipe tab tells you where the data will be written and how much data.
  24. RFID readers

    gtsuport, You are absolutely correct. gusovi, You can use socket services with a CJ1W-ETN21 to do what you want.  I posted some code in the download section, you can find a good starting point here:  
  25. Version 1.0.0

    302 downloads

    This is a short bit of sample code using Socket Service function blocks to read and write data from / to a V680S RFID tag using the Modbus TCP (-ETN) version of the V680S.