IO_Rack

MrPLC Member
  • Content count

    1709
  • Joined

  • Last visited

Everything posted by IO_Rack

  1. cx programmer workspace

    From what you describe, it sounds like your ladder window is in Restore Down. (vs. Maximized). If it is Restore Down then all newly opened windows will be Restore Down. Conversely, when it is Maximized, all newly opened windows will be Maximized. In my experience, if you start a new project the window and tool bar settings will be default. If you open an existing project, the window and tool bar settings are stored in the *.opt file with the project name. This file is not necessary for the integrity of the PLC program so you can just delete it.
  2. p524_nj-series_-[ethercat]-_grt1-ect_smartslice_cg_en.pdf (omron.eu)  
  3. https://forums.mrplc.com/index.php?/files/file/1029-nt-support-tool-ntst-485-registry-fix/
  4. Any Safety PLC would replace your Pilz. You won't find a drop-in-place option though. You'll need to understand each safety circuit and reproduce it in the new PLC. The Pilz appears to be a dedicated Safety PLC where AB GuardLogix are integrated Standard and Safety. It may be an expensive option. There are many manufacturers that make dedicated Safety PLCs. Omron, Banner and Keyence are brands we've used. They work quite well and are a cost effective solution. In my opinion, the Omron stand alone Safety PLC is a bit cumbersome and you have to purchase the software. Banner and Keyence software is included (free download).
  5. problem with simulated encoder

    The counter is counting in BCD. You are comparing it to a Decimal number.  The CJ1 doesn't not have a Decimal counter so try counting up and down using + and - instructions.
  6. Safety PLC Upload

    That doesn't look normal. I would check to see if there are any EtherCAT errors first. Then try to transfer using the menu item Controller > Transfer > From Controller. Are you sure there is a program in the controller?
  7. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    I don't know. You would have to explain what your application is doing. Your original program shows 12 buttons and 1 camera. I assume there is more to it than that.
  8. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    I don't know exactly what your program is doing but it looks like you are sending a PLC output signal to a camera and the camera is responding to a PLC input. In any case, here are two examples of simple latching circuits.  The HMI push buttons are momentary. The feedback can possibly be the input from the camera if my assumption is correct. Or whatever ends your process.
  9. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    No, they won't.  The quick and dirty method would be to program the button in the PLC as an output with an "R". (Right click and choose Reset Instruction). However, I don't recommend that. I would make the buttons momentary. Latch your Action bit in the PLC. "S". (Right click and choose Set Instruction). Wait for the Feedback to Reset the Action bit. Use the Action bit as VisualFeeback in your button. The idea here is to keep all the logic and logical decisions in the PLC. This is just my opinion and recommendation. There are many ways to program the same thing. I think this method makes it easier to troubleshoot since you can see all the actions in the PLC. The HMI is simply visualization of the actions in PLC.  
  10. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    The program is cyclic.... or it continually scans the program evaluating the input conditions and refreshing the outputs every scan. There is no need to reset anything.  For example (in your example), If the Print_PB is a momentary push button then it would turn ON LH_Printer_Output and RH_Printer_Output when pressed. When you release the button LH_Printer_Output and RH_Printer_Output would turn OFF. The refreshing happens automatically and continuously at the Task Execution Time. 
  11. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    Note:  There is no need for the END instruction. This apparently is implied with Sysmac Studio. (Maybe someone can explain better). Putting the END instruction there would prevent you from executing additional program sections.
  12. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    I'm not sure when this came along but it's the first time I experienced it. Click the check box(es) next to Tasks in the PLC project tree. That stumped me for a bit.
  13. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    You said you wrote some structured text. Is this still in your program turning HMI_CONTROL_STATUS off?
  14. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    Your problem is in the ladder. The output should be green inside the circle. This is showing that the output is not on even though the input conditions are true. 1) Make sure HMI_CONTROL_STATUS is not used as an output anywhere else in the program. Right click on the output and choose Fixed Target Cross Ref. You should only see it listed once in the Cross Reference window. 2) From the project tree, go to Task Settings > Program Assignment Settings (3rd icon from the top). Then make sure Program0 is listed and the Initial Status is set to Run.  It looks like your simulator is in run mode but check the Controller > Mode > Run Mode should be shaded while simulating. Otherwise click it to put it in Run Mode.
  15. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    Are you able to share your program?
  16. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    What do you mean by this? In your example, the PLC will turn on HMI_CONTROL_STATUS in ladder then your BitLamp0 should turn green.
  17. Timer logic

    If you have something that works, that's great! I would thoroughly test it. However, when I see the term 'sequence', my mind immediately goes to step programming. I'm also not a big fan of the TP instruction. I don't believe it's common across platforms. It may be simple in operation but I had to use the reference to understand it. There are many different methods of implementing sequence (or step) programming and it take a few more lines of ladder but it gives you the most flexibility and uses simple instructions. Note:  you don't show the coil for Motor 2 so I made an assumption here.
  18. DataLamp (NA5) HMI - (NX) PLC - Sysmac

    What you show looks correct. Are you sure you are running the simulator with both PLC and HMI? From the PLC menu, choose Simulation > Run with NA Simulator... or From the HMI menu, choose Simulation > Run with Controller Simulator...
  19. Connection Cognex Camera

    I think all Cognex mapping is the same but I would double check that. This structure is for an 8500 series that we are using. Also, adjust the End Byte to match the data size you choose. SysmacStudio_Cognex_Structures.xlsx
  20. Connection Cognex Camera

    You will connect via EtherNet/IP. in your Built-in EtherNet/IP Connection Settings, right click in the Target Device window in the upper right, then choose Display EDS Library. Install the Cognex EDS files (select them all) from "C:\Program Files (x86)\Cognex\In-Sight\In-Sight Explorer 6.2.1\Factory Protocol Description\EDS" directory. This is assuming you have Cognex In-sight Explorer installed. This should get you started.
  21. Pneumatic cylinder stroke length

    I don't currently have the Mitsubishi software installed but ladder is ladder. Here is an example in Omron. This is using the solenoid that Integrator_99 has linked to. This is basic sequence programming. There are multiple ways to achieve the same thing.
  22. Pneumatic cylinder stroke length

    To achieve that, you would need a 3 position valve where the center position is all closed (Pressure and Exhaust), as Integrator_99 has suggested.
  23. MOVE data

    Take a look at AccumulationTimer. This will output TIME data type. You can use TimeToNanoSec to convert if you wish. You can use the method you are attempting but you'll need to reset the TON after the time elapses.
  24. CJ2H - Hostlink Connection

    How soon could you get a CJ1W-CIF11? Hostlink is a command/response protocol. You could however use the TXD PLC instruction to send some raw data. 
  25. thumb wheel switch

    BobLfoot I'm calling you The Pinball Wizard from now on! LOL