8/21/2011 11:21 PM | |
Joined: 1/28/2009 Last visit: 3/8/2025 Posts: 6860 Rating:
|
It is obligatory to assign addresses to Functions as it is point out in the following exerpts of the STEP7 online manual.You can find the pdf version of the document in attachment(FC).
It is not possible to negate an INPUT/OUTPUT parameter of an FC like an input parameter.It seems that the INPUT/OUTPUT parameter is like a share memory , you can write values on the parameter but not permanetly to give the function chance to return results of its own operation.Negation or other logical operation can be done inside the function if necessary.
It is not possible to do so as STEP7 return an error.Simply assign a bit to the address and use that bit for further process in your program. Best regards AttachmentFC.pdf (353 Downloads) |
Last edited by: hdhosseini at: 8/21/2011 11:23 PM |
|
8/22/2011 10:05 AM | |
Joined: 2/6/2009 Last visit: 1/7/2025 Posts: 939 Rating:
|
Hi, Ashdhosseinimentioned it is not possible tonegatethe output pin of FC. But there is one method to avoid the error. Assign some Temp bits in the block (can be FC. FB , OB) from where you are going to call the driver block FC and use those temp bits in the ouput pin of FC. Hope this helps.
|
Last edited by: Saravana kumar at: 8/22/2011 10:06 AM_______________________________________________________________ |
|
8/23/2011 7:20 PM | |
Posts: 3 Rating:
|
Thanks all for your kind help. These were things I could do with Unity Pro. Looks, I have to modify my Unity code to run on Siemens. |
8/23/2011 8:41 PM | |
Joined: 1/28/2009 Last visit: 3/8/2025 Posts: 6860 Rating:
|
Dear Bilal390 To get the basic information on working with STEP7 and also basics of programming this starting point would be good: Working with STEP 7 Getting Started Also reference such as Programming With STEP7 and STEP7 online manual are also helpful. Best regards Best regards |
Follow us on