I'm writting a program for a packing machine.
Say from the start to the end the quantity of packs are 20, with a couple of sensors placed at say stage 3, 7, 10 etc.
I have been using the SHRB (and not shift register), under SIMATIC microwin 3.x, with a CPU-226. the SHRB is somewhat similar to shift register but most pro's use shift regs. but since the SHRB was working for me, so far I have been using it.
Now the problem is, sometimes the Machine has to be operated, after disabling any of the sensor. So far this had to be done by physically dis-connecting the sensor in question!
I am thinking of inserting a variable (say V0.0) between the INPUT and the SET instruction, so that when the bit is on the sensor work and when the BIT is OFF the sensor cannot set the bit.
I know INPUT (and output) bits can be FORCED from the TD-200, but I dont what to enable this feature at all, otherwise, this might create a mess, as enabling this option will all the user to change any input/output!
the best I could think of is, to use a byte, with a '=' comparator, so that when the byte is 0, it doesnt work, and if its anything else 1,2,3, .....100,... it works! (seems kinda weird)
The reason I think I have to use the byte instruction here, is that I dont think i've ever heard of triggering memory BITS from a TD-200.
Any comments will be appreciated.
Say from the start to the end the quantity of packs are 20, with a couple of sensors placed at say stage 3, 7, 10 etc.
I have been using the SHRB (and not shift register), under SIMATIC microwin 3.x, with a CPU-226. the SHRB is somewhat similar to shift register but most pro's use shift regs. but since the SHRB was working for me, so far I have been using it.
Now the problem is, sometimes the Machine has to be operated, after disabling any of the sensor. So far this had to be done by physically dis-connecting the sensor in question!
I am thinking of inserting a variable (say V0.0) between the INPUT and the SET instruction, so that when the bit is on the sensor work and when the BIT is OFF the sensor cannot set the bit.
I know INPUT (and output) bits can be FORCED from the TD-200, but I dont what to enable this feature at all, otherwise, this might create a mess, as enabling this option will all the user to change any input/output!
the best I could think of is, to use a byte, with a '=' comparator, so that when the byte is 0, it doesnt work, and if its anything else 1,2,3, .....100,... it works! (seems kinda weird)
The reason I think I have to use the byte instruction here, is that I dont think i've ever heard of triggering memory BITS from a TD-200.
Any comments will be appreciated.