Search the Community

Showing results for tags 'convert ascii to hex'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 64 results

  1. Hello, I am using an NJ301 PLC with an NA series HMI. I am communicating to the PLC via FINS protocol using the DotNet FINS UDP application by Jay Anthony found under the downloads section. I am finding that when I write a string to an address, the bytes order are reversed. For example,  I am writing the string 'Test' to variable 'FINS_String', which is a String data type at memory address D20. My FINS command is the following: 010282001400000254657374 0102: Write 82: Data Memory 001400: Address 20 0002: Write 2 words 54: T 65: e 73: s 74: t The value that appears on the HMI and in the watch window is 'eTts'. If I write 65547473 (eTts) as my command, it appears correctly as 'Test' on my HMI. I debugged the application and I see that the byte array is being sent in the correct order, so I'm not sure what the matter is. I can't imagine that to pass a string through FINS protocol the hex values need to be switched every time.  Any help would be appreciated. Thank you for your time.    
  2. All, I have a 1769-L24ER-QBFC1B processor with a 1769-ASCII card that I am trying to get working on the bench. I have a standard serial cable hooked up from Channel 0 of the ASCII card to the COM1 port of my computer. All I'm trying to do at this point is a simple bare-bones hello world program with a terminal (termite or putty) so that I can verify my setup and understand how it works before I try to implement it on the plant floor. I have the card set up in alternating mode and am using the pre-canned program found starting on page 35 of the user manual(1769-um012) .This is my first time using the ASCII card I am familiar with the CompactLogix processors and the RSLogix Suite. Any insight you can give would be greatly appreciated. Thanks, Lucas
  3. I have a Micrologix 1400 and one PC which sends 102 Characters in RS-232. I need to read all characters with Micrologix 1400, Is there any way to read all characters? I know the limit of ARL and ARD instruction is 82 characters. I do not know if two ARD instructions could read all characters. Do you have any experienced like that? Could you help me? Thank you in advance
  4. I need to know if there is an easy way to convert a hex value to ascii without going through all of the math. In the ContolLogix 5000 software, I can find how to do a string to decimal (STOD), but the problem is the initial value. For example, the hex value for ASCII 3 is 31, ASCII 4 is hex 32, etc... If I do a STOD to create a string from the value of hex 31, I get a string of: '31'. I need to send this value out to hyperterminal and read a 3, not 31. If it was only reading one source and did a simple subtract and mov commands for the values of 0 through 9, that would not be a problem. However, my problem is that I am continuously reading multiple valuses from several sources and I don't want to have to write the code for each character from each source. I could do and AOI or UDT, but isn't there a simple instruction in the logic?
  5. Excel Add-in for Modbus/TCP Data Logging

    Version 3.11.2.0

    421 downloads

    ASComm Excel Add-in is a simple to use, non-programmatic way to populate Excel 2007 - 2021 (version 16) spreadsheets with data from PLCs, instrumentation, and other process hardware. ASComm Excel Add-in uses built-in drivers for Modbus/TCP and Modbus RTU/ASCII communications. No OPC, DDE, external drivers, or programming required
  6. View File Excel Add-in for Modbus/TCP Data Logging 3.6.8 ASComm Excel Add-in is a simple to use, non-programmatic way to populate Excel 2007 - 2016 spreadsheets with data from PLCs, instrumentation, and other process hardware. ASComm Excel Add-in uses built-in drivers for Modbus/TCP and Modbus RTU/ASCII communications. No OPC, DDE, external drivers, or programming required Submitter Automated Solutions Submitted 03/01/16 Category Demo Software
  7. Program 16 position rotary selector switch

    I have a 16 position rotary selector switch I'm trying to program to a CQM1 PLC, that I will also be programming to a micrologix 1200 in the future, using CX Programmer. The switch connects to the PLC using 4 inputs, and activates the inputs in a binary pattern 0-16 as I turn the switch. For example: if the switch is wired to the first four inputs of the PLC, and is turned to "9" 0.0 and 0.3 will be activated and 0.1 and 0.2 will not, just like binary 9 = 1001. I have tried several things trying to get the PLC to accept these inputs as a single "data-point," and then convert to BCD or Hex to use in a timer. I'm having no luck! Does anyone have any ideas how this is done? The switch is a Tosoku DPP01 015L20RCB, and because of the age of the PLC my instruction set is limited. Thank you in advance!
  8. Sending Ascii from PLC

    I have an omron cp1le plc and a sato s84ex printer I need to learn how to send print jobs to it. I know I can use the Serial card option and send the code to the printer over RS232. I am using the NiceLabel software and printing to file which extracts the SBL code. That is where I am stuck. What part of the code do I use and where do I put it in the CX-Programmer. And what instructions should I be learning to send Ascii to the printer. I am very new at all this and just want a few hinters and direction. Thanks.
  9. Hey all, I've reviewed a number of threads regarding converting one data type to another and I have something I'm working on that I'm stumped on and haven't found an answer for yet. Without getting into the details, I need to get a DINT bit value from an entered decimal value. A user will enter in a whole number in an entry box and then it needs to get converted to the number of whatever bits that the DINT number holds. For instance: # Entered Variable Bit Value -----0------------------0 -----1------------------1 -----2------------------3 -----3------------------7 -----4-----------------15 etc... I'm looking for a fairly clean way to do this, with perhaps just two or three instruction blocks to handle it, if possible. I can provide a screenshot of the HMI and the logic (4 rungs) if necessary. Any suggestions or advice from the group would be greatly appreciated!
  10. I am needing some help developing a string, and setting up communications that will be interpreted by a printer. I have thus developed my string, setup my com ports on my 1766 micrologix and setup com ports on my schmidt styliner scribing printer with win7e. Essentially this is plc to computer running software for a printer. the software has been setup to the best of my knowledge. My problem is creating a string that will be recognized as start/stop transmission at the printer. I have never done ascii so I am unfamiliar with how to get the two components talking. This is a simple application that only requires writing a string to the printer, but i have tried all that i can without any luck.
  11. How would I use "ASC-String Search", ACN-Put 2 strings together, ACI-Convert Integer to String" from rslogix500 and the micrologix series PLC -- with the Micro800 series and "Connected Component Workbench" ?? I'm trying to convert an Micrologix 1100 communication package to the micro800 series. I think it can be down if I can figure out how to convert ASC, ACN, ACI, into functions for the micro800 plc. Would appreciated any ideas/help you can offer. Thanks
  12. My project is converting a Quatum Modicon to a Control Logix. We took the Modicon Logic ran it thru a Rockwell converter and created the Control Logix Logic. This was nothing complicated but a large file. In Modicon you have a Memory retentive bit -- (M). This converted to a Latch (OTL) in the Control Logix, we decided to place a coil OTE in Parallel with the Latch so we could unlatch on the rung going false. The memory retentive coil is there to hold memory on power cycle if it ever happened. So.... The question is Unlatch below The latch, or above Consider left a representive of converted logic in the AB. Logic a bit more complicated. A B C lL. U --||--|||--|/|--(OTL)--(OTE). L |. . --||-----|. U. L ----||--------------------(OTU)
  13. Version 3.11.5.0

    2921 downloads

    .NET class library for use in Visual Studio.NET to create HMI/SCADA apps that communicate with Modbus/TCP Server (Slave) devices via Ethernet.   For .NET Framework 2.0 - 4.8 projects. Does not require OPC or 3rd party drivers x86, x64, and Any CPU compatible Visual Studio.NET 2010, 2012, 2013, 2015, 2017, 2019, and 2022 compatible Most .NET targets are supported, including Web, Win Forms, WPF, console, and service apps Build Win Forms, console, and ASP.NET applications that run on Linux with Mono framework Extremely high performance - 5~10 mSec typical transaction time Optimizes multiple register configurations into minimal transactions Tag database can be configured via code or visual designer Abstract base classes allow you to write generic code that works with all drivers Synchronous and asynchronous read/write methods Data change notifications Provides common user interface across all driver classes No limit on number of devices or data points Multi-threaded for high data throughput Includes extensive help system Windows, Console, and Web Example applications with VB and C# source code included. Easily connect office systems to factory floor. Runtime-free for qualified applications  
  14. File Name: Modbus/TCP, RTU/ASCII Master Driver for .NET File Submitter: Automated Solutions File Submitted: 02 Mar 2011 File Category: Demo Software .NET Component for use in Visual Studio.NET to create HMI/SCADA apps that communicate with Modbus/TCP Server (Slave) devices via Ethernet. Does not require OPC or 3rd party drivers. x86, x64, and Any CPU compatible Visual Studio.NET 2005, 2008, 2010, 2012, and 2013 Compatible Most .NET targets are supported, including Web, Windows, console, and service apps. Extremely high performance - 5~10 mSec typical transaction time Optimizes multiple register configurations into minimal transactions Tag database can be configured via code or visual designer Abstract base classes allow you to write generic code that works with all drivers Synchronous and asynchronous read/write methods Data change notifications Provides common user interface across all driver classes No limit on number of devices or data points Multi-threaded for high data throughput Includes extensive help system Windows, Console, and Web Example applications with VB and C# source code included. Easily connect office systems to factory floor. Runtime-free for qualified applications Click here to download this file