sparkysliderz
Member
Hiya guys,
I wondered if anyone could help me with my problem as I think i may have shot myself in the foot!
I "borrowed" S7Guys program conveyors.zip and modified it to suit my application, which is at the moment calling 72 seperate FC's which are identical except for their I/O and Timer & counter numbers! I have modified the original conveyor UDT and am now only calling 2 FB's within my modified code.
Everything was looking good until I came to de-bug my code! and it hit me like a sledge hammer what the problem is but I have no idea how to fix it! Please see the code snippet.......
As you can see its fine but the 3 timers and 4 counters I need never change their values as they are being re-called when the FB is reloaded with different parameters from the UDT?
Please help guys! Thanks in advance!
I wondered if anyone could help me with my problem as I think i may have shot myself in the foot!
I "borrowed" S7Guys program conveyors.zip and modified it to suit my application, which is at the moment calling 72 seperate FC's which are identical except for their I/O and Timer & counter numbers! I have modified the original conveyor UDT and am now only calling 2 FB's within my modified code.
Everything was looking good until I came to de-bug my code! and it hit me like a sledge hammer what the problem is but I have no idea how to fix it! Please see the code snippet.......
As you can see its fine but the 3 timers and 4 counters I need never change their values as they are being re-called when the FB is reloaded with different parameters from the UDT?
Please help guys! Thanks in advance!