Posted 22 Oct 2017 Hi, I have a couple of C200HS's set up with DIOs and they work very well for me. I use the ladders, Timers, KEEP, and Counters to control hydraulic injection molding machines. Those are the only PLC commands I really know and use. For a new piece of equipment with solenoids and two speed motors, I will also use DIO cards and I am upgrading to a CJ1M. I do not use PLCs daily but I learn enough to program the machine and whenever, I need to go back to the PLC language, it is a new but quicker learning curve. My issue is this, I have a motor driven/air cylinder locking indexer (lazy susan) with 8 positions. Each station has a magnet for pick-up and one station has 2 magnets for a z-index. When I use a CTR to note the position, I want to store that number in non-volatile memory so when I re-power the machine, I do not have to spin the indexer to the home position. How do I go about doing this? Share this post Link to post Share on other sites
Posted 23 Oct 2017 http://www.edata.omron.com.au/eData/PLCs/CJ1/W394-E1-15.pdf The counter (CNT) instruction by default is memory retentive. Since you only need 8 positions then, I would use a fixed set value for the counter. (#0008) Note: The reset will be the CNT done bit. See the above manual.http://accautomation.ca/omron-cp1h-counters/ Another method that you may want to try is to use the increment (INC) instruction. You would increment a memory retentive address like Data Memory. (D0000) You can then compare the data memory with a value.http://accautomation.ca/omron-cp1h-compare-instructions/ The above use the CP1H but the instructions would be similar. Regards, Garry 1 person likes this Share this post Link to post Share on other sites