03-22-2010 05:14 AM
Hi,
I made a application with some boolean buttons.
No I'm having the following problem:
After I build the project and test it, the buttons are not pushed (False).
That is excactly what I want.
But when I connect it to the PLC, there are some buttons that are pushed (TRUE) automatically.
In my opinion it is very strange that some buttons do that, beceause they al have the same operation: "Switch Until Released".
Do I have to change the operation?
When I have to do this, it is very strange that some buttons work properly, and some buttons not.
I hope someone can help me.
Greets.
03-22-2010 05:32 AM - edited 03-22-2010 05:34 AM
You can use a invoke node and select "reinitialize to default".
03-22-2010 05:33 AM
make sure that all your boolean buttons have the property "Latch when released" (offcourse based on your application)
Or there might be a chance that you have created some locals or property nodes which are wired with a true constant
Guru
03-22-2010 05:36 AM
Cheese11 wrote:
[...]
But when I connect it to the PLC, there are some buttons that are pushed (TRUE) automatically.
[...]
What does that sentence indicate? I suspect:
- Frontpanelbinding
- Reading shared variables/datasocket and writing data to the buttons (variables/property node "value")
Without seeing the code, it is impossible to tell what is going on....
Norbert
03-22-2010 05:40 AM
Is it also OK when I use the "Switch Untill Released" operation?
Beceause most of the buttons that I use have this operation.
But some are staying switched, very weird.
But I will try to do the handlings that Muks said.
There are no locals or property nodes, so there is no constant true.
03-22-2010 05:45 AM
Norbert,
There is a variable coupled to the button.
The variable stands in a DB (as boolean ofcourse), and this is coupled in a program.
The variable is just used to reset the variable.
In my opinion the variable is nowhere set to TRUE.
So what can the problem be?
03-22-2010 05:46 AM
03-22-2010 05:47 AM
I have NEVER seen buttons to change their value just on their own. This is independend of the setting of the button....
So there has to be some code changing the value of the button.
Norbert
03-22-2010 05:54 AM
I too accept and feel you will atleast be using a case structure where the value is getting set and not getting revoked. Just a pure guess.
Norbert B wrote:I have NEVER seen buttons to change their value just on their own. This is independend of the setting of the button....
So there has to be some code changing the value of the button.
Norbert
03-22-2010 07:47 AM
To stop everyone having to wildly guess could you just PLEASE post your code. Im sure that someone will take the time to look at it and rectify.
Thanks.