Confused by Set in S7-200

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
Hi all,

I'm converting an S7-200 program to S7-300 and found something confusing.

The SET in S7-200 has a number underneath it which the help says equals how many 'bits' are 'SET'.

attachment.php


attachment.php


This example seems to agree with that. It says that if the number of bits affected is '6' (for instance in Network 2) then the bits SET are Q0.2, Q0.3, Q0.4, Q0.5, Q0.6, Q0.7.

However... I've just found this code in my program....

attachment.php


What does the 'zero' underneath the bit mean?

According to the help file it shouldn't mean any bits are SET ?? But surely that can't be right?

Any ideas?

Thanks :)

pic2.JPG pic3.JPG pic1.JPG
 
Last edited:
The way I read the post I assume it literally does nothing.

But assuming can lead to mistakes. Maybe you could simulate it in microwin?
 
Unfortunately I don't have a way of simulating it.

I originally thought like you that it did nothing. However, after re-reading it, it could also mean that it just Sets/Resets the one bit (i.e. does exactly the same as putting a '1' under the bit) ?

If I don't get an answer in here forthcoming I'll resurrect the old thread and ask.

Thanks :)
 
I am going by memory but I believe 0 does nothing and to make the set / resets work you need to use a 1.

So I assume there is some sort of internal loop / indirect addressing where you are specifying the number of 'loops'. So if 0 is entered no code is actually executed.

But I can't find any other documentation on this topic either.
 

Similar Topics

Which of the following input operations require a conversion to digital form prior to input? a) disk b) analog c) contact closures d) limit...
Replies
12
Views
3,873
Hey all! I recently purchased myself a Panelview Plus off of ebay and i was hoping that i could upgrade the firmware on it to Version 9 or so and...
Replies
7
Views
2,734
Good morning everyone. I am apparently confused on the COP instruction. What I am trying to do is copy a DINT to a DINT in a User Defined Data...
Replies
16
Views
6,918
Hey guys, Im currently using the above flex IO to turn on two outputs these outputs go to two flashing red beacon lights. Here's the scenario: My...
Replies
4
Views
1,701
I'm event AV Technician (Sound, Projection, and Lighting). Over the last couple of years I've used a Weigl ProCommander PHX to control some event...
Replies
9
Views
2,690
Back
Top Bottom