본문 바로가기

자동제어

모드버스 통신 종류 5가지(ModbusAsync/ModbusTcp/ModbusTcpGateway/ModbusSlave/ModbusTcpSlaveNetwork)

1. ModbusAsyncNetwork

 

ModbusAsyncNetwork 예시 계통도

 

 이 네트워크는 호스트 플랫폼에 시리얼 포트(일반적으로 RS-485)가 필요하며, 이는 Modbus RTU(원격 단말 장치) 또는 ASCII 네트워크에 연결되어 Modbus 마스터로 작동합니다. 조명 제어, 미터, VSD 제어 및 I/O 장치는 동일한 네트워크의 슬레이브로 작동합니다. 통신 속도는 일반적으로 9600 baud이며, 네트워크 전송 모드(프로토콜)Modbus RTU 또는 Modbus ASCII일 수 있습니다(어느 것이든 지원됩니다). RS-485를 통한 Modbus RTU의 경우 최대 31개의 슬레이브 장치를 연결할 수 있으며, 중계기를 사용하면 더 많이 연결할 수 있습니다. 시리얼 네트워크의 Modbus 장치의 주소 범위는 1에서 247까지이지만(어떤 경우에는), 일반적으로 네트워크는 더 작습니다. 사용 가능한 COM 포트 수에 따라 호스트가 여러 ModbusAsyncNetwork를 지원할 수 있습니다. 해당 스테이션은 연결된 COM 포트의 다른 모든 Modbus 장치에 대해 Modbus 마스터로 작동합니다. 각 하위 장치를 나타내는 ModbusAsyncDevice가 있으며, 고유한 Modbus 주소(1에서 247까지)와 다른 Modbus 구성 데이터 및 Modbus 데이터 항목(코일, 입력, 입력 레지스터, 보유 레지스터)의 시작 주소가 있습니다. Modbus 네트워크에는 일반적으로 많은 하위 ModbusAsyncDevice가 있습니다.

 

 

2. ModbusTcpNetwork

 

ModbusTcpNetwork 예시 계통도

 

Modbus 네트워크는 호스트 플랫폼의 이더넷 LAN 어댑터의 TCP/IP 설정에 자동으로 바인딩됩니다. 호스트는 Modbus TCP 슬레이브 장치의 네트워크에서 Modbus 마스터로 나타납니다. 네트워크 연결 프로토콜은 Ethernet/IP입니다. TCP 소프트웨어 포트(일반적으로 502) 외에도 네트워크의 속성 시트에서 여러 전역 속성이 Modbus TCP에 특화되어 있습니다. 예를 들어, 각 하위 장치 내에서 재정의할 수 있는 부동 소수점 및 긴 숫자 데이터의 기본 순서를 구성할 수 있습니다. ModbusTcpDevice는 각 하위 장치를 나타내며 고유한 IP 주소와 함께 다른 Modbus 구성 데이터 및 Modbus 데이터 항목(코일, 입력, 입력 레지스터, 보유 레지스터)의 시작 주소를 가지고 있습니다. 일반적으로 많은 하위 ModbusTcpDevices가 있습니다. ModbusTCPGateway는 네트워크 수준 개체이며 특정 장치를 나타냅니다: Modbus TCP에서 시리얼로 연결된 Modbus 장치(일반적으로 RS-485를 통한 Modbus RTU)를 나타내는 게이트웨이입니다. 게이트웨이의 먼쪽에는 시리얼로 연결된 Modbus 장치(일반적으로 Modbus RTU 또는 ASCII)가 있습니다. 게이트웨이(네트워크) 아래의 하위 장치 개체는 각각의 시리얼 Modbus 장치(RTU 또는 ASCII)를 나타냅니다.

 
3. ModbusTcpGateway

 

ModbusTcpGateway 예시 계통도

 

 이 유형의 네트워크에는 Modbus 마스터와 시리얼 Modbus 장치 사이에 Modbus TCP/시리얼 게이트웨이가 포함됩니다. 게이트웨이에서 사용하는 IP 주소와 TCP 포트 외에도 Modbus에 특화된 네트워크의 속성 시트에는 TCP 게이트웨이 장치를 구성하는 전역 속성이 있습니다. 예를 들어, 각 하위 장치 내에서 재정의할 수 있는 부동 소수점 및 긴 숫자 데이터의 기본 순서를 구성할 수 있습니다. 역류된 게이트웨이의 먼 쪽에서 시리얼로 연결된 Modbus 장치에 대해  역류되는 Modbus 마스터 역할을 합니다. ModbusTcpGatewayDevice는 각 하위 장치를 나타내며 고유한 Modbus 주소(1부터 247까지)와 함께 다른 Modbus 구성 데이터 및 Modbus 데이터 항목(coil, input, input register, holding register)의 시작 주소를 가지고 있습니다. 일반적으로 많은 하위 ModbusTcpGatewayDevices가 있습니다.

 

 

4.ModbusSlaveNetwork

ModbusSlaveNetwork 예시 계통도

 

 

