Loco (Customer) asked a question.

Sending a series of ASCII strings.

Is there a simple way to send a series of ASCII strings? I am using a C0-10DD2E-D and a stp-drv-80100. I am looking at being able to send a variety of speed codes based on if I am performing a set distance move (such as "FL320000") a send the home (SH3L) or a JE.

 

Thank you.


  • Garry (Customer)

    Hi Loco,

    Here is an example of sending ASCII stings with the Click PLC.

    https://accautomation.ca/click-plc-modbus-ascii-protocol/

    This will show you the Modbus ASCII protocol over serial RS485 communication wire. (Media) The present and set values (PV / SV) will be read from the Solo controller and the set value will be written when required.

    Even though this is for the Solo, it demonstrates the use of the serial port and sending/receiving ASCII characters which would apply to your stepper drive.

    I hope this helps you out.

    Regards,

    Garry

     

    https://accautomation.ca/series/click-plc/

    Expand Post
  • Loco (Customer)

    I must be missing something. How do I send letters? in your video I only see numbers being sent. If I am going to send a AC5 DE5 VE100 how would I formulate that?

    • Garry (Customer)

      ASCII - American Standard Code for Information Interchange

      1 byte or 8 bits make up the code.

      Here is the ASCII table for reference.

      Example: A = 41 hex, a = 61 hex

      You will not have to know the ASCII chart. Using the SEND instruction and setting the protocol to ASCII will allow you to write static text messages. Just type what you want to send.

      Regards,

      Garry

      Expand Post