1/17/2011 9:05 AM | |
Posts: 316 Rating: (37) |
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: 1/24/2025 Posts: 4397 Rating: (1464)
|
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/23/2024 Posts: 914 Rating: (40) |
Also you can use rotate instructions. |
Aim Higher |
|
8/7/2015 10:33 AM | |
Joined: 11/22/2014 Last visit: 1/25/2025 Posts: 1 Rating: (0) |
Dear Denilson,
Could you kindly refresh this link? Regards, |
8/7/2015 10:50 AM | |
Posts: 101 Rating: (7) |
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 to1 thankful Users |
8/7/2015 12:20 PM | |
Posts: 113 Rating: (22) |
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: 10/24/2023 Posts: 8 Rating: (3) |
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 to5 thankful Users |
Follow us on