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

I was wondering if anyone could help i am trying to use a SLC 500 with a 5/05 processor to set up an incremental encoder to a HSCE2 card? The card...
Replies
0
Views
48
Hello, I am working with cimplicity workbench, I have made changes to the current project from this machine I am using in the past. However when...
Replies
0
Views
40
Hello, doing switch from FBD to ST. First task is converting my old work. How do you sum variables? For example, Interlock1, interlocl2 and...
Replies
5
Views
175
Hi guys, I need help with position control using a Veichi AC Servo Drive model SD600A1-T2-2R2. How do I know how many pulses for it to rotary 1...
Replies
2
Views
86
Hi friends, i need a help to know the procedure and steps to connect Lenze i700 to PC for parameterize. i tried with lenze easy-starter using LAN...
Replies
0
Views
57
Back
Top Bottom