
adccommunitymod (AutomationDirect) asked a question.
Created Date: March 10,2003
Created By: twbrock
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Well I must be getting spastic in my old age. I am trying to set up a machine simulator to trouble shoot a program. Can't have the machine because of production. I wrote a program to act as the machine running using a DV100 as push button inputs to simulate the machine and problems. For some reason I can not get the simulation to work. I know I have done something wrong but I am not seeing it. 1 SP0 NO LDA O40600 OUT V7625 LD K100 V2000 2 C0 NO Y0 (SET) C10 (PD) 3 C10 NO Y1 (SET) LD K20 OUT V2000 4 C1 NO Y0 (RST) 5 Y0 NC Y1 (RST) C11 (RST) LDD K0 OUTD TA0 6 C2 NO LD K20 OUT V2000 7 C3 NO LD K10 OUT V2000 8 C4 NO LD K8 OUT V2000 9 C5 NO C11 (SET) 10 C11 NO TMRAF T0 T0 V2000 NO 11 T0 NO C12 (PD) 12 C12 NO Y2 (OUT) 13 (END) When I push right arrow C5 I can see C11 come on but it goes back off. I can turn C5 on through DirectSoft and it stays on but if I push for C2, C3, or C4 then C11 resets. If I turn C2, C3, or C4 on with DirectSoft then C11 stays set. HELP WHAT AM I DOING twbrock
Created Date: March 10,2003
Created by: twbrock
Well I must be getting spastic in my old age.
I am trying to set up a machine simulator to trouble shoot a program.
Can't have the machine because of production.
I wrote a program to act as the machine running using a DV100 as push button inputs to simulate the machine and problems.
For some reason I can not get the simulation to work. I know I have done something wrong but I am not seeing it.
1 SP0
NO LDA
O40600
OUT
V7625
LD
K100
V2000
2 C0
NO Y0 (SET)
C10 (PD)
3 C10
NO Y1 (SET)
LD
K20
OUT
V2000
4 C1
NO Y0 (RST)
5 Y0
NC Y1 (RST)
C11 (RST)
LDD
K0
OUTD
TA0
6 C2
NO LD
K20
OUT
V2000
7 C3
NO LD
K10
OUT
V2000
8 C4
NO LD
K8
OUT
V2000
9 C5
NO C11 (SET)
10 C11
NO TMRAF
T0
T0 V2000
NO
11 T0
NO C12 (PD)
12 C12
NO Y2 (OUT)
13 (END)
When I push right arrow C5 I can see C11 come on but it goes back off.
I can turn C5 on through DirectSoft and it stays on but if I push for C2, C3, or C4 then C11 resets.
If I turn C2, C3, or C4 on with DirectSoft then C11 stays set.
HELP WHAT AM I DOING
twbrock
Created Date: March 12,2003
Created by: RHanrahan
tw,
I need a little more info. From what I can tell, you need to press the button that corresponds to C0 first to start everything. If Y0 and Y1 are not set first then C11 will reset every time you release C5. On rung 5, you have if Y0 is off, then reset Y1 and C11. I am also a little unclear about the timer reset contact. Is it supposed to reset when T0 goes true, or is it something else. I assumed that you are using V2000 as the timer preset value.
I would also just use a TRMF instead of a TMRAF unless you have some reason to retain the timer value when the input is off. TMRFs reset when the input goes low. All the LDs that you used were to v2000 only. With TMRAF, you need to use LDD to V2000 which would then include V2000 and v2001. With this ladder as written, you don't know what is in v2001.
From what I can tell though, this should work.
Bob
P.S.
On more thing. Is Y2 supposed to be your output after the timer has elapsed? If so it will only be on for 1 plc scan.
RH
Created Date: March 16,2003
Created by: twbrock
Thanks Bob:
The idea was to simulate a machine running with a start a stop and a couple of other machine functions. I went ahead and set up a pannel with push buttons and hard wired it in to the PLC this works, thanks for the reply. I don't know why the DV-1000 did not work thats a problem for another day.
Tommy