4/4/2017 12:07 PM | |
Joined: 3/31/2008 Last visit: 4/21/2023 Posts: 15 Rating:
|
Can someone tell me what I'am doing wrong. I'am not an expert with Siemens products. I have made similar FB's with other PLC's. My plan is to make general FB block that controls drive. Inside the FB is simple program that starts/stops the drive, check drive state and increse error counters if somehing is wrong. I have made first simple version of the block. It works but only when I have one drive. When I use 2 drives something goes wrong, in this case FB block is duplicated in program (OB1). If I start the program for the first drive "Tag_30" -> "1" (FB3/DB1), first drive will go to run and stop state as it should but for some reason also the second drive (FB3/DB3) will do this. I would expect that second drive is only controlled when I set "Tag_32" to "1". In the FB block I give the start address for process data (first I/Q address of the slave). From this information the block should calculate the addresses SW/CW, REF/ACT, PDin/PDout. It could be that there is something wrong with that part of the code... I have made the code using SCL. Could someone point me in the right direction with program? Do I misunderstand something complete with FB blocks. AttachmentFB3_of_the_program.txt (217 Downloads) |
Follow us on