Can I have some help???

josesaucedo

Member
Join Date
Nov 2005
Location
Van Nuys, CA.
Posts
78
Hello there, I'm working on a class project with a TON, SQO, and a MOV instruction. I completed the first part of it, but I got stuck on the second part.
The first part is the following:

----------TON--------
-----[ I/0 ]-------[T4:0/DN]------------| Timer: T4:0 |
| Time base .01 | | Preset 0 |
| Accu 0 |
|____________________|


-----[ T4:0/DN ]------------------------|---------SQO--------|
| File: #B3:0 |
| Mask: 003Fh |
| Dest: O:0.0 |
| Ctrl: R6:0 |
| Len: 10 |
| Pos: 0 |
|____________________|

-----[ T4:0/DN ]------------------------|----------MOV-------|
| MOVE |
| SRC: N7:0 |
| DEST: T4:0.PRE |
|____________________|

The data table for BIT file is the following:

OFFSET 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
B3:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
B3:1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
B3:4 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
B3:5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
B3:5 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
B3:6 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
B3:7 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
B3:8 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
B3:9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
B3:10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

For this part I had to store the value 70 in word N7:0 in the INTEGER file N7.

The second part asks me to change the SOURCE address in the MOVE instruction (RUNG 2) to #N7:0 and choose a differnt dwell time for each sequencer step, between .3 and 1 second.
I dont know where to change those numbers!
Also when I change the SOURCE addres to #N7:0 and close I/0, outputs 0 through 5 go crazy. Why is that?
Can any body give some help?
Thanks guys.
 
Jose,

Your Rung 2 causes the Timer T4:0 Preset values to be controlled by the value in word locations N7:0 to N7:9. (The # means it is an Indexed Address). So to change the dwell time for each sequencer step, simply manually change the values in N7:0 to N7:9 from 30 (30 X 0.01 seconds) to 100 (100 x 0.01 seconds). It appears that you have 10 steps (counting the first), so start with N7:0 = 30, then increase the number by 7 each time, so set N7:1 = 37, N7:2 = 44, N7:3 = 51, and so on up to N7:9 = 100.
 
Lancie1, I gave the dwell time to every sequencer step, but when I close I/0, outputs 0 to 5 go crazy like if they would go on and off at a very high speed.
Is there something wrong with the program?
 
It appeared that the program was supposed to turn on outputs 0 through 5 in sequence, then step back down again to 0, with the time for each step varying between 0.3 and 1 second.

Now that you got it, here is the way I did it. The LogixPro Simulator program does not have the 0.01 Time Base, so I used longer times, but you may adjust it to the required values.

Sequencer_with_variable_times_1.jpg

Sequencer_with_variable_times_2.jpg

Sequencer_with_variable_times_3.jpg
 
Last edited:

Similar Topics

Please see attached file. I need this program in Function Block form but I am totally lost on this. Any help would be appreciated. Thanks!
Replies
2
Views
107
Took a new job and the controls schemes are fairly old and I'm used to Allen Bradley and Siemens. I'm looking to replace a pair of Superior...
Replies
1
Views
71
Hello, I have a question about fuses and how to calculate their required size. I understand that determining the appropriate fuse size isn't...
Replies
0
Views
90
I'm creating an HMI that has a recipe with 288 data point. It has 3 pieces of data for 96 segments. I need help with VBA code to copy all 288...
Replies
0
Views
105
I have a network with 4 PLCs PLC1 is controllogix and PLCs 2-4 are compactlogix and they all need to communicate. The current way I have this...
Replies
8
Views
200
Back
Top Bottom