유형의 네트워크에는 호스트 플랫폼에 시리얼 포트가 필요합니다. 이 시리얼 포트는 Modbus RTU 또는 ASCII 네트워크에 연결되어 있으며,  Modbus 마스터 장치로부터 수신된 쿼리에 대한 Modbus 서버(슬레이브)로서의 역할을 하는 스테이션이 있습니다. 각각의 고유 주소를 가진 ModbusSlaveDevice에서는 사용 가능한 Modbus 데이터 항목(coil, input, input register, holding register)의 범위를 지정합니다. 경우에 따라, 스테이션을 나타내는 하위 ModbusSlaveDevice가 하나만 있는 경우도 있습니다.

 

 

5. TCP/IP slave networks

 

TCP/IP slave networks 예시 계통도

 

 이 유형의 네트워크는 호스트 플랫폼의 이더넷 IP LAN 어댑터의 TCP/IP 설정에 자동으로 바인딩되며, 스테이션의 IP 주소를 가정하고 서버로 기능합니다. 호스트(Modbus 슬레이브)는 여러 장치로 나타날 수 있습니다. 스테이션은 Modbus TCP 마스터 장치로부터 수신된 쿼리에 대한 Modbus 서버(슬레이브)로 작동합니다. ModbusTcpSlaveDevice는 각각의 고유 주소를 가진 하위 장치를 나타냅니다. 사용 가능한 Modbus 데이터 항목(coil, input, input register, holding register)의 범위를 지정합니다. 경우에 따라, 스테이션을 나타내는 하위 ModbusTcpSlaveDevice가 하나만 있는 경우도 있습니다

 

 

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

원문

 ModbusAsyncNetwork

         

This network requires a serial port (typically, RS-485) on the host platform, which connects to a Modbus RTU (Remote Terminal Unit) or ASCII network and functions as the Modbus Master. Lighting Control, Meter, VSD Control and I/O Device function as slaves on the same network.

Communications rates are typically at 9600 baud, and the network transmission mode (protocol) may be either Modbus RTU or Modbus ASCII (either one is supported). If Modbus RTU over RS-485, up to 31 slave devices may be attached—or more, if repeaters are used. The address range for Modbus devices on a serial network is from 1 to 247, however (as noted), networks are typically smaller. Depending on the number of available COM ports, a host may support multiple ModbusAsyncNetworks.

The station acts as Modbus master to all other Modbus devices on the attached COM port. A ModbusAsyncDevice represents each child device, and has a unique Modbus address (1 to 247), as well as other Modbus config data and starting addresses for Modbus data items (coils, inputs, input registers, holding registers). A Modbus network usually has many child ModbusAsyncDevices.

 

TCP/IP networks

         

This Modbus network automatically binds to the TCP/IP setup of the host platform’s Ethernet LAN adapter. The host appears as the Modbus Master on a network of Modbus TCP slave devices. The Network connectivity protocol is Ethernet/IP.

In addition to specifying the TCP software port used (typically 502), various global properties on the network’s property sheet are specific to Modbus TCP. For example, you can configure the default order for float and long numeric data (overrideable within each child device).

ModbusTcpDevice represents each child device, and has a unique IP address, as well as other Modbus config data and starting addresses for Modbus data items (coils, inputs, input registers, holding registers). There are typically many child ModbusTcpDevices.

ModbusTCPGateway is a network-level object that also represents a particular device: a Modbus TCP-to-Serial gateway, where this device has an IP address reachable by the station. On the gateway’s far side are serially-connected Modbus devices (typically Modbus RTU via RS-485). Child device objects under the gateway (network) represent each serial Modbus device (RTU or ASCII).

 

ModbusTcpGateway

         

This type of network includes a Modbus TCP/Serial gateway between the Modbus Master and the serial Modbus devices.

In addition to the IP address and TCP port used by the gateway, global properties on the network’s property sheet specific to Modbus configure TCP gateway devices. For example, you can configure the default order for float and long numeric data (overrideable within each child device).

The station acts as a Modbus master to the serially-connected Modbus devices on the gateway’s far side. A ModbusTcpGatewayDevice represents each child device, and has a unique Modbus address (1 to 247), as well as other Modbus config data and starting addresses for Modbus data items (coils, inputs, input registers, holding registers). There are typically many child ModbusTcpGatewayDevices.

 

ModbusTcpSlaveNetwork

         

This type of network automatically binds to the TCP/IP setup of the host platform’s Ethernet IP LAN adapter, assumes the IP address of the station, and functions as a server. The Host (Modbus Slave) can appear as multiple devices.

The station acts as a Modbus server (slave) to queries received from a Modbus TCP master device. A ModbusTcpSlaveDevice represents each uniquely-addressed child device. You specify ranges for available Modbus data items (coils, inputs, input registers, holding registers). In some cases, only a single child ModbusTcpSlaveDevice represents the station.

 

 ModbusSlaveNetwork

         

This type of network requires a serial port on the host platform, which connects to a Modbus RTU or ASCII network where the station functions as a Modbus server (slave) to queries received from a serially-connected Modbus master device. In each uniquely-addressed ModbusSlaveDevice you specify the ranges for available Modbus data items (coils, inputs, input registers, holding registers). In some cases, only a single child ModbusSlaveDevice represents the station.

'자동제어' 카테고리의 다른 글

Niagara4-모드버스통신 시작하기  (1) 2024.02.25
모드버스 통신이란?  (0) 2024.02.23