adccommunitymod (AutomationDirect) asked a question.

CLICK - ASCII to SureStep Driver

Created Date: December 30,2014

Created By: Sawyer

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

Hi folks, I am experimenting with sending ASCII SCL commands from the CLICK to the SureStep driver but do not completely understand the proper entry to be made in the SEND dialog in the CLICK ladder. This is from the SCL Manual: AC25 ENTER Set accel rate to 25 rev/sec/sec. DE25 ENTER Set decel rate to 25 rev/sec/sec VE5 ENTER Set velocity to 5 rev/sec/sec FL20000 ENTER Move the motor 20000 steps in the CW direction. How would this be presented in the CLICK Send box to make this specific move? I 've tried several ways but cannot get a carriage return in where seemingly required. Probably very simple to those of you who know, this is very new to me. Thanks for any help. Regards, :cool:


  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Tinker

    There is a demonstration program EP-COM-010 at: http://support.automationdirect.com/examples.html that shows how to do that. Example seems a bit complicated to me, but it would be worth a look.

    For your specific question of how to include the carriage return, check the "Termination code " box on the SEND dialog, then select 'CR ' from the ASCII table (or enter $0D)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Sawyer

    Thanks Tinker.

    I need to stare at that for a while ... quite a while. Initially, it makes absolutely no sense to me. (but I'm easily confused :rolleyes:).

    Nowhere do I see any resemblance to the SEND ASCII box in the CLICK.

    I assumed it would be more simple than that example.

    Thanks again,

    :)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Sawyer

    EP-COM-008 and 012 makes a bit (bunch) more sense and is easier to follow ... but still not clear....to me.

  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Tinker

    Nowhere do I see any resemblance to the SEND ASCII box in the CLICK.

    I assumed it would be more simple than that example.

    That's what I thought when I first looked at the example (and it can be more simple, I don't know why they wrote the example that way).

    All the SEND instructions are in subroutines, for example, the first sub; Sub_1FP, at the end of the sub there is a simple enough Send instruction;

    Send (port 2) ASCII

    Type Static

    Byte Swap None

    Terminate Code CR

    Send Message

    "FP20000 "

    That "Terminate Code CR " is the answer to your original question

    Many of the other Send instructions use dynamic text in a range of TXTnnn locations, which is harder to understand at first (but does offer more flexibility at run time)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Sawyer

    Well ... now that I can see the subs (nav. window was closed) it makes MUCH more sense.

    I can probably glean enough out of that to get started.

    Learn something every day ... :rolleyes:

    Thanks again Tinker,

    ;)

  • adccommunitymod (AutomationDirect)

    Created Date: January 08,2015

    Created by: bgirouard

    To further detail what you said:

    I 've programmed the CLICK to send ASCII to a surestep drive. It works, but keep in mind that you cannot easily have the CLICK see the drive's acknowledge signal. I can give you the technical reasons, but I'll save that to minimize confusion.

    I did setup my program with a series of subroutines as the example program had done. This kept things a little tidier than it otherwise would have, so go with it, if possible.

    My program also did constant conversions between steps/sec and revolutions/sec. This was a separate subroutine that was set to run each scan (always on bit, or SC1 in the main program ladder). This subroutine was done near the top of the scan, so everything that happened during the previous scan was taken into account.

    Hope this helps!

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 30,2014

    Created by: Sawyer

    Hi folks,

    I am experimenting with sending ASCII SCL commands from the CLICK to the SureStep driver but do not completely understand the proper entry to be made in the SEND dialog in the CLICK ladder.

    This is from the SCL Manual:

    AC25 ENTER Set accel rate to 25 rev/sec/sec.

    DE25 ENTER Set decel rate to 25 rev/sec/sec

    VE5 ENTER Set velocity to 5 rev/sec/sec

    FL20000 ENTER Move the motor 20000 steps in the CW direction.

    How would this be presented in the CLICK Send box to make this specific move?

    I 've tried several ways but cannot get a carriage return in where seemingly required.

    Probably very simple to those of you who know, this is very new to me.

    Thanks for any help.

    Regards,

    :cool:

    Expand Post