(0)| 9/10/2011 5:48 PM | |
|
Posts: 22 Rating:
|
Dear All, I'm working on a project regarding compact water treatment plant and in my company wants to make this program as a template for future projects. I'm using S7-200 system (CPU 226) and I've 19 motors in this project and 29 solenoid valves, so i was asked to make a subroutine for motor and another one for valves, and call these 2 subroutines whenever needed in the main program.\ i did so, but whenever i try to operate more than 1 equipment (motor or valve) in the same time, i get wrong excusion and wrong outputs, after a while, i knew that i'm writing 2 different data on same local variable and it makes confliction. some one told me to use pointers in subroutines and it'll work. i kept looking in S7-200 system manual, but it doesn't show how to make it, and i knew that the lowest form i can use in a pointer is Byte, now i don't know how to use it to control certain bits. Attachement: sample program for motor control + motor control lib Thank you in advance. Regards Ahmed AttachmentMotor.zip (536 Downloads) |
| 9/11/2011 7:12 AM | |
|
Posts: 22 Rating:
|
Marcjan, thank you for your reply. I'm already not using anything that uses a memory (timers, counters..etc) i need you to explain more about this, so i'll send you the program as a *.pdf file maybe you can help me more with it. thanks in advance. Ahmed AttachmentMotor control.pdf (620 Downloads) |
Follow us on