1/17/2011 9:05 AM | |
Posts: 316 Rating:
|
Hi Marko, you can do the action with Word-Comparisons: - AND ->"UW" (read or resetthe bit) - OR -> "OW" (setthe bit) - XOR -> "XOW".(toggle the bit) If you program in SCL then you can us an AT-view. http://support.automation.siemens.com/WW/view/en/21947945 |
1/17/2011 10:50 AM | |
Joined: 9/23/2005 Last visit: 3/22/2023 Posts: 4180 Rating:
|
Hi, Take a look also in FAQ: "How can you group separate signals (variables of the "Bool" data type) to one variable of the "Word" type and again extract them from that "Word" variable (Bool - Word data type conversion)?" http://support.automation.siemens.com/WW/view/en/41512047 |
Denilson Pegaia |
|
1/17/2011 12:52 PM | |
Joined: 5/4/2009 Last visit: 11/9/2022 Posts: 906 Rating:
|
Also you can use rotate instructions. |
Aim Higher |
|
8/7/2015 10:33 AM | |
Joined: 11/22/2014 Last visit: 1/29/2023 Posts: 1 Rating:
|
Dear Denilson,
Could you kindly refresh this link? Regards, |
8/7/2015 10:50 AM | |
Posts: 101 Rating:
|
Well in s7-1200/1500 you can. It's called Slice access and you can read about it in the Programming Guideline for S7-1200/1500 section 3.6.5. It would look something like MyTag.X5 . Although not indexable. |
This contribution was helpful to
1 thankful Users |
8/7/2015 12:20 PM | |
Posts: 113 Rating:
|
It is kind of an old thread, and this will only work with non-optimised DB. from the manual - DB1.DBX2.3 gets you Bit 3 in Byte 2. |
2/11/2020 4:55 AM | |
Joined: 9/10/2013 Last visit: 2/12/2023 Posts: 8 Rating:
|
https://support.industry.siemens.com/cs/ww/en/view/57374718 #Word.%Xbit |
Last edited by: Jen_Moderator at: 02/11/2020 12:18:23Optimized link. |
|
This contribution was helpful to
3 thankful Users |
Follow us on