브랜드

Impact-Company-Logo-English Black-01-177x54

슈나이더 일렉트릭 코리아 웹사이트에 방문해 주셔서 감사합니다.

슈나이더 일렉트릭 코리아 웹사이트 방문자 분들 모두 환영합니다.
		
오늘 무엇을 도와드릴까요?
Video: How do I configure the Modbus TCP IO Scanner for M221?
Issue
How do I configure the Modbus TCP IO Scanner for M221 and what addresses do we use to read and write from the remote device?

Product Line
EcoStruxure Machine Expert-Basic, SoMachine Basic, Modicon M221

Environment
PLC configuration software for Windows

Resolution
Follow the example steps below:

1) Go to the Configuration Tab in SoMachine Basic (or EcoStruxure Machine Expert-Basic)

2) Expand ETH1

3) Select Modbus TCP IOScanner

4) In the Modbus TCP area to the right,
(A) Tick the "Modbus TCP IOScanner" checkbox to Activate it
(B) Enter the IP Address of your remote Ethernet server - in our example, we are using 192.168.0.100
(C) Click Add - this will create a Device Row representing your device and a set of addresses to read to, write from, or both.
(D) Click on the [...] button under the "Channels" column
Modbus TCP IOScanner settings pane

Clicking the [...] button will bring up the Channel Assistant screen:
Channel assistant

5) In the Message Type dropdown, you can choose various Modbus function codes. Here are the supported Modbus function codes on the M221. We will use Function Code 23 (0x17) Read and Write registers:
Modbus function codes selection

6) In our example, we will keep it as Read/Write multiple words.
Let’s say we have a Remote I/O Device that has 10 Analog inputs at %MW0 to %MW9 and 10 Analog Outputs at %MW10 to %MW20, we would set up the offset and lengths accordingly:
Read/Write Multiple Holding Registers example (Function Code 0x17)

7) Now, go to the Programming Tab on the top bar.

8) Under the Tools-> Network objects, select "Input registers (IOScanner)"
In this screen, we can see the Input registers represented as %IWN300.0.0 to %IWN300.0.9.
We can also assign a Symbol name  (a.k.a. Variable name or Tag name) in the corresponding cell under the "SYMBOL" column to each 16-bit WORD address:
Input Registers represented as symbols in the M221


9) Conversely, if you click on Tools-> Network objects, select "Output registers (IOScanner)" and we can see that the Output Words have addresses %QWN300.0.0 to %QWN300.0.9:
Output Words from the Modbus IO Scanner as represented in the M221

In the Example ladder logic two rungs above, we are getting the value from the Remote device’s Input Register 0 and writing it into the internal memory address %MW0, then writing it back to the Remote device’s Output Register 0.

The Input and Output Word addresses will always be in the format:
Outputs: %QWN30x.y.z
Inputs: %IWN30x.y.z
where:
x - Device Index (ID) Number from Step 4c above (you may have multiple Devices with the same IP Address)
y - Channel number ID (from Step 6 - each set of registers to read to or write from using the selected Modbus Function Code will have a unique Channel ID Number inside each defined Device)
z - Word address number - 0 would be the value from Offset address+0, 1 from Offset address+1, etc. (See Comments column in the screenshots for steps 8 and 9)


For Reading and Writing of Bits (with Function Codes 0x01, 0x02, 0x05, 0x0F):
IOScanner for Bits Channels

The Input and Output Bit addresses will always be in the format (same as Words, except without the "W"):
Outputs: %QN30x.y.z
Inputs: %IN30x.y.z
where:
x - Device Index (ID) Number from Step 4c above (you may have multiple Devices with the same IP Address)
y - Channel number ID (from Step 6 - each set of registers to read to or write from using the selected Modbus Function Code will have a unique Channel ID Number inside each defined Device)
z - Bit address number - 0 would be the value from Offset address+0, 1 from Offset address+1, etc. (See Comments column in the screenshots for steps 8 and 9)
Digital Inputs
Digital Outputs

슈나이더 일렉트릭 Korea

자세히 알아보기
제품군
자세히 알아보기
제품군

도움이 필요하신가요?

  • 제품 선택기

    애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.

  • 견적 받기

    영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.

  • 구매처

    해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.

  • 지원 센터

    한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.

  • 제품 문서
  • 소프트웨어 다운로드
  • 제품 선택기
  • 제품 대체 및 교체
  • 지원 및 연락처 센터
  • 영업소 검색
  • 견적 받기
  • 슈나이더 일렉트릭 커뮤니티
  • 채용
  • 회사 소개
  • 부정 행위 보고
  • 접근성
  • 뉴스룸
  • 투자자
  • Ecostruxure
  • 작업 검색
  • 블로그
  • 개인정보 취급방침
  • 쿠키 공지
  • 사용 약관
  • Change your cookie settings