Host Engineering Forum
General Category => DirectSOFT => Topic started by: taylor152 on August 22, 2010, 11:43:10 AM
-
I have a koyo 105 plc i am trying to program. It will be operating a block valve that opens from the run contact of the pump. The auxillary contact they are using is a normally closed contact. When the pump is shut off we want to close the block valve and open a water flush valve for 30 seconds. Using the 105 I can not get this to work. Can any one give help on the ladder logic for this? Thanks
-
Can you post the code you have so far? 'File' - 'Export' - Program. This is sent to aa text file. You can either post the file itself here or copy and paste the text into a post.
-
// Rung 1
// Address 0
STRN X0
OUT Y0
// Rung 2
// Address 2
STR X0
STR T0
TMRA T0 K50
// Rung 3
// Address 7
STR T0
OUT Y1
// Rung 4
// Address 9
STR Y1
TMR T0 K300
// Rung 5
// Address 13
END
// Rung 6
// Address 14
NOP
#BEGIN ELEMENT_DOC
"X0","Sump run contact","",""
"Y0","block valve","",""
"Y1","flush valve","",""
"T0","flush delay","",""
"T1","flush","",""
#END
PLC PZ1
// Rung 1
// Address 0
STRN X0
OUT Y0
// Rung 2
// Address 2
STR X0
STR T0
TMRA T0 K50
// Rung 3
// Address 7
STR T0
OUT Y1
// Rung 4
// Address 9
STR Y1
TMR T0 K300
// Rung 5
// Address 13
END
// Rung 6
// Address 14
NOP
#BEGIN ELEMENT_DOC
"X0","Sump run contact","",""
"Y0","block valve","",""
"Y1","flush valve","",""
"T0","flush delay","",""
"T1","flush","",""
#END
-
Your text file seems a bit confused. It seems to have a duplicated program and a different PLC listed at the end. To fix it for a '105' I placed the line:
PLC 130
as the first line with a blank line after that.
Secondly I had to delete everything starting from just before the line which reads
PLC PLZ1
With that being said it looks like you are trying to introduce a 5 second delay after the normally closed 'Sump Run' contact changes back to its closed state. Then you want the 'flush valve' to run for thirty seconds. Here's my version: (To use copy everything starting from 'PLC 130' through the '#END' to a TXT file. Then open Directsoft without creating a project and just use the 'File' - 'Import')
PLC 130
// Rung 1
// Address 0
STRN X0
OUT Y0
// Rung 2
// Address 2
STR X0
TMR T0 K50
// Rung 3
// Address 6
STR T0
ANDN T1
OUT Y1
// Rung 4
// Address 9
STR T0
TMR T1 K300
// Rung 5
// Address 13
END
// Rung 6
// Address 14
NOP
#BEGIN ELEMENT_DOC
"X0","Sump run contact","",""
"Y0","block valve","",""
"Y1","flush valve","",""
"T0","flush delay","",""
"T1","flush","",""
#END
-
Thanks will give this a try. I appreciate the help. Will tell you how it went later. Thanks again.