Rs232 send receive software




















The current LOGO! Platinum Member. Bronze Member. Attachment Capture. Share this page:. Share this page on All about LOGO! Presales info. Follow us on Twitter Youtube. Rate 0. Good morning. To be more specific the device is a weighing scale and the basic process would be Start program Send Tare command letter 't' to the scale to zero it Run a process for a set time that will fill a container located on the scale 60 seconds Read the data from the scale and log the data The scale has the ability to output its value constantly i believe on around a ms pulse.

To start with i would just need to send the tare command and read the weight at Step 4. Future development may include reading the weight every second on the timed period a Step 2.

Thank you. Suggestion To thank Quote Answer. Thank you for your response. It's not about the physical bus alone, but also about the protocol. The weighing device must also be the "language" of the LOGO! Regards, Scorp. Hello 10b0b, If you have the latest version of the logo, another alternative is to use RS to Modbus converter.

Also, there are stand-alone data loggers if you are interested Take a look at the link. I'm sure there will be other brands too. This contribution was helpful to 1 thankful Users 10b0b. Thank you for the responses, i will look into the potential use of a ModBus converter. Highlights of the utility are the ease of installation possibly with pre-configured settings using a heuristic search for the appropriate COM port and, as was mentioned, its user-friendliness.

Termite 3. You may use it and distribute it without limitations. You may however not remove or conceal the copyright. There are no guarantees or warranties whatsoever; use it at your own risk. Termite focuses on text data, and specifically text that is sent and received as strings terminated with "new-line" characters. It has no provisions for transferring files or binary data. That said, with the "hexadecimal view" plug-in, you can send and receive bytes as hexadecimal values, and you may write a "plug-in" filter for file transfer as well.

The interface of the Termite program has one large initially empty text area, which is called the "reception view". Above it is a set of buttons in a "button bar" and below it is a "transmit" line into which you can type a line of text. The utility automatically opens the RS port for which it was set up.

It shows the current configuration at the left in the button bar. If these are not correct, you can use the button Settings to choose a different port or configuration.

After connecting a serial cable between the PC and the remote device or remote PC, in which case you must use a null-modem cable and configuring the port, you can send data by typing text in the transmit line and pressing the "Enter" key. Any data that the remote device sends, will appear in the reception view.

Optionally, the text that you transmit is copied to the reception view the option is called "local echo", you will find in in the dialog under the Settings button. To distinguish the received data from the echoed data, the echoed text is coloured blue, whereas the received data is green. The remaining functionality is straightforward: the Clear button clears the reception view, the About button gives copyright information and the Close button terminates the utility.

One "hidden" feature is the ability to disconnect the RS port, without terminating the utility. You can close an RS connection with a click in the status field in the upper left corner of the window left of the button bar.

Another click on that line re-opens the connection with the current settings. You can use this to "free" the port temporarily for another application. Click here to disconnect, or re-connect. To speed up entering repetitive commands, Termite keeps a history of recently sent commands. This history is in a circular queue with the most recent command at the top. To browse through the history, use the "arrow up" and "arrow down" keys. If you type in a few characters in the "transmit" edit line, Termite will use the history to auto-complete the entry.

Pressing the arrow up and arrow down keys then browse through the entries that match in the first letters. For example, if you have sent the words "test", "top", "view" and "set" previously, and you type the letter "t" on the edit line, Termite will first auto-complete this to either "test" or "top" depending on which word you sent last and the arrow keys will toggle between "test" and "top".

If you clear the edit line and then use the arrow keys, Termite will loop through the entire history of "test", "top", "view" and "set". Auto-completion is enabled by default, but can be disabled through the Settings dialog. By default, Termite scrolls its reception window so that the most recently received text is displayed.

In case you want to look back at text that has scrolled out of the reception view, just scroll the text back into view. Termite will stop to scroll to the end every time it receives new data. To make Termite restart with its automatic scrolling to newly received data, scroll the reception view manually to the end of the data. In other words, Termite only scrolls up text to show newly received data if it is already at the end of the current data.

Some additional functions are available from a pop-up menu that appears when you right-click in the reception view. The "Copy" command copies only the selected text to the clipboard if a selection exists, and copies all text in absense of a selection.

Likewise, the "Save" command saves only the selected text to a file if a selection exists and all text if no selection exists. This way, Termite remembers its settings between sessions.

When distributing Termite, you may wish to include an INI file with pre-sets. A typical INI file is below. Most of these settings can be chosen from the " Settings " dialog. A few more configurations can be done by editing the INI file directly using a text editor like Notepad. The Caption item allows you to change the title bar of the main Termite window. Add the item Caption below topic [Options] and set it to the string that you wish to have displayed —for example, the model name of the product for which you are distributing a pre-configured Termite.

The items TxColour and RxColour allow you to change the colours for transmitted and received text from the default blue and green respectively. The syntax for the colours must be rrggbb , where rr , gg and bb are two hexadecimal digits. So for example, FF is bright red and is dark yellow. Most RS settings for a device can be chosen by the developer the Baud rate and the number of data and stop bits are usually determined by the other device.

One setting that the developer cannot foresee, however, is what COM port the user will attach it to.



0コメント

  • 1000 / 1000