Sending ASCII text to NHD-0216K3Z-NSW-BBW-V3
Oh boy. I read through a bunch of posts here and there seem to be quite a few very knowledgeable software and electrical engineer types. Very intimidating to a novice but here goes...
I have an NHD-0216K3Z-NSW-BBW-V3 display connected to a BRX Do-more PLC.
https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/do-more_series_(brx,_h2,_t1h)_plcs_(micro_modular_-a-_stackable)/brx_series_plcs_(stackable_micro_brick)/10_point_micro_plc_units_(bx_10-z-10e)/bx-dm1e-10ed13-d
I have a lot of experience with Parker Hannifin PLCs and the BRX is certainly not at that level but it's pretty decent. If hobbyist platforms can work with the Newhaven display then I'm sure the BRX can handle it.
I am using P1 on the display for RS-232 communications. I have a 5VDC power supply connected to pins 2 and 3 and the display is lit up. I have pin 1 on the display connected to the PLC's serial port TX pin.
I have a C# background and I have looked through some of the sample code Newhaven provides but the BRX PLC I am working with uses ladder logic. I'm pretty new to ladder logic but I'm getting the hang of it. I have the internal serial port configured and am using the appropriate PLC instruction to send a string to the display but nothings shows.
The Newhaven documentation says "To display normal text, just enter its ASCII number" but I know there's got to be more to it than that. How exactly is the display expecting the string to be formatted? Additionally, I see a number of commands to turn the display on, move the cursor around, clear the display, etc. What is the display expecting? A certain sequence of commands to initialize? Do I have to clear the display first before each new string? Do I have to send a command to move the cursor between each character? Etc., etc. There are so many details that I hardly know where to begin.
Any guidance is appreciated.
Ray
I have an NHD-0216K3Z-NSW-BBW-V3 display connected to a BRX Do-more PLC.
https://www.automationdirect.com/adc/shopping/catalog/programmable_controllers/do-more_series_(brx,_h2,_t1h)_plcs_(micro_modular_-a-_stackable)/brx_series_plcs_(stackable_micro_brick)/10_point_micro_plc_units_(bx_10-z-10e)/bx-dm1e-10ed13-d
I have a lot of experience with Parker Hannifin PLCs and the BRX is certainly not at that level but it's pretty decent. If hobbyist platforms can work with the Newhaven display then I'm sure the BRX can handle it.
I am using P1 on the display for RS-232 communications. I have a 5VDC power supply connected to pins 2 and 3 and the display is lit up. I have pin 1 on the display connected to the PLC's serial port TX pin.
I have a C# background and I have looked through some of the sample code Newhaven provides but the BRX PLC I am working with uses ladder logic. I'm pretty new to ladder logic but I'm getting the hang of it. I have the internal serial port configured and am using the appropriate PLC instruction to send a string to the display but nothings shows.
The Newhaven documentation says "To display normal text, just enter its ASCII number" but I know there's got to be more to it than that. How exactly is the display expecting the string to be formatted? Additionally, I see a number of commands to turn the display on, move the cursor around, clear the display, etc. What is the display expecting? A certain sequence of commands to initialize? Do I have to clear the display first before each new string? Do I have to send a command to move the cursor between each character? Etc., etc. There are so many details that I hardly know where to begin.
Any guidance is appreciated.
Ray
0
-
Hi Ray,
The NHD-0216K3Z-NSW-BBW-V3 display will support RS-232 with a 5V TTL interface.
Please double check to see if the PLC is actually the 5V TTL version of RS-232.
Standard RS-232 is more commonly used in PLC applications and usually works with up to 13V signals.
Here is a good reference manual for connecting the standard RS-232 interface: https://www.vorne.com/pdf/manuals/87-232.pdf
There are many RS-232 to RS-232 TTL converters available that can support this type of application.
Best Regards,0
Please sign in to leave a comment.
Comments
1 comment