Reset bits at power up of S7-317T

What trouble are you having ? OB100 executes on plc startup so you should put the resetting of your data in there.
 
LD I saw in the help menu about OB100 so I tried it out set a couple of data bits then powered down the plc and then powered it back up it didn't appear to reset the data bits not sure what to do next code is as follows in OB100

R DB102.DBX24.5
R DB102.DBX25.5
R DB102.DBX30.1
R DB102.DBX30.3
L 0
T DB102.DBW40
BE
 
Code:
SET
R Db102.dbx24.5
R Db102.dbx25.5
R Db102.dbx30.1
R Db102.dbx30.3
L 0
T Db102.dbw40
 
Hi, Try


CLR
= DB102.DBX24.5
= DB102.DBX25.5
= DB102.DBX30.1
= DB102.DBX30.3
L 0
T DB102.DBW40

 

Similar Topics

I have a graphic that has 2 buttons for Automatic and Manual, each with pushbutton animations associated with them to toggle a bit in the PLC, one...
Replies
8
Views
2,544
I was always taught to make my software easy to understand and fault find on by anyone reading it. Good practice right? Now I know set and reset...
Replies
18
Views
4,780
I just recently installed a1771 HSCM in a plc 530 and for the life of me I cannot get the reset fuction to work. all the Numbers in the encoder...
Replies
3
Views
1,688
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...
Replies
5
Views
6,735
Hello, I still do not have equipment in to test. But the RTAC ladder does not have a timer reset coil. I wonder if a reset coil on Timer.IN is...
Replies
1
Views
122
Back
Top Bottom