Topic: CL183

 

feedback.jpg

 

Send Instruction: ASCII

click_logo_nc.gif

 

 

 

Description

The Send instruction allows you to send ASCII text messages to external devices such as a serial printer or a text message display.  The CLICK CPU modules support the MODBUS (RTU) and ASCII protocols.  This help topic covers the ASCII protocol.  To use the MODBUS (RTU) protocol, please refer to the help topic Send Instruction: MODBUS.

notepad.gif

Note: For the Com Port wiring info, please refer to the CLICK PLC Hardware User Manual.

Setup

send_ascii_setup_win.gif

 

1 Com Port: Click the down arrow to select a Port from the available list.

2 Protocol: This field displays the Protocol currently selected.  If it is not ASCII, see Item 3 to change the Protocol Type.

 

3 COM Port Setup: Click on this button to open the Com Port Setup window shown below.  From this window click on the down arrow for the Protocol field and select ASCII or Modbus.

 

com_port_setup_details_protocol.gif

 

 

 

notepad.gif

Note: If the Protocol parameter is grayed out, it means there is at least one Receive or Send instruction assigned to the Com Port already.  If you still want to change the Protocol, please delete those Receive/Send instructions first.

 

 

 

 

4 Static Text Message (Max: 128 Characters): From this field, you can compose the ASCII Text Message to be sent to the external device.  You can mix Text Messages, ASCII Codes and Memory Addresses in the ASCII Text Message.  This field allows up to a 128 character message.

Text Message: Please surround by double quotations. (e.g., “ABC”

ASCII Code: Click the Embedded ASCII Code button under the field to pick an ASCII Code.  ASCII Codes are displayed in the format of “$+ 2 digit Hex Code in this field.

Memory Address: You can embed the following Memory Addresses in the ASCII Text Message.  What will be included in the ASCII Text Message when it is output from the Com Port is the data in the Memory Address.  Click the Embedded Memory Address button under the field to enter a data register Memory Address and select the format of the data.

 

Supported Memory Addresses: DS, DD, DH, DF, XD, YD, TD, CTD and SD

Example:

memory_addr_ex.gif

5 Embedded ASCII Code: Click this button to open a dialog used to select an ASCII Code (00h to FFh).  You can select an ASCII Code to embed in the ASCII Text Message.  Please refer to the help topic ASCII Table for details.

6 Embedded Memory Address: Click this button to open a dialog used to enter a Data Register Memory Address and select the format.  Please refer to the help topic Embedded Address for details.

7 Simulate: Click this button to open a dialog used to enter values to Simulate the Data in the Memory Addresses you Embedded in the ASCII Text Message.  Please refer to the help topic Static Message Simulate for details.

8 Possible Message Length: The CLICK Software automatically calculates the Possible Message Length and displays it here.

 

9 Dynamic Text Message (Max: 128 Characters): Select Dynamic Text Message to Send a Message stored in a series of Text Addresses.  Select the Text Address and the Number of Bytes using the Start Address and the Number of Bytes Browse Icon browse_button.gif respectively.  

10 Termination Code: Click on the checkbox to select.  The Termination Code fields for 1 Character and 2 Character become active.  Select the number of Characters to use and enter the ASCII Code in the field(s).  Click on the ASCII Table button to open the ASCII Table shown below.  Use this table to quickly select the desired ASCII Code.

 

 

 

ascii_table_termination_code.gif

 

 

 

 

11 Byte Swap: Select the checkbox if Byte Swap will be used.  If selected, the ALL and All But Null selections will become active.  Click one of these methods to select it.

 

byte_swap.gif

12 Status Flags: The Send instruction supports two Status Flags in the ASCII protocol mode.  You can assign a C Bit to each flag.

  • Sending: ON when the Com Port is sending the ASCII Text Message.

  • Success: ON when the ASCII Text Message was Sent successfully.

 

 

 

 

 

click_logo_y_bgd.gif

Help File Feedback and Comments

 

ocean_bar_thick.jpg

THIS FEEDBACK IS ONLY FOR THE CLICK SOFTWARE HELP FILE!!!

Click on the green text to submit Software Comments or feedback.

ocean_bar_thick.jpg

As a continued effort to provide the best products to our Customers, we provide this Feedback Page where you, the User, can easily communicate to us any issues, suggestions, and comments (good or bad) about this Help File.

Your input is very important to us!  Please take a minute to complete the information below.  When finished, click the Send Feedback button and your email client will open with all the information already filled.  If satisfied with the information, go ahead and send the email.  Internet access and email account is required to send this email.

Thank you for helping us provide top quality products and for trusting AutomationDirect with your automation needs and services.

 

ocean_bar_thick.jpg

If we use the information you provide or post your comments on the official Click PLC Web Site or any other publication, we will send you a small gift as a way of thanking you for your input.  The gift depends on what's available at the moment and may consist of a Cap, T-shirt, a Cap, or some other ADC souvenir.

 

Complete the form provided below and click on the Send Feedback button when finished to open your email client and send the form.

Subject:

 

 

Name:

 

 

Company

 

 

We will  ONLY use your email address if you request a reply or if we need an address to send you a thank you gift:

Email:

 

 

Please provide your Shirt Size just in case the gift is a T-shirt.

Shirt Size:

 

 

Enter your Comments below:

 

I give AutomationDirect.com permission to use my feedback, my name, and my company name.

 

back_to_topic.jpg