I should to make some changes in one step 5 program. I added new 4 inputs an no outputs. I made changes in one PB block but I couldn't get a good result. Before I explane a little more, for information, hardware configuration like this: CPU 95U, (address: I32.0-I33.7, Q32.0-Q33.7) and two input/output (6ES5 482-8MA13) moduls 16Di/16DO (I64.0-I65.7, Q64.0-Q65.7 and I72.0-I73.7, Q80.0-Q81.7- note: I read this addresses from documentation of machine). And there is memory submodule EPROM. For my inputs I used 4 DI on addresses I72.0-I72.3). After my attemptings to find out where I make mistake in program, I make one simple, test program, reading one input and put on output
=Q 64.6 (Q64.6 is free output)
What's strange?! When I set bit I72.3(this signal is cyclically where I72.3 is 1 about 750ms and 0 about 250ms- this is CAM signal of eccentric machine), appeared led lamp on Q64.4 (set output), but when I put 0 on I72.3, Q64.6 is still "1"!!! After that I didn't know what going on? When I power off machine and than power on, Q64.6 become 0! Can someone know what's problem?
Or, the next example I was made:
A I72.2 ( for example, I touch 24V on this input 2 sec and than untouch signal)
and all time signal Q64.6 is 1!!!
Why, I don't know.
By the way, in text bellow I'll write my program (I should read status of bar code scanner I72.1)
seg 1 (falling edge of I64.0)
seg 2 (during cycle of I72.3 I read status of I 72.1- bac code signal)
seg 3 (callinf FB 15, where I shift one word)
This program should read status of barcode signal of eccentic machine, in cycle time about 1 sec. This status I write on location F40.0 and than shift word. Than I read bit F41.2 (this is 10th locaiton of shift word) and used as control signal for ejecting products if barcode is Ok).