6/24/2010 1:06 PM | |
Joined: 10/7/2005 Last visit: 11/7/2024 Posts: 3026 Rating: (1057)
|
Hello Saravana kumar have a look at SFC21 "Fill" ("fill" all bits with 0's to reset them and "fill" all bits with 1's to set them). The only thing to look out for is that the number of bits must be a mltiple of 8 (use F1 on SFC21 to find out more about it). I hope this helps |
Cheers |
|
This contribution was helpful to2 thankful Users |
6/24/2010 1:18 PM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
Dearfritz, I have used Fill Block, But as you said the number of bits should be in the multiples of 8. But for my requirement I don't want to give in the multiples of 8. Is there any other method to do it.
|
_______________________________________________________________ |
|
6/24/2010 1:43 PM | |
Joined: 10/7/2005 Last visit: 11/7/2024 Posts: 3026 Rating: (1057)
|
There's FC82 (RSET Bit) and FC83 (SET Bit) in the "TI-S7 converting Blocks" library dear Saravana kumar I haven't used these yet though and don't like their MCR dependency, but they will (should) do what you are after. Apart from them you'll find a few Bit related handling blocks in theOSCAT S7 library which may be of use for you (available free of charge from www.oscat.de) That's all I can think of (apart from writing your own block) and I hope it helps |
Cheers |
|
This contribution was helpful to2 thankful Users |
6/24/2010 2:43 PM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
DearAMAZINGAHMED, I need to set/ Reset 100 bits at a time. If I am writing a logic to move zero to MD, MW or Mx then is does't look good. That is the reson I am asking for the Set/Reset block.
|
_______________________________________________________________ |
|
6/24/2010 3:03 PM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
Dearfritz, Thank you and FC82 and FC83 block are working well. Could you tell me,what are the issue's with MCRdependency. I don't have muck idea about MCR.
|
_______________________________________________________________ |
|
6/27/2010 10:19 AM | |
Joined: 2/6/2009 Last visit: 8/19/2024 Posts: 939 Rating: (118) |
DearAMAZINGAHMED, Thank You for your help. I have created a block for set/Reset Range of bits and it is available in thisTIP. Thanks for all.
|
_______________________________________________________________ |
|
Follow us on