News:

  • June 09, 2026, 12:27:59 AM

Login with username, password and session length

Author Topic: DirectSoft 5 programming help  (Read 10894 times)

taylor152

  • Newbie
  • *
  • Posts: 3
DirectSoft 5 programming help
« 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

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: DirectSoft 5 programming help
« 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.
An output is a PLC's way of getting its inputs to change.

taylor152

  • Newbie
  • *
  • Posts: 3
Re: DirectSoft 5 programming help
« 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

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: DirectSoft 5 programming help
« 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 »
An output is a PLC's way of getting its inputs to change.

taylor152

  • Newbie
  • *
  • Posts: 3
Re: DirectSoft 5 programming help
« 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.