4/13/2011 8:50 PM | |
Joined: 8/16/2010 Last visit: 7/8/2024 Posts: 50 Rating: (8) |
Hi LOGO guru's, I have a problem that I hope someone can explain. It might be a simulation bug but I've not got the hardware available to test it on. Basically I'm working on a TD menu structure that I intend to post so that other users can benefit from it. The problem appears to be that the M flagcoil is set but the contacts for the M flag don't get updated until a full scan later. However for functions likethe latch, thecoil is set and the contacts are also updated in the same scan. This is causing me a problem. Attached is a sample program that demonstrates this. The output Q1 should not come on until F1 is pressed and released for a second time. Is this just a simulation error or does it actually work like this in practice? I have a smaller menu structure workingusing a work around but wondered if I am actually doing something wrong? I have previous experience with Allen Bradley PLC's and have recently started with the larger Siemens S7-400 which work slightly different in terms of how the program scans and updates I/O and flags. Thanks, RandomCoder AttachmentM Flag.zip (473 Downloads) |
4/14/2011 7:52 AM | |
Posts: 153 Rating: (16) |
Hi_RandomCoder Cursors work as the pushbutton in a reality. Therefore it is required to make changes to the program. I have made cursors as it will work really. Look att- AttachmentM Flag_change.zip (497 Downloads) |
Last edited by: Andres [Str] at: 4/14/2011 7:53 AM |
|
4/14/2011 8:47 AM | |
Joined: 8/16/2010 Last visit: 7/8/2024 Posts: 50 Rating: (8) |
Good morning Andres, Thank you for your reply but I'm afraid that you has misunderstood the problem. The problem looks as though an M flag contact takes one scan more than a function block to change. My program was just an example to demonstrate the strange behaviour. It takes just onepress on F1toturn output Q1 on. However it should wait until the F1 key is released after the second press. Attached file is my work around showing how I intended itto work, but the question is why do M flags operate differently? Is it just a simulation bug or does it also occur on the LOGO? (Hopefully I will get chance to test later today on a proper device). Kind regards, RandomCoder AttachmentExample 2.zip (431 Downloads) |
Follow us on