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,520
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,729
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,676
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,716
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
305
Back
Top Bottom