Siemens S7 File mask or compare

Zombo

Member
Join Date
Nov 2003
Location
PA
Posts
50
What instruction can i use to check
if the contents of several bits in an array are zero. For example lets say my array starts at db0.dbx0.0 and ends at
db0.dbx20.0
I want to check bits db0.dbx0.0 thru db0.dbx11.7 and make sure all the bits are zero.Is there any kind of block instruction i can use to check this?
 
Well, you could just do three DWORD compares and check for equality to 0.

Compare DB0.DBD0, DB0.DBD4, and DB0.DBD8 to 0

That's the simplest I can think of at the moment
 
Unfortunately I have more bits than i
gave in the example. I am slowly seeing
the pitfalls of siemens s7. If i had
an Allen-bradley PLC i would be done
with this project already instead of
searching for instructions that are
the norm in AB.
 

Similar Topics

Hello. I appreciate the insights here and the willingness to share. I've got a lot of Rockwell experience, but my Siemens experience is...
Replies
6
Views
135
Need some help here (again). I tried to download my HMI to the PLC and I get this error message about a missing file. Can anyone help?
Replies
3
Views
670
Been scratching my head at what I thought should be a relatively simple task. I need to count how many rows a .csv file has, so I can later read...
Replies
6
Views
2,512
I don’t have the original project file from a Siemens ET200SP. The program is still running on the PLC. Is there any way I can upload the...
Replies
1
Views
1,609
Hi, I'm trying to send PDF screenshots from my 1500 comfort panel HMI to a specific folder in an IPC that is connected on the same network. It is...
Replies
6
Views
2,313
Back
Top Bottom