Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 04, 2012, 07:40:12 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: DirectSoft 5 programming help  (Read 564 times)
taylor152
Newbie
*
Posts: 3


« 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
Logged
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #1 on: August 22, 2010, 11:55:55 am »

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.
Logged

An output is a PLC's way of getting its inputs to change.
taylor152
Newbie
*
Posts: 3


« Reply #2 on: August 22, 2010, 04:00:32 pm »

// 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
Logged
b_carlton
Internal Dev
****
Posts: 370



WWW
« Reply #3 on: August 22, 2010, 05:37:45 pm »

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
  
« Last Edit: August 22, 2010, 05:43:58 pm by b_carlton » Logged

An output is a PLC's way of getting its inputs to change.
taylor152
Newbie
*
Posts: 3


« Reply #4 on: August 22, 2010, 07:45:56 pm »

Thanks will give this a try. I appreciate the help. Will tell you how it went later. Thanks again.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM