dalem
Member
Been in and out of here many times in last few months, most often found the answer I was looking for. Great site. Finally need to post a question. Any assistance will be much appreciated.
The hardware I'm using for this retrofit project is as follows.
1746-L40A fixed processor, expansion slots, FIO4V analog, HSCE2 and Panelview550.
Half of this hardware I already had, thus the reason for the fixed processor. What I'm wanting to do, is to replace a "thumbwheel board" on a strip feeding machine with this PLC set up. The feeder has a servo amplifier that the -10 to +10vdc analog will output to. I have the Panelview about done and most of the control programming and alarms done and the analog output work done. I even have the HSCE2 working with my temporary 60ppr encoder. I'm testing the set up in my office. The encoder on the feeder is 2000ppr, so some changes will be needed before I go on the machine.
Here's my problem. I'm am reading the encoder pulses and stuffing 0-999 in one N: word for the thousandths of an inch, then when that rolls over, adding one to the N: inch word. This works great. Forward and backwards. (Backwards is not needed for the application.) Problem is, when the encoder hit the max and rolls over. I've tried numerous things and all have caused strange behavior of my inch and thousandths words. I currently have the programming block for the HSCE2 set for a min of 0 and a maximum of 14999. (Tried 15000 this morning.)
If anyone has suggestions on what I'm not catching on to, example(s) or where I can go for some examples, you might save me much sleep (or lack of) this week end. I honestly did not think this was going to be the hardest part of this project, but it has me stumped today. If I can supply any more info, please ask.
Thanks in advance for any assistance.
Dale
The hardware I'm using for this retrofit project is as follows.
1746-L40A fixed processor, expansion slots, FIO4V analog, HSCE2 and Panelview550.
Half of this hardware I already had, thus the reason for the fixed processor. What I'm wanting to do, is to replace a "thumbwheel board" on a strip feeding machine with this PLC set up. The feeder has a servo amplifier that the -10 to +10vdc analog will output to. I have the Panelview about done and most of the control programming and alarms done and the analog output work done. I even have the HSCE2 working with my temporary 60ppr encoder. I'm testing the set up in my office. The encoder on the feeder is 2000ppr, so some changes will be needed before I go on the machine.
Here's my problem. I'm am reading the encoder pulses and stuffing 0-999 in one N: word for the thousandths of an inch, then when that rolls over, adding one to the N: inch word. This works great. Forward and backwards. (Backwards is not needed for the application.) Problem is, when the encoder hit the max and rolls over. I've tried numerous things and all have caused strange behavior of my inch and thousandths words. I currently have the programming block for the HSCE2 set for a min of 0 and a maximum of 14999. (Tried 15000 this morning.)
If anyone has suggestions on what I'm not catching on to, example(s) or where I can go for some examples, you might save me much sleep (or lack of) this week end. I honestly did not think this was going to be the hardest part of this project, but it has me stumped today. If I can supply any more info, please ask.
Thanks in advance for any assistance.
Dale
Last edited: