Applied
Member
I’m experiencing some unusual behaviour when using the Programmable Limit Switch Function in an AB microLOGIX1100 PLC.
For test purposes, I’m using the example in the “MicroLogix 1100 Programmable Controller Instruction Set Reference” manual.
PLS10:0.HIP=250 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000001
PLS10:1.HIP=500 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000010
PLS10:2.HIP=750 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000100
PLS10:3.HIP=1000 PLS10:0.LOP=0 PLS10:0.OHD=0000000000001000
What I’m expecting to happen is:
From 0 to 250 - no outputs are on
From 250 to 500 – output 0 is on
From 500 to 750 – output 0 is off and output 1 is on
From 750 to 1000 – output 1 is off and output 2 is on
At a count of 1000 the cycle resets and repeats.
What is happening however is:
The HSC accumulator counts from –
0 to 250 and then
0 to 500 and then
0 to 750 and then
0 to 1000 and then repeats
0 to 250 and so on
Unfortunately, I have to use the HSC and PLS functions as, the PLC scan rate is too slow. My HSC input is switching at 200Hz and I need to turn an output on for two counts.
What am I missing??
For test purposes, I’m using the example in the “MicroLogix 1100 Programmable Controller Instruction Set Reference” manual.
PLS10:0.HIP=250 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000001
PLS10:1.HIP=500 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000010
PLS10:2.HIP=750 PLS10:0.LOP=0 PLS10:0.OHD=0000000000000100
PLS10:3.HIP=1000 PLS10:0.LOP=0 PLS10:0.OHD=0000000000001000
What I’m expecting to happen is:
From 0 to 250 - no outputs are on
From 250 to 500 – output 0 is on
From 500 to 750 – output 0 is off and output 1 is on
From 750 to 1000 – output 1 is off and output 2 is on
At a count of 1000 the cycle resets and repeats.
What is happening however is:
The HSC accumulator counts from –
0 to 250 and then
0 to 500 and then
0 to 750 and then
0 to 1000 and then repeats
0 to 250 and so on
Unfortunately, I have to use the HSC and PLS functions as, the PLC scan rate is too slow. My HSC input is switching at 200Hz and I need to turn an output on for two counts.
What am I missing??