innoaloe

MrPLC Member
  • Content count

    425
  • Joined

  • Last visited

Everything posted by innoaloe

  1. Had no experience with AB, but in Omron we can choose to Download the program part only and left the settings, such as PLC IP Address, unchanged. I believe AB programming tool should have a same functionality.
  2. @Lacita what about this page in DX200?
  3. Zebra ZT230 Ethernet/IP

    Checked it also, and as IO_Rack said it doesn't have Ethernet/IP capability. You can, however, use TCP/IP or more likely called as Socket Service TCP in Omron manuals. To bad though the CJ2M-CPU31 CPU unit does not support Socket Service. You need to purchase CJ1W-ETN21 module and plug it in to the CPU in order to have Socket Service capability. Another option is to use RS-232 serial (Z230 manual mentioned that it supports RS-232) which considerably cheaper since you just need to buy CJ1W-CIF01 option board to be plugged on the CJ2M-CPU31 CPU, granted that you haven't use it for other connection
  4. FB's

    @atomic_robo I have seen your PM, but then this thread show up. So I guess better having an open discussion here. I got two possibilities for your case. First method is the most simple, by having multiple FBs executed one by one. In the screenshot, you can see each FB have a "Done" output to indicate whether the execution of that movement is finished. This output is used to trigger the next FB in sequence. The other method, although requires more thinking, is the one I like the most since it will save program memory by using only one FB for the entire sequence. You need to have a variable to indicate which movement sequence is to be executed. Notice that the "Done" output of the FB is used as Normally-closed Interlock so that when the FB has completed one movement, it will re-execute itself (granted that the Done output is a one-shot trigger inside the FB and not a SET Coil). Regarding the "Done" part though, as I mentioned in the other thread, you need to find a part of the Ethernet/IP Tag on that device which indicates that the movement is completed (something like Done / Flag / Busy is a typical name used for EthernetIP devices. If you can post a screenshot of the EthernetIP Input and Output mapping of your stepper motor, we might be able to suggest which might be the correct flag.  
  5. code optimisation steps vsr FB memory

    I don't think using FB will help reducing your UM... It may reduce some, but the difference is barely noticeable. The FB memory provided is mainly for the FB Definition only. When you are creating a FB instance, some part of UM will be occupied by that instance.
  6. Sending Data from Excel to NJ501

    Sysmac Studio already have both FTP file transer and the File Reading function blocks. You can utilize them directly. IIRC FTP one should be under "Communication" library, and File Reading should be under "File Operations" (or was it SDCard... I don't remember. But they're exist)
  7. Sending Data from Excel to NJ501

    You can use the FTP Server inside NJ. Of course in order for it to work you need to have a working FTP Client on the PC side (like FileZilla for example). The idea is that NJ requesting the said file when needed, and copy it to SD Card plugged-in to it. Then, you need to use file operations function blocks to read the file inside the SD Card.
  8. unions

    You need to choose which member of that Union you want to assign the value to. In your case, it should be ACSOUTVariableName.OUTBits[1,1] You cannot write ACSOutVariableName[1,1]
  9. MOVE

    Considering you are using Ethernet/IP, usually aside from the Position Command, the Drives also have status bits mapped to the PLC Memory. Something like BUSY, FLAG, DONE, or whatever... It will be easier if you can use one of these status bits to check whether the first movement is completed, before giving the next movement instruction. I'd say using Zone Compare is not a reliable method for Ethernet/IP because there is no guarantee that the data transmission is on a constant cycle, so the ladder program might missed some intermediate values
  10. Erratic analog input

    RTD outputs resistance... not current... As kath_kath said you need a signal converter from RTD to 4-20 mA current before inserting it to the analog input module. Alternatively you can purchase a Temperature Input Module like TS001 which can be coupled to RTD or Thermocouple directly
  11. SUPERVISION OF A CHAIN

    For the CP1L, yes you can do it that way. For the CPM2A, yes you can use CQM1-CIF02 for the converter. On the PC side, it must be interpreted as a Virtual Serial Port (basically don't forget to install the USB Drivers). Technically yes, you can do it. The problem will fall with the speed of your monitoring system... You might considering to use a USB hub so that you can have 8 USB ports for each PLCs... but then again personally I don't think USB is the most reliable communication in terms of speed. Don't forget to consider this as the requirement.
  12. SUPERVISION OF A CHAIN

    The question is how long you can have the USB cable before it fails you... typically 15 meter is the most reliable length of that cable...
  13. SUPERVISION OF A CHAIN

    Yes it will.
  14. SUPERVISION OF A CHAIN

    As far as I know, CPM2A does not support One-to-many communications such as RS-485. Even if you use an adapter, RS-485 will require Unit Address on it's data packets, which CPM2A does not support, so in the end you cannot divide data by PLC. I think the most possible way is to have your CPM2A serial port hooked onto a Serial-Ethernet adapter, with the Ethernet side is configurable so that it is detected as a Virtual Serial Port in a PC. We need it to be acknowledged as a Virtual Serial Port because CPM2A cannot decode any Ethernet protocols, and Softwares that supports monitoring CPM2A (for example CX-Supervisor) will not be configurable to connect to the CPM2A via Ethernet protocols. I've been discussing a similar issue on this thread  on which it also mentioned a particular Serial-Ethernet adapter that is able to be detected as a Virtual Serial Port
  15. HMI NB10 - Recipe

    On what way it doesn't work? Like you cannot upload the recipe data or something else? If you want you can upload your recipe file here so we can review it
  16. What @Michael Walsh suggested is that you set a certain threshold value of the pressure. 1. For example you set the threshold to 1 kPA. This threshold is to be read by an Analog pressure sensor, so you need to scale the analog conversion value to the pressure units. 2. Start the pressing action, and at the same time you run a Timer inside the PLC. 3. Your pressing action should be controlled in the same way for both materials (same speed or same target torque) 4. Compare the value of the analog reading, is that already reaching the said Threshold or not. 5. If the analog reading has reached the threshold, you stop the Timer and the pressing action, then you check the time. 6. You should have a standard time value for each material and compare the Timer value to those standard values. From that you can determine what material were you pressing. That method may work, but it requires you to know/conducting research beforehand on what Timer value is expected for each material. Another way is that you need to measure the Gradient of the pressure relative to time. It should be simpler, but you need to know the Gradient of each material, like this : 1. Start the pressing action, and at the same time you run a Timer inside the PLC. 2. For a said sampling interval, you sample the current pressure level read by the analog pressure sensor 3. For example, each 500 ms you read the current pressure level. 4. You measure the gradient by the following formula : (CurrentPressure - PreviousPressure)/(CurrentTime - PreviousTime) 5. This way you will get the Gradient of the pressure relative to time and compare it with the expected Gradient of each material to determine what material is it.
  17. Modbus-RTU communication omron to third party

    Considering you've set the CP1W-CIF11 option board DIP Switches correctly (and also the PLC DIP Switches) you should be able to use the Modbus Easy Master function. Post something what you've did so far (program maybe), and the Delta's register address that you want to read/write, then we may able to talk more.
  18. Connecting 4 PLCS to One PC and CX-supervisor

    I had no experience with NPort. As you mentioned it is a Serial-Ethernet converter, but the question is, will the converter acknowledged by the PC as a Serial Port, or just as another Ethernet Device? Like is there any Drivers which allows a Virtual Serial Port to be shown up on your Device Manager for every converter you connected or not (just like USB-Serial converter)? I am asking this because Omron have different protocols to be used on Ethernet (FINS/UDP or FINS/TCP) and Serial Port (Hostlink). CX-Supervisor must recognize that your computer have a Serial Port (virtual or real doesn't matter) in order to use Hostlink protocol to communicate with the PLC. We cannot use the FINS/UDP or FINS/TCP protocols and hoping that it will be converted on the PLCs end without issues, since in Omron case the ethernet protocols package are different with the serial one. If, as I said, you can register each converter as a Virtual Serial Port in your PC, then the connection should be straight-forward. Just use the "Add Device" tool in CX-Supervisor and choose correct PLC type to connect to which COM port
  19. Omron CJ1W-ETN21 Redundant

    Yes, it should be OK, however we cannot really say that the device/network is redundant, since the CJ2M will have no way to switch which ETN21 is active automatically. Also if one unit fails the entire system will be failing also.
  20. cp1l to cp1l modbus easy slave ?

    Whoa... I didn't know you managed to get the unlocked version. Regardless, I had a check on it. You can see at the top of the ModbusSlave FB, there is a *U Insctruction, multiplying the Port input with 100, and feeds it to Port_Specifier variable. This Port_Specifier is later used for both RXD and TXD Control Word. Since the two lower digits of this variable will always be 00, then it means no handshaking is used (Not using CS / RS control, if we look into RXD/TXD manual) Did you see the LED in the CIF11 blink at all?
  21. cp1l to cp1l modbus easy slave ?

    Some things to be considered : You are setting the Serial Port to Serial Gateway, thus it won't work. Serial Gateway will only work if data is sent first from the PLC then it will process the received response. In our Modbus Slave case, it needs to receive data first from the master then send it back. Change this to RS232C instead. Also make sure your PLC DIP Switches are turned off. For the RS232C setting, make sure the Baud Rate, Stop Bit, and Parity settings are the same with the master. Data Bit should be set to 8. For two wire communications, your should wire the A and B Modbus wire to SDA and SDB of the CIF11. Do check the DIP Switches in the CIF11 also.  
  22. cp1l to cp1l modbus easy slave ?

    I think this is the issue. Try turning DIP Switch 6 Off on both CIF11. The RXD/TXD inside the function block might not incorporate handshaking
  23. There are no such tools by Omron. We've discussed about that before here http://forums.mrplc.com/index.php?/topic/34424-cip-betwen-cj2m-and-ns8-hmi/  
  24. Struct as FB input

    I explained in the post above already. Basically no, you can't
  25. cp1l to cp1l modbus easy slave ?

    You'll find what you need here https://www.myomron.com/index.php?action=kb&article=1242