주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

Modbus 통신

Modbus® 서버와 통신하여 제어기, 프로브 및 기타 계측기에 액세스

Industrial Communication Toolbox™는 TCP/IP 또는 직렬 RTU 프로토콜을 통해 Modbus 인터페이스를 지원합니다. 이 인터페이스를 사용해 Modbus 서버와 통신하여 PLC 제어, 온도 조절기와의 통신, 스테퍼 모터 제어, DSP로의 데이터 전송, PAC 제어기로부터의 대용량 메모리 읽기, Modbus 프로브의 온도 및 습도 모니터링과 같은 작업을 수행할 수 있습니다.

modbus 함수를 사용하여 Modbus 인터페이스 객체를 생성하고, read, write, writeRead, maskWrite 함수를 사용하여 통신합니다.

PLC에서 레지스터를 읽는 전체 워크플로를 보여주는 예제는 원격 온도 센서에서 온도 읽어오기 항목을 참조하십시오.

툴박스에는 읽기 및 쓰기를 손쉽게 설정할 수 있는 사용자 인터페이스와, 값을 확인할 수 있는 라이브 플롯(실시간 그래프)을 제공하는 Modbus 탐색기 앱도 포함되어 있습니다. 자세한 내용은 Modbus 탐색기 앱 사용 항목을 참조하십시오. 앱을 사용하여 PLC에 읽고 쓰는 전체 워크플로를 보여주는 예제는 Control a PLC Using the Modbus Explorer 항목을 참조하십시오.

Simulink®의 Modbus 클라이언트 블록을 사용하면 Modbus TCP/IP 또는 직렬 서버에서 데이터를 읽거나 쓸 수 있습니다. 예제로는 Simulink의 Modbus Client 블록을 사용하여 원격으로 물의 pH 제어 항목을 참조하십시오.

블록

Modbus Client ReadRead data from Modbus server (R2024b 이후)
Modbus Client WriteWrite data to Modbus server (R2024b 이후)

함수

modbusModbus 객체 만들기
readRead data from Modbus server
writePerform a write operation to the connected Modbus server
writeReadPerform write and read operation on groups of holding registers in single Modbus transaction
maskWritePerform mask write operation on a holding register

Modbus 탐색기Modbus 코일 및 레지스터에 읽기 및 쓰기

도움말 항목

Modbus 프로그래밍 방식 워크플로를 사용한 통신

Simulink를 사용한 Modbus 통신

Modbus 탐색기를 사용한 Modbus 통신

문제 해결

Troubleshooting the Modbus Interface

Try these tips if you have problems using the toolbox Modbus interface. See information about Modbus supported platforms, configuration and connection, and other interface-specific tips.

추천 예제