josesaucedo
Member
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.
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.