4/30/2010 9:07 AM | |
Posts: 6 Rating: (0) |
Hi guys, I created a faceplate and I want a few buttons which I can control my own created FB block. But it doesn't work when I click on the button.. The FB block is used for different units. I did the following: 1. Created faceplates for my custom FB block with faceplate designer 2. Changed the Servername and Blockname to my FB block name. 3. I called a few status objects (green/grey circles-> when my block is operated (has a manual and auto mode) I can display the status and that works. 4. When I do the same for a Buttonbit or BinOP ( copied from @pcs7elements and also from a motor block) then it doens't work. So I have a FB block with a manual and automode... I already changed the two variables from IN to IN/OUT because I've read in the topic below. The button is configured like this: User defined2 Write_Variable-1.0000000 .MAN_ON Display_Variable -1.000000 .Q_ON User defined3 Write_value 1 What is wrong?? I've read the following topic /tf/WW/en/Posts/29655 |
4/30/2010 9:43 AM | |
Joined: 3/14/2008 Last visit: 12/5/2024 Posts: 2147 Rating: (964) |
PCS7 has different versions..in next posts, please tell which version you are using. For your problem: What system parameters did you created for the variables you want to control? You MUST have the system parameter: S7_m_c.... It allows you to control the parameter(variable) from the OS... So the declaration should look like this: VAR_IN_OUT Manual_ON {S7_m_c :='true'}; :BOOL; //Manual mode END_VAR If you don't have this parameter, then add it and the button should be working, i'm pretty sure because everything looks correct.. Regards... |
If I could help you, you can use the RATE button. Thank you. |
|
4/30/2010 9:47 AM | |
Joined: 3/14/2008 Last visit: 12/5/2024 Posts: 2147 Rating: (964) |
Note: The program has to be compiled completely, so the CPU goes to stop. (if you add/change/delete a parameter in your custom block) |
If I could help you, you can use the RATE button. Thank you. |
|
Follow us on