S7-200 Set, Reset (N Bits) where N=0 ?

mhopley

Member
Join Date
Jun 2005
Location
Manchester
Posts
65
I am looking at a S7-200 program offline that has code that uses set & reset commands but the length is set to 0.

The online helps states that you can set or reset from 1 to 255 points.

Does anyone know what the value of 0 does? I presume nothing but I want to make sure it is not some sort of undocumented trick.

TIA

set_reset.JPG
 
Last edited:
mhopley said:
I am looking at a S7-200 program offline that has code that uses set & reset commands but the length is set to 0.

The online helps states that you can set or reset from 1 to 255 points.

Does anyone know what the value of 0 does? I presume nothing but I want to make sure it is not some sort of undocumented trick.

TIA

set_reset.JPG
This feature is not undocumented. The parameter is used to specify if there are more signals to reset.
Example: R m 30.0,2 wil reset M30.0, m30.1 and M30.2.

I hope it helps.
 
clemens said:
This feature is not undocumented. The parameter is used to specify if there are more signals to reset.
Example: R m 30.0,2 wil reset M30.0, m30.1 and M30.2.

I hope it helps.

The way I have used this in the past is with value of 1 to set/reset 1 bit. So R M 30.0,8 resets the whole byte.

Unfortunately I do not have a PLC here to test with. Can someone confirm this is right or wrong?
 
Yes, you are right. With 0 you set or reset no bit. With 8 you set or reset 8 bits. After reading again your question I came to understand what you were really asking and I don't know.

Sorry
 

Similar Topics

I have a MicroLogix 1200 that has an 8 input and a 16 output. Every 6 months-year I get a fault and when online go to error it is something like...
Replies
3
Views
505
I'm having issues trying to Factory Reset my S7-1200 CPU. I purchased this controller used, so it came with an IP address already assigned and a...
Replies
8
Views
6,343
Hi Guys I have an s7-1200 just got it used...I am trying to connect to it directly with my pc. All the LED's are flashing. I am using STEP7 5.5 to...
Replies
19
Views
10,233
I have an application where we're using a Micrologix 1200, and there's a timer on that we use in our program where the preset value resets itself...
Replies
7
Views
1,857
hello i want to know that how i reset a counter value automatically on a specific time(e.g at 2 am)or after month or one year in siemiens s7 200
Replies
2
Views
2,095
Back
Top Bottom