[8편] LS PLC Cnet으로 RS232와 RS485통신으로 모드버스(MODBUS) RTU 프로토콜로 원격제어하기!(녹칸다의 내맘대로 PLC 시리즈)

심심한녹칸다
심심한녹칸다
2.3 هزار بار بازدید - پارسال - [Part 8] Remote control with
[Part 8] Remote control with MODBUS RTU protocol through RS232 and RS485 communication with LS PLC Cnet! The example code is compressed and uploaded on Nockanda's blog! bota.tistory.com/2179 Nockanda's PLC series! For this series, please create explanatory materials on the Google Slides below! (shared with everyone) docs.google.com/presentation/d/1c5YLf60WR_41MiQoi9… Nockanda is a YouTuber who codes with Arduino! This series has the following precautions! 1. Nockanda does not know much about PLC (most important) 2. A person who used to code with Arduino made materials for beginners from the perspective of looking at PLC! 3. Therefore, there is no intention to make PLC the standard! 4. Nockanda 's PLC CPU can be controlled with Ladder Logic (LD) and ST language! 5. I don't understand leather logic at all, so I finished it by running only a few samples! 6.ST language is a bit understandable, so let's make various examples based on the Arduino coding strategy! 7. However, the content to be coded by Nockanda in the ST language is “Is it really possible to do this?” is not guaranteed, let's focus on “finally it works”! 8. If there is an incorrect explanation during the process, please let Nockanda know. Thank you! In this episode, let's implement an example of remote control using LSIS PLC, XEM-DN32H2! There are various methods, but let's start with Cnet! Cnet refers to remote control through RS232 and RS485 communication connected to a computer by wire! And the protocol has LS's own protocol and MODBUS. In Part 8, MODBUS RTU will be covered! A basic understanding of the Modbus protocol is required here! Also, an understanding of the internal memory structure of LS PLC is required! Anyway, in the 8th episode, we will control the PLC connected to the PC by wire with the Modbus protocol! Then, you need to implement a program to control the PC, and this should be done with C# Winform! If you install a library called NMODBUS in C#, you can create the desired result very easily! (However, as mentioned earlier, it is easy to know what Modbus is) Both RS232 and RS485 communication are possible, but Nokanda has only RS485 communication line! So let's skip RS232! (There is only a difference in the shape of the line and the connecting part, but there is no difference in the control method) Connect the communication line for RS485 communication between LS PLC and PC and in the Modbus master implemented with C# Winform The goal of this episode is to remotely control LS PLCs driven by modbus slaves with the modbus rtu protocol! The mountain you have to climb is bigger than you think, so let's climb it step by step!
پارسال در تاریخ 1402/03/16 منتشر شده است.
2,305 بـار بازدید شده
... بیشتر