
AB-WBE (Customer) asked a question.
I need to communicate a CLICK PLUS with a Nextion Model NX8048P050-001-Y. I just need to pass a single character to the PLC once a push button is pressed on the display. I have configured the PORT2 of the CLICK PLUS as follows (to match the display):
- Baud Rate: 9600
- Parity: None
- Stop Bit: 1
- Communication Data Bit: 8
DISPLAY SIDE
The way I am (trying) passing to pass the single ASCII character to the PLC is by triggering a print command each time the button is pressed, as follows:
print va0.text
Where va0, has been configured as follows:
sta: String
txt: 3
Indeed while using the Debug Mode of the Nextion S/W I do see that the print command is "printing" a 3 character.
PLC SIDE
Again I configured PORT2 to match the setting of the display.
I do have a single Receive rung triggered by the PLC 100 ms timer. I am reading (or trying to read) the message coming from the display, which is supposed to be the ASCII character 3.
And this is how the program looks:
CONNECTIVITY BETWEEN THE DISPLAY AND THE PLC
I am powering he display (right now) via a USB charger, and making the communication connection per the following diagram:
The only see that I notice is the RX led on the RS-232 Poert on the PLC on, other than that, nothing happens!
Any ideas?
I will appreciate it!
I have attached the PLC program
My main man Superman Z28! Yes indeed that was the issue. I cut the cable that I purchased from AutomationDirect (D2-DSCBL) and inverted the TX and the DX before I got to the RS-2342/TTL converter, and....... It works!!! So, we need to build a custom cable. Once more, thank you very much!
Regards,
Alfredo