In my PLC 1214C ac/dc/rly having RS422/RS485. I want to interface Arduino UNO and MAX485TTLtoRS485 and S71200 via serial communication. Anyone know the answer please let me know.
for best performance, use a serial interface implemented in hardware.
Because the ATmega328 used in Arduino Uno and Nano provides only one such interface which is already used for programming and communication with the PC, using it for other purposes requires awkward plugging and unplugging or the use of an additional programming device.
So, if it has to be an Arduino board, my advice is to use an Arduino Mega 2560 which provides 4 UARTs.
I understood your suggestion. If i have OPC UA supported PLC i will get data from IoT and display in HMI. But only have basic S7-1200 1214c ac/dc/rly that's why extra components added like Arduino. Main objective is take count value from IoT display in HMI. So i am using serial communication.
Hi Prakash, I don't really see a problem. You would use the RXD and TXD lines of Port D to connect to your MAX485TTL and your S71200 , using the built in USART. You would also need an additional output to control whether the IC is in send or receive mode.