How to Use Bits of Word in WinCC?

keithkyll

Member
Join Date
Jul 2005
Location
Heath, TX
Posts
2,033
Too many Boolean tags. Need to use bits of a word.

I tried defining an IW word tag in the PLC, but couldn't address 1 bit in the HMI.

S7 Basic Portal V13. WinCC Runtime Advanced V13, 128 Power Tags (RT). Comfort 12" HMI. S7-1200 * 5.

Can someone post an example using a S7-1200 input word, and showing status lamps on an HMI? That should get me the push I need.
 
Last edited:
Too many Boolean tags. Need to use bits of a word.

I tried defining an IW word tag in the PLC, but couldn't address 1 bit in the HMI.

S7 Basic Portal V13. WinCC Runtime Advanced V13, 128 Power Tags (RT). Comfort 12" HMI. S7-1200 * 5.

Can someone post an example using a S7-1200 input word, and showing status lamps on an HMI? That should get me the push I need.
I'd use a DB.
Copy what you need to a DB and use it on the HMI.
Words or bytes and such.
 
Need more details. Treat me like I've never done this.
Let's take the first input bank for example. The boolean bit for the first input is I0.0. The word is IW0.
I can't use IW0.0 in the HMI. It needs to be converted to something else. I agree it should be in a DB. How do I convert?
 
I think I know what you are trying to do
BUT
I think you are stuck doing it this way
see pics
I don't see a clean way of breaking out bits in a word on the HMI
(I think you are stuck with bools (bool tags) in the HMI

hmibool.jpg
 

Similar Topics

Hello, I have 5 sensors that must be tripped in a specific order, and anything but this order is an error. The truth table looks like so: 0 0 0...
Replies
14
Views
4,645
I have a text display "Word Lamp" that I need to change the background color of if any one of 3 (sometimes 4) PLC bits are ON, and on top of all...
Replies
3
Views
4,117
In a Rx3i what would be the most efficient way to count the number of bits set in a word variable? The naive approach is to simply shift the bits...
Replies
2
Views
1,169
Hi I'm trying to move bits in to a word. I'm wanting to move %10.0 - %10.13 (Onboard Inputs) in to %MW1 I've tried moving one bit in to another...
Replies
1
Views
1,437
Hi I'm trying to move bits in to a word. I'm wanting to move %10.0 - %10.13 (Onboard Inputs) in to %MW1 I've tried moving one bit in to...
Replies
4
Views
3,388
Back
Top Bottom