News:

  • October 30, 2025, 10:58:54 AM

Login with username, password and session length

Author Topic: C# program for Direct Logic PLC(DL 250 by Koyo)  (Read 35493 times)

raj_789

  • Jr. Member
  • **
  • Posts: 15
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #30 on: January 17, 2013, 02:44:53 PM »
Is there any other way I can set Counter and Timer to a definate value. When I set it from program mode to run mode why does it start from 0 even though the current value is 200. Can I make it start from 200?

plcnut

  • Hero Member
  • *****
  • Posts: 813
    • premiersi.com
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #31 on: January 17, 2013, 03:01:45 PM »
You need to replace the "k" value in the timer with v1400 (or any handy v-mem) and then use modbus to change v1400.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #32 on: January 17, 2013, 03:18:06 PM »
Counter 'current' values are retentive. Timer 'current' values - default - are not. Use 'PLC' - 'Setup' - 'Retentive Ranges' to modify this. (Though it may be possible that the 'To Run' cycle may reset TMR type timers anyway. it may preserve TMRA timer values. Check it out. I've never tried it.)
An output is a PLC's way of getting its inputs to change.

raj_789

  • Jr. Member
  • **
  • Posts: 15
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #33 on: January 17, 2013, 03:54:38 PM »
While I wait for a PLC Legitimate Program to test. Can I Change PLC to Program Mode or Run Mode: By editing a register Value? Or is there any other way? I am trying to find the address which can be modified using C# in order to change Mode from Program to Run and viceversa? I need to change mode using my C# program.
« Last Edit: January 17, 2013, 03:56:58 PM by raj_789 »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6128
  • Yes Pinky, Do-more will control the world!
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #34 on: January 17, 2013, 04:11:45 PM »
You will need PLC specifications from ADC. I'm not sure what their policy is on distributing that information, but I doubt they just hand it out without some kind of NDA.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

raj_789

  • Jr. Member
  • **
  • Posts: 15
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #35 on: January 18, 2013, 12:03:24 PM »
I am still trying to find a way where I can switch the modes(Stop ,Program and RUN). As there software is capable of doing it I need a way where I can change modes using my program in C# through Modbus.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #36 on: January 18, 2013, 04:53:37 PM »
I am still trying to find a way where I can switch the modes(Stop ,Program and RUN). As there software is capable of doing it I need a way where I can change modes using my program in C# through Modbus.

BobO said that you would need to get the information on how to do so from Automation Direct, and might have to complete a non-disclosure agreement before obtaining the information.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #37 on: January 18, 2013, 06:34:25 PM »
While Host Engineering 'knows' the method for performing this, since they are the creators of DirectSoft, they can't just 'share' it.

AutomationDirect and Koyo 'own' this proprietary information and they, unless you can show you are creating an incredibly advanced utility, probably will not release the information to you. But you can always try.
An output is a PLC's way of getting its inputs to change.

raj_789

  • Jr. Member
  • **
  • Posts: 15
Re: C# program for Direct Logic PLC(DL 250 by Koyo)
« Reply #38 on: January 18, 2013, 07:00:26 PM »
I would like to Thank all the members for their valuable answers. I think you guys do a great job.

Sincerely,
Raj