Brandon_K
Member
I'm wondering if anyone has any ideas how I could go about this. Let's say I have a Automation Direct Click (8x\6y) and when the following sequence is entered, Y1 activates; X3, X1, X2, X5, X4, X6. But later down the line, I want to change that sequence without having access to the controller or connecting a PC. It needs to be able to be reprogrammed by the 6 inputs exposed to the operator. The additional two inputs can be used if needed. Maybe one would be used to enter "programming mode" and the other could be used, once in programming mode, to copy data back to a default value.
I'm thinking if I have a counter assigned to each input which changes the value in a particular data field (I think these are DS in Click?), then use compare, maybe something along those lines will work?
I've put zero time into the code on this, something I've only been tossing around in my head. I figured before I put any time into writing ladder, I would post to see how you guys would go about this. I'm sure there are ways to do this with higher end PLC's, but at that point it becomes cost prohibitive compared to the somewhat specialized microprocessor I'm using now. Unfortunately, the Click has a fairly limited instruction set. Basic NO, NC, edge and compare contacts; set\reset, basic counter and timer; math, drum, copy data and shift registers are about all it can do. It is capable of doing subroutines and they can be called, but I'm not sure that will be helpful.
I'm thinking if I have a counter assigned to each input which changes the value in a particular data field (I think these are DS in Click?), then use compare, maybe something along those lines will work?
I've put zero time into the code on this, something I've only been tossing around in my head. I figured before I put any time into writing ladder, I would post to see how you guys would go about this. I'm sure there are ways to do this with higher end PLC's, but at that point it becomes cost prohibitive compared to the somewhat specialized microprocessor I'm using now. Unfortunately, the Click has a fairly limited instruction set. Basic NO, NC, edge and compare contacts; set\reset, basic counter and timer; math, drum, copy data and shift registers are about all it can do. It is capable of doing subroutines and they can be called, but I'm not sure that will be helpful.