I need someone smart, clock project

I received a PM from one of our forum viewers inquiring about the use of S:40 in an indirect address in the program I posted earlier in this thread. Without getting into the specifics of a private message, I still wanted to post this here for the benefit of others who might have a similar question.

The forum member was asking about rung 2:2
MOV C5:0.ACC N11:[S:40]

He apparently interpreted the rung that the rung moved the timer accumulator value to the S:40 register. I explained indirect addressing.

The value is not being moved to the status file. The S:40 inside the brackets indicate that it is an indirect address, and the value of the counter accumulator is moved to the word in file N11 that is pointed to by S:40. That is, when S:40 = 0 the address is N11:0. When S:40 = 1 the address is N11:1, when S:40 = 2 the address is N11:2, etc. File N11 has 24 words in it, one for each hour. The counter accumulator is continuously moved to each of the words that corresponds to the current hour. When the hour changes then the place to which the counter accumulator is copied changes.

I hope that helps.
 

Similar Topics

I have a customer in Phoenix AZ that needs a service call for help with a Telemecanique TSX17 plc system. Can anybody help?
Replies
1
Views
1,417
I have some st routines that i cant open due to my company dosnt have a st editor license. Could someone open these for me if i upload them or the...
Replies
12
Views
3,103
I need help writing a plc lab ladder diagram for class. Can anyone help? Please!!!!!!!! Its a clamp and grind.
Replies
34
Views
6,517
Hello, Does anyone out there have a very new revision # of RS Logix 5? I need a .RSP file saved as a Word document and e-mailed to me. If you...
Replies
3
Views
1,507
HELP! I need someone to open a automation 405 (may be a 305) ladder. I do'nt have the software anymore and need to have a hard copy. If someone...
Replies
4
Views
1,682
Back
Top Bottom