Naming bits of a word in Siemens

manmeetvirdi

Member
Join Date
Oct 2004
Location
India.
Posts
750
Hi there

I have a data block (using Simatic Manager V5.3+SP3)
In this I gave the name of dbw0 as alpha
Now inside the program Iam using the various bits of this first word (alpha)
Ex dbx0.7,dbx0.6 etc

I want to name these individual bits too !
Is it possible?
 
You can create an ARRAY of bits in the data block, give the array any name you want then adress them like this;

A "test".bit[1]
A "test".bit[3]
A "test".bit[2]

(my db is named "test" and my bits named "bit")

All the bits in the ARRAY have the same name but a [number] to identify them.
Maybe this will do you?
 

Similar Topics

Hi, In our company (programming mainly Beckhoff PLCs) we are establishing internal coding guidelines for ST. Until now, the conventions were...
Replies
5
Views
1,097
I have a question about process interlock naming. I want to hear opinions, as well as if there is a relevant standard. When naming specific...
Replies
3
Views
666
I'm from a Mitsubishi Q-series background so excuse my ignorance. In Mitsubishi world, in my experience your Mbits (booleans) are just M1, M2...
Replies
20
Views
2,784
I am interested in good examples and best practices when choosing a project file name. Would you expect to include all or some of the following...
Replies
3
Views
2,257
I have a small modification that I want to make to a program in an S7-1500 using TIA portal V14 SP1. I have a global data block containing some...
Replies
6
Views
3,775
Back
Top Bottom