86
사용설명서 3D 센서 O3D300 O3D302 O3D310 O3D312 706398 / 07 03 / 2018 KR

사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

사용설명서 3D 센서

O3D300 O3D302 O3D310 O3D312

7063

98 /

07

03 /

2018

KR

Page 2: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

2

목차1. 서문 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4

1.1 심볼마크 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41.2 사용된 경고문 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41.3 Open source information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5

2. 안전에 관한 안내사항 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62.1 일반사항 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62.2 타겟 그룹 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62.3 전기적 연결. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62.4 디바이스 조작 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

3. 기능 및 특징 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74. 공급 범위 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75. 액세서리 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76. 설치 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8

6.1 설치 위치 선택 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86.2 추가 센서 설치 가이드 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

6.2.1 O3D300 / O3D302의 일반적인 경고 한계. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96.2.2 O3D310 / O3D312의 일반적인 경고 한계. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106.2.3 표면 온도를 낮추는 방법. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10

6.3 센서 설치 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116.4 마운팅 액세서리 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

7. 전기적 연결 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127.1 배선 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12

7.1.1 핀 1 / 3 (24 V / GND) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137.1.2 핀 2 (트리거 입력). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137.1.3 핀 4 / 5 / 6 (스위칭 출력). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137.1.4 핀 4 (아날로그 출력) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147.1.5 핀 7/8 (스위칭 입력) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14

7.2 배선 사례 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157.2.1 근접 센서로 이미지 캡처 트리거 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157.2.2 서로 가까이 설치한 여러 센서. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16

7.3 어플리케이션의 정적 선택: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177.4 어플리케이션의 펄스 컨트롤 된 선택 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18

8. 표시기 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199. 셋업 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20

9.1 디바이스 파라메터 설정 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209.2 물체 감지 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209.3 프로세스 값 전송. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21

9.3.1 이더넷/IP를 통해 완전도 모니터링 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219.3.2 PROFINET를 통해 완성도 모니터링 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . .239.3.3 TCP/IP를 통해 완성도 모니터링 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259.3.4 이더넷 / IP를 통해 물체 치수 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269.3.5 PROFINET를 통해 물체 치수 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .289.3.6 TCP / IP를 통해 물체 치수 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .309.3.7 이더넷 / IP를 통해 레벨 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .319.3.8 PROFINET를 통해 레벨 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .329.3.9 TCP/IP를 통해 레벨 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339.3.10 이더넷 / IP를 통한 robot pick & place 의 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . .349.3.11 PROFINET을 통해 robot pick & place 측정 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . .369.3.12 TCP/IP를 통한 robot pick & place의 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . .389.3.13 EtherNet/IP를 통하여 디팔레타이징의 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . .399.3.14 PROFINET를 통하여 디팔레타이징의 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . .41

Page 3: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3

3D 센서

KR

9.3.15 TCP/IP를 통하여 디팔레타이징의 프로세스 값 전송 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4310. 유지보수, 수리 및 폐기. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44

10.1 세척 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4410.2 펌웨어 업데이트 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4410.3 디바이스 대체 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44

11. 인증 / 표준 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4412. 축척 도면 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45

12.1 O3D302 / O3D312 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4512.2 O3D300 / O3D310 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45

13. Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4613.1 Process Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46

13.1.1 Sending Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4613.1.2 Receiving Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4813.1.3 Image data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4813.1.4 Additional Information for CONFIDENCE_IMAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5213.1.5 Configuration of PCIC Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53

13.2 Process Interface Command Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6313.2.1 a Command (activate application) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6313.2.2 A? Command (occupancy of application list) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6313.2.3 c Command (upload PCIC output configuration) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6413.2.4 C? Command (retrieve current PCIC configuration). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6413.2.5 E? Command (request current error state). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6413.2.6 f Command (set temporary application parameter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6513.2.7 G? Command (request device information) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6613.2.8 H? Command (return a list of available commands). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6713.2.9 I? Command (request last image taken). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6813.2.10 o Command (set logic state of a ID) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6813.2.11 O? Command (request state of a ID) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6913.2.12 p Command (turn PCIC output on or off) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6913.2.13 S? Command (request current decoding statistics) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7013.2.14 t Command (execute asynchronous trigger). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7013.2.15 T? Command (execute synchronous trigger) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7113.2.16 v Command (set current protocol version) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7113.2.17 V? Command (request current protocol version) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71

13.3 Error codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7213.4 EtherNet/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73

13.4.1 Data structures for consuming and producing assemblies . . . . . . . . . . . . . . . . . . . . . . . . .7313.4.2 Functionality of the Ethernet/IP application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7413.4.3 Extended commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7813.4.4 Signal sequence with synchronous trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7913.4.5 Signal sequence with failed trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79

13.5 PROFINET IO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8013.5.1 Data structures for output and input frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8013.5.2 Functionality of PROFINET IO application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8013.5.3 Extended commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8513.5.4 Signal sequence with synchronous trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8513.5.5 Signal sequence with failed trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86

CopyrightMicrosoft®, Windows®, Windows Vista®, Windows 7®, Windows 8®, Windows 8.1® and Windows 10® are registered trademarks of Microsoft Corporation.Adobe® and Acrobat® are registered trademarks of Adobe Systems Inc.All trademarks and company names used are subject to the copyright of the respective companies.

Page 4: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

4

1. 서문본 문서는 전문가를 위해 작성되어 있습니다. 이 전문가들은 상응되는 교육과 그들의 경험으로 디바이스의 작동이나 유지보수시 발생가능한 위험을 인식하고 잠재적인 위험을 방지할 수 있는 자격이 있는 사람들을 의미합니다. 본 문서에는 디바이스의 올바른 취급에 대한 내용이 수록되어 있습니다.작동조건, 설치 및 작동을 숙지하기 위하여 사용하기 전에 설명서를 읽으십시오. 디바이스가 사용되는 전체기간 동안 이 문서는 보관되어야 합니다.

1.1 심볼마크► 사용지침> 반응, 결과[…] 키, 버튼 또는 표시 명칭→ 참고사항

주의사항 부주의한 사용은 오작동이나 장애를 초래합니다.정보 추가 참고문

1.2 사용된 경고문

주의 재산 손실에 관한 경고

Page 5: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

5

3D 센서

KR

1.3 Open source informationThis product can contain Free Software or Open Source Software from various software developers which is subject to the following licenses: General Public License version 1, version 2 and version 3 (General Public License version 3 in conjunction with the GNU Compiler Collection Runtime Library Exception version 3.1), Lesser General Public License version 2.1, Lesser General Public License version 3, Berkeley Software Distribution ("This product includes software developed by the University of California, Berkeley and its contributors"), The Academic Free License version 2.1. For the components subject to the General Public License in their respective versions the following applies:This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. If version 1 applies to the software: either version 1 of the License or (at your option) any later version; if version 2 (or 2.1) applies to the software: either version 2 (or 2.1) of the License or (at your option) any later version; if version 3 applies to the software: The following disclaimer of the software developers applies to the software components that are subject to the General Public License or the Lesser General Public License in their respective versions: The Free Software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU Lesser General Public License for more details. The responsibility of ifm electronic gmbh for ifm products, in the case of product-specific software, remains unaffected by the above disclaimer. Please note that the firmware for the ifm products is in some cases provided free of charge. The price of the ifm products has then to be paid for the respective device itself (hardware) and not for the firmware. For the latest information on the license agreement for your product please visit www.ifm.comFor binaries that are licensed under any version of the GNU General Public License (GPL) or the GNU LGPL you may obtain the complete corresponding source code of the GPL software from us by sending a written request to: [email protected] or to ifm electronic gmbh Friedrichstraße 1, 45128 Essen, Germany.We charge €30 for each request. Please write “source for product Y” in the memo line of your payment. Your request should include (i) the name of the covered binary, (ii) the name and the version number of the ifm product, (iii) your name and (iv) your return address. This offer is valid to anyone in receipt of this information. This offer is valid for at least three years (from the date you received the GLP/LGPL covered code).

Page 6: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

6

2. 안전에 관한 안내사항 2.1 일반사항아래 안내사항은 디바이스의 필수적인 일부분입니다. 안내사항은 디바이스의 정확한 취급에 관한 텍스트 및 관련된 수치가 포함되어 있으므로 설치 또는 사용전에 반드시 읽어야 합니다.사용설명서를 준수하십시오. 다음의 참고문에 유의하지 않거나 사용에 관한 정해진 규정을 준수하지 않은 사용, 잘못된 설치 또는 취급은 사람과 설비의 안전에 심각한 영향을 미칠 수 있습니다.

2.2 타겟 그룹본 사용설명서는 전자적 적합성, 낮은 전압 지침에 따라 자격이 부여된 전문가를 위하여 작성되었습니다. 디바이스는 자격을 갖춘 전기 기술자가 설치 및 연결하고 작동해야 합니다.

2.3 전기적 연결디바이스를 취급하기 전에 외부 장치의 연결을 차단하십시오. 연결 핀에는 기술 데이터 및 디바이스 라벨에 표시된 신호만 공급될 수 있으며, ifm의 승인된 액세서리만 연결할 수 있습니다.

2.4 디바이스 조작오작동이나 불확실한 경우, 제조업체에 직접 문의하십시오. 디바이스의 부당한 조작은 조작자 및 기계의 안전에 심각한 영향을 초래할 수 있습니다. 부당한 변경은 허용되지 않으며, 모든 책임과 보증이 배제됩니다.

Page 7: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

7

3D 센서

KR

3. 기능 및 특징O3D3xx 3D 센서는 ToF (Time-of-Flight) 원리를 사용하여 카메라와 가장 가까운 표면 간의 거리를 point by point로 측정하는 광학 카메라입니다. O3D3xx 3D 센서는 적외선 광원을 통해 장면을 보여주고 표면에서 반사된 빛으로 거리를 계산합니다.내부 이미지 처리를 통해 이미지 데이터로부터 프로세스 값이 생성되고 임계값과 비교됩니다. 비교 값과 프로세스 값은 디지털 출력에 연결됩니다. 이를 통해 다음 작업을 수행할 수 있습니다.

● 완전성 모니터링 ● 레벨 측정 ● 거리 모니터링 ● 사각형 물체의 치수 측정 ● 사각형 물체의 정렬

측정된 데이터와 프로세스 값은 이더넷을 통해 제공되고, 사용자가 평가할 수 있습니다. O3D3xx 3D 센서 파라메터 설정도 이더넷을 통해 수행됩니다.O3D3xx 3D 센서는 데이터 시트에 명시된 작동 환경에서만 사용해야 합니다. 다음과 같은 환경 조건에서만 디바이스를 안전하게 사용할 수 있습니다.

● 실내 사용 ● 고도 2000 m 이하 ● 상대 대기 습도 90% 이하, 비응축 ● 오염도 3급

전자기 간섭 방출에 대한 요구 사항으로 인해, 이 디바이스는 산업 환경에서 사용되어야 합니다. 본 디바이스는 주거 지역에서 사용하도록 설계되지 않았습니다.

데이터 시트에 명시된 작동 환경에서만 디바이스를 사용해야 합니다.

4. 공급 범위 ● O3D3xx 3D 센서 ● 간략한 설명서

데이터 시트와 기타 문서 (소프트웨어 매뉴얼 등)은 당사 웹사이트에서 제공됩니다: www.ifm.com

5. 액세서리다음 액세서리는 디바이스의 작동을 위하여 필요합니다:

제품 번호 설명

E11950 카메라 / 센서용 전원 공급 케이블E11898 M12 산업용 이더넷 연결 케이블

ifm 비전 어시스턴트 소프트웨어는 웹사이트에서 무료로 제공됩니다: www.ifm.com

Page 8: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

8

6. 설치이 장에서는 센서 설치 전에 준수해야 하는 사항과 설치 방법에 대해 설명합니다.

① 디바이스

② 조리개 각도

③ 물체

④ 시야

⑤ 디바이스와 물체 간 거리

6.1 설치 위치 선택다음 지침에 따라 설치 위치를 선택하십시오.

► 물체 ③ 은 완전히 시야 ④ 안에 있어야 합니다. > 시야의 크기는 센서 유형에 따라 다르며, 데이터 시트에 표시되어 있습니다. 시야의 크기는 센서에서

물체까지의 거리 ⑤에 따라서도 달라집니다. 거리가 멀어질수록 시야가 커집니다.

► 물체의 위치를 정할 때 허용 오차를 감안하십시오. ► 센서와 물체 사이의 거리 ⑤를 결정할 때 센서의 측정 영역을 감안하십시오. > 측정 영역은 센서 데이터 시트에 표시되어 있습니다.

► 최대한 센서와 물체 사이의 가능한 작은 거리 ⑤를 선택하십시오. > 거리가 작을수록 물체가 최고 해상도로 감지됩니다.

► 설치 위치에 강한 주변광과 햇빛이 비추지 않게 하십시오. > 8klx (태양 스펙트럼 기준)가 넘는 과도하게 밝은 빛은 측정 오류의 원인이 됩니다. 실제로는 800 nm과

900 nm 사이의 적외선 요소만 고려 대상입니다.

► 오염이 심한 환경에 설치하지 마십시오. > 오염이 심한 환경에서는 아래쪽 방향을 향하는 센서 렌즈 ①도 더러워집니다 .

► 센서 ①와 물체 ③ 사이에 투명한 창이 없도록 하십시오. > 매우 깨끗한 유리창을 사용해도 투명한 창에는 빛의 일부가 반사됩니다.

위 지침을 따르지 않으면 측정 오류가 발생할 수 있습니다.

Page 9: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

9

3D 센서

KR

6.2 추가 센서 설치 가이드센서 표면 온도는 작동 모드, 파라메터 선택, 센서가 노출되는 환경 온도에 따라 결정됩니다.

센서가 다음 요구 사항을 준수하는지 확인하십시오. 표면에 쉽게 접근할 수 있으려면 표면 온도가 주위 온도보다 25℃ 이상 높으면 안 됩니다 (IEC 61010-2-201에 따름).

아래 도표에는 설치 작업자가 참고할 수 있는 일반적인 경고 한계가 포함되어 있습니다.이 도표는 다음 작동 모드에서 유효합니다.

● 낮음 [1 노출] ● 적당함 [2 노출] ● 높음 [3 노출]

노출이 적당하거나 높은 경우 노출 횟수의 합을 통해 일반적인 경고 한계를 확인해야 합니다. 노출 시간은 ifm Vision Assistant 소프트웨어에 표시됩니다.

경고 한계가 초과되는 경우 다음 방법 중 하나를 사용하십시오. ► 표면 온도를 낮춥니다 (→ 6.2.3). ► 센서를 열원으로부터 보호되면서 센서 주위의 공기 순환이 유지되는 위치 또는 하우징에 장착합니다. > 센서 표면 온도 상승을 방지해야 합니다.

"최대 배후배경 거리" 파라메터는 ifm Vision Assistant에서 설정합니다. 도표에는 파라메터의 경고 한계가 파선과 실선으로 표시되어 있습니다. 센서가 점이 표시된 영역 중 하나에 있는 경우 표면 온도를 낮춰야 합니다 (→ 6.2.3). 열이 발산되도록 설치해도 경고 한계를 초과하는 경우 접촉 보호 수단을 추가로 장착할 수 있습니다.

일반 설치 시 일반적인 경고 한계 미만으로 유지되는 경우 조치를 취하지 않아도 됩니다.

6.2.1 O3D300 / O3D302의 일반적인 경고 한계

0

5

10

15

0 2 4 6 8 10

x

y

20

25

"최대 배후배경 거리" 파라메터

열전도체가 있는 열전도성 금속부에 설치 (→ 6.2.3)

경고 한계 파라메터

< 5 m

< 30 m

> 30m

일반 설치

경고 한계 파라메터

< 5 m

< 30 m

> 30 m

x = 노출 시간 [ms] y = 프레임 속도 [fps]

Page 10: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

10

6.2.2 O3D310 / O3D312의 일반적인 경고 한계

0

5

10

15

0 2 4 6 8 10

x

y

20

25

"최대 배후배경 거리" 파라메터

열전도체가 있는 열전도성 금속부에 설치 (→ 6.2.3)

경고 한계 파라메터

< 5 m

< 30 m

> 30 m

일반 설치

경고 한계 파라메터

< 5 m

< 30 m

> 30 m

x = 노출 시간 [ms] y = 프레임 속도 [fps]

6.2.3 표면 온도를 낮추는 방법다음과 같은 조치를 통해 표면 온도를 낮출 수 있습니다.

► 센서를 열전도성 금속부에 장착합니다. > 센서와 금속부 (예: 알루미늄) 표면이 많이 접촉할수록 열이 더 많이 발산됩니다.

► 센서를 금속부에 장착하는 경우 열전도체를 사용하십시오. > 열전도체를 통해 열전도 효과가 향상됩니다. 열전도체는 액세서리로 제공됩니다 (→ 6.4).

► 디바이스 주위의 장애물 수를 줄이십시오. 디바이스 부근에 장착된 물체의 밀도를 낮춥니다. > 센서 주위의 장애물과 높은 설치 밀도는 대류 (공기 흐름)에 나쁜 영향을 미칠 수 있습니다.

► 센서에 히트 싱크를 1-2개 장착하십시오. > 히트 싱크는 센서 표면을 확대하여 표면 온도를 낮춥니다. 히트 싱크는 액세서리로 제공됩니다 (→ 6.4).

► 노출 시간, 프레임 속도 또는 최대 배후배경 거리를 줄입니다. > 사용하는 작동 모드와 파라메터에 따라 표면 온도가 높아질 수 있습니다.

Page 11: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

11

3D 센서

KR

6.3 센서 설치센서를 설치할 때 다음 지침을 따르십시오.

► 2x M5 나사 또는 장착 세트를 사용하여 센서를 장착하십시오. > M5 나사의 보어 치수는 데이터 시트에 나와 있습니다.

> 장착 세트는 액세서리로 제공됩니다 (→ 6.4).

► 센서에 연결된 모든 케이블에 스트레인 릴리프를 사용하십시오.O3D300과 O3D310을 설치하는 경우 다음 지침을 따르십시오.

► 드라이버가 초점 세팅기에 닿을 수 있도록 센서를 장착합니다. > 초점 조절 나사의 위치는 도면에 표시되어 있습니다 (→ 12).

디바이스를 습한 장소에서 영구적으로 사용하는 경우 M12 산업용 이너넷 케이블 너트 (예: E11898)가 부식될 수 있습니다. 습한 장소에서 영구적으로 사용하는 경우 고급 스텐레스 너트가 있는 케이블을 사용하십시오.

6.4 마운팅 액세서리설치 위치와 유형에 따라 다음 장착 액세서리를 사용할 수 있습니다.

제품 번호 설명

E3D301 스마트 카메라 장착 세트 E3D302 스마트 카메라 냉각부E3D303 스마트 카메라 열전도체E3D304 스마트 카메라 냉각부 2개

액세서리에 관한 상세정보 : www.ifm.com

Page 12: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

12

7. 전기적 연결전기 설치 전에 다음 지침을 따르십시오.

주의 본 제품의 설치는 반드시 전문직업교육을 받은 전문가에 의해 이루어져야 합니다. 데이터 시트의 전기 데이터를 따르십시오.보호 등급 III (PC III) 디바이스.전기 공급은 PELV 회로를 통해서만 이루어져야 합니다.전기 공급은 UL61010-1, 9.4장 - 제한된 에너지 (Limited Energy)에 대응해야 합니다.과부하 보호 장치는 6.6 A의 전류를 120초 안에 차단해야 합니다. 과부하 보호 장치의 올바른 등급은 센서 및 배선 기술 데이터를 참조하십시오.외부 회로 분리는 UL61010-2-201를 따라야 합니다. 그림 102.케이블 길이가 30m를 넘는 경우 IEC 6100-4-5에 따라 서지 전압으로부터 보호하는 추가 장치를 사용하십시오.디바이스를 연결하기 전에 설비 전원을 차단하십시오.

유효한 cULus의 범위는 다음과 같습니다.현장 배선 터미널에 연결된 케이블의 최소 온도 등급: 70℃.

7.1 배선

① 이더넷M12 소켓, D 코드화, 4 극

����������������

� �

��

��� ��

��������

� �

1_TD + 2_RD + 3_TD - 4_RD - S_쉴드

② 전원 공급M12 커넥터, A 코드화, 8 극

6

2 1

45

738

1_U+ 2_트리거 입력 3_GND 4_스위칭 출력 1 - (디지털 또는 아날로그) 5_스위칭 출력 3 - 준비 6_스위칭 출력 2 - (디지털) 7_스위칭 입력 1 8_스위칭 입력 2

사용하지 않는 이더넷 연결 플러그는 보호 캡 (E73004)으로 덮으십시오. 조임 토크 0.6~0.8 Nm

ifm Vision Assistant 소프트웨어를 사용하여 스위칭 입력 및 출력의 동작을 설정할 수 있습니다. PNP 또는 NPN 설정은 항상 모든 스위칭 입력 및 출력에 적용됩니다.엑추에이터와 센서를 설치할 때 설정이 올바른지 확인하십시오 (예: 트리거용 포토 센서).조절 가능한 시간이 지난 후에 스위칭 시그널을 초기화하는 펄스 출력으로 스위칭 출력을 사용할 수도 있습니다. 아날로그 출력에서는 GND에 전류/전압을 제공합니다.

Page 13: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

13

3D 센서

KR

7.1.1 핀 1 / 3 (24 V / GND)허용 전압 범위는 센서 데이터 시트에 표시되어 있습니다.

7.1.2 핀 2 (트리거 입력)센서 이미지 캡처는 스위칭 시그널을 사용하여 트리거 입력을 통해 트리거할 수 있습니다.다음 트리거 에지를 사용할 수 있습니다.

● 하강 에지가 이미지 캡처 트리거 ● 상승 에지가 이미지 캡처 트리거 ● 하강 및 상승 에지가 이미지 캡처 트리거

센서를 트리거할 수 있는 추가적인 방법: ● 프로세스 인터페이스 명령 (→ 13.2) ● 고정 프레임 속도로 이미지 연속 캡처

트리거 입력은 내부에서 디바운스됩니다. 전기 설비에 따라 트리거 전선을 디바운스할 필요가 없습니다. 내부 디바운싱은 여러개의 짧은 펄스가 트리거되는 것을 방지합니다. 펄스가 트리거로 인식되려면 길이가 2 ms 이상이어야 합니다.

7.1.3 핀 4 / 5 / 6 (스위칭 출력)스위칭 출력 1~3은 각기 다른 센서 상태를 제공합니다. 센서 상태 외에 스위칭 출력은 어플리케이션을 실행하는 데 필요한 기준 값도 제공할 수 있습니다.스위칭 출력 1~3의 전기 사양은 데이터 시트에 표시되어 있습니다.스위칭 출력 3은 "트리거 준비됨" 센서 상태를 기본 설정으로 제공합니다.

"스위칭 출력 전환됨"은 각 센서 상태가 발생했음을 의미합니다.

센서 상태 값은 설정에 따라 다음 중 하나일 수 있습니다. ● "트리거 준비됨"

센서에서 새 이미지를 캡처할 수 있음을 알려줍니다. 이 센서 상태에서만 트리거 작동이 처리됩니다. 연속 이미지 캡처의 경우 "트리거 준비됨" 상태가 출력되지 않습니다.

● "이미지 캡처 완료됨" 센서에서 이미지 캡처가 완료되었음을 알려줍니다. 이 센서 상태는 캐스캐이딩 센서에 사용할 수 있습니다.

● "평가 완료됨" 센서에서 이미치 처리가 완료되었음을 알려줍니다. 이 때는 스위칭 출력이 이미 업데이트되어 있습니다. 이미지 데이터는 이더넷을 통해 전송됩니다.

● "오류" 센서에서 내부 오류가 발생했음을 알려줍니다. 오류에 대한 상세 정보를 이더넷을 통해 요청할 수 있습니다.

이미지 캡처

트리거 입력

시간 [ms]1 2 3 4 5 6 7 8 9 10 11

Page 14: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

14

7.1.4 핀 4 (아날로그 출력)스위칭 출력 1/아날로그 출력을 스위칭 출력이나 아날로그 전류 출력 (4-20mA) / 아날로그 전압 출력 (0-10V)으로 사용할 수 있습니다.아날로그 전류 출력은 아날로그 전압 출력보다 전송 신뢰도가 우수합니다. 아날로그 전류 출력은 케이블 길이와 무관하고, 산업용 컨트롤러에 더 우수한 신호 품질을 보장합니다.산업용 컨트롤러에서 아날로그 전류가 GND에 대한 부하 저항기를 통해 아날로그 전압으로 변환됩니다. 부하 저항기는 데이터 시트에 표시된 내용에 따라 선택합니다. 디바이스에서 열이 덜 발생하기 때문에 저항이 낮은 부하 저항기보다 저항이 높은 부하 저항기를 사용하는 것이 좋습니다.

3 1 4 5 6 7 8

1 2

34

6

2 1

45

738

PLC

DC 24 V+ -

IN IN IN OUT OUT

②③

Analog

① 노트북 (파라메터 설정)

② 산업용 컨트롤러 (평가/트리거)

③ 부하 저항기

ifm Vision Assistant 소프트웨어를 사용하여 아날로그 출력의 시작 값(4mA/0V)과 종료 값(20mA/10V)에 각각 프로세스 값을 하나씩 할당할 수 있습니다.

7.1.5 핀 7/8 (스위칭 입력)스위칭 입력은 다음과 같은 기능을 제공합니다.

● 활성 어플리케이션 선택 (→ 7.3)

기능의 다양한 파라메터 설정은 소프트웨어 매뉴얼에 표시되어 있습니다.

스위칭 출력 1, 2의 전기 데이터는 센서 데이터 시트에 표시되어 있습니다.

Page 15: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

15

3D 센서

KR

7.2 배선 사례아래에는 센서 배선의 사례가 나와 있습니다.

7.2.1 근접 센서로 이미지 캡처 트리거센서를 외부에서 트리거하는 방법:

● 이더넷 ● 트리거 입력에 연결된 근접 센서

다음 그림은 근접 센서가 포함된 배선도입니다.

3 1 2 4 5 6 7 8

1 2

34

6

2 1

45

738

PLC

DC 24 V+ -

IN IN IN OUT OUT

② ③

① 노트북 (파라메터 설정)

② 근접 센서

③ 산업용 컨트롤러 (평가/트리거)

Page 16: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

16

7.2.2 서로 가까이 설치한 여러 센서센서를 서로 가까이 설치하면 동시 노출로 인해 측정 오류가 발생할 수 있습니다.

① ②

① 디바이스

② 디바이스

③ 물체

다음 두 가지 방법으로 측정 오류를 방지할 수 있습니다. ● HW 트리거를 통해 센서 캐스캐이드

캐스캐이드 중에 컨트롤러가 센서 ① 이미지 캡처를 트리거합니다 (아래 그림 참조). 이미지 캡처 완료 후 센서 ①이 센서 ②를 자동으로 트리거합니다. 이와 동시에 센서 ①의 4번 핀에서 "이미지 캡처 완료됨" 센서 상태를 제공합니다. 센서 ②에서 시퀀스 종료 신호를 산업용 컨트롤러 ③으로 전송합니다.

3 1 2 4 5

DC 24 V+ -

3 1 2 5

6

2 1

45

738

PLC

IN IN IN OUT OUT

6 7

① ② ① 디바이스

② 디바이스

③ 산업용 컨트롤러 (평가 / 트리거)

● 다른 주파수 채널 사용 ifm Vision Assistant 소프트웨어를 사용하여 각 센서를 전용 주파수 채널에 할당할 수 있습니다. 여러 주파수 채널을 사용하면 측정 오류 발생이 감소합니다.

ifm 비전 어시스턴트 소프트웨어는 웹사이트에서 무료로 제공됩니다: www.ifm.com

Page 17: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

17

3D 센서

KR

7.3 어플리케이션의 정적 선택:최대 32 개까지의 다양한 검사업무가 센서에 저장될 수 있습니다. 해당 구성에서 첫 번째 네 개의 어플리케이션은 2개의 스위칭 입력을 통해 선택될 수 있습니다.

입력 2 입력 1 어플리케이션 번호0 0 10 1 21 0 31 1 4

0

1

0

1

0

1

t

1 2 3- -

RR

사례: 선택 어플리케이션 1 → 어플리케이션 2 → 어플리케이션 3

① 스위칭 입력 1 = 0 → 1 → 0

② 스위칭 입력 2 = 0 → 0 → 1

③ 준비 (READY) 출력

④ 트리거 입력A: 트리거 허용됨B: 트리거 허용되지 않음

⑤ 활성화된 어플리케이션의 ID 번호

어플리케이션을 선택하기 위해 모니터링 시간 tR과 사용되지 않는 시간 트리거 tP가 고려되어야 합니다.모니터링 시간 tR: 양쪽 스위칭 입력에 대한 상태의 에지변화 이후 20 ms 동안 안전하게 머무르면, 어플리케이션 선택이 비로소 시작됩니다.트리거 불가능 시간 tP: 어플리케이션 선택 중에 트리거 입력은 불가능합니다. 불가능 시간은 다음에 의존합니다:

● 디바이스의 어플리케이션 수 ● 활성화 되는 어플리케이션에서의 모델 수

위 그림에는 PNP 출력 로직 (공장 설정)이 표시되어 있습니다. NPN 출력 로직 동작은 PNP 출력 로직 동작과 반대입니다.

● PNP 출력 로직: 신호가 높은 경우 (1) 전압이 공급됩니다. ● NPN 출력 로직: 신호가 낮은 경우 (0) 전압이 공급됩니다.

어플리케이션 선택 구성에 대한 내용은 디바이스의 소프트웨어 매뉴얼을 참조하십시오. www.ifm.com

Page 18: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

18

7.4 어플리케이션의 펄스 컨트롤 된 선택정적 선택에 대한 대안으로 어플리케이션 선택은 또한 펄스 컨트롤됩니다.

1 2 3 4 5

① 게이트 시그널, 스위칭 입력 1 = 0 → 1 → 0 (tG = 시그널 활성화)

② 펄스 시그널, 스위칭 입력 2 또는 트리거 입력 = 0 → 5 펄스 → 0

③ 준비 (READY) 출력

스위칭 입력 1 (게이트 시그널)에 활성화된 시그널이 있으면, 디바이스는 들어오는 펄스를 카운팅하고 해당 어플리케이션을 활성화합니다.펄스 수 = 어플리케이션의 ID 번호스위칭 입력 2 또는 디바이스의 트리거 입력 중 하나를 펄스 입력으로 사용할 수 있습니다.

위 그림에는 PNP 출력 로직 (공장 설정)이 표시되어 있습니다. NPN 출력 로직 동작은 PNP 출력 로직 동작과 반대입니다.

● PNP 출력 로직: 신호가 높은 경우 (1) 전압이 공급됩니다. ● NPN 출력 로직: 신호가 낮은 경우 (0) 전압이 공급됩니다.

어플리케이션 선택 구성에 대한 내용은 디바이스의 소프트웨어 매뉴얼을 참조하십시오. www.ifm.com

Page 19: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

19

3D 센서

KR

8. 표시기LED 표시등 1-4를 통해 센서에서 현재 작동 상태를 알려줍니다.

LED 4 LED 3LED 1 LED 2

LED 4 (이더넷)

LED 1 (전원)

LED 2 (출력 1)

LED 3 (출력 2)

설명

On 센서 작동 준비 완료, 공급 전압 가동0.5 Hz에서 점멸

설정된 파라메터가 없거나 파라메터 설정이 센서에 로드되지 않음

On

On

Off

Off

0.5 Hz에서 2번 점멸

센서가 파라메터 설정 모드임

On

On

Off

OffOn 스위칭 출력 1이 스위칭됨8 Hz에서 점멸

스위칭 출력 1 쇼트

On 스위칭 출력 2가 스위칭됨8 Hz에서 점멸

스위칭 출력 2 쇼트

On 이더넷 연결됨점멸됨 이더넷 데이터 전송 중Off 이더넷 연결되지 않음

8 Hz에서 점멸

8 Hz에서 점멸

센서에서 내부 오류 신호 전송

2 Hz에서 점멸

2 Hz에서 점멸

센서에서 수정 가능한 오류 신호 전송. 오류 정보는 이더넷을 통해 읽을 수 있습니다.

러닝 라이트 ⇒ 디바이스 부팅

러닝 라이트 ⇐ 센서에서 펌웨어 업데이트 수행 중

Page 20: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

20

9. 셋업전원을 켠 후에는 디바이스 작동이 시작됩니다. 15초 후에 저장된 어플리케이션이 실행되는 평가 모드로 센서가 전환됩니다. 표시등이 현재 작동 상태를 나타냅니다 (→ 8).

센서에 어플리케이션을 32개까지 저장할 수 있습니다. 어플리케이션을 다음과 같은 여러 방법으로 활성화할 수 있습니다.

● ifm Vision Assistant 소프트웨어 ● 프로세스 인터페이스 명령 ● 스위칭 입력 1, 2 ● 스위칭 입력 1과 트리거 입력

9.1 디바이스 파라메터 설정ifm Vision Assistant 소프트웨어를 사용하여 센서를 설정합니다 (→ 소프트웨어 매뉴얼 참조).

ifm Vision Assistant 소프트웨어와 디바이스의 측정 원리에 대한 자세한 내용은 소프트웨어 매뉴얼에 설명되어 있습니다.ifm 비전 어시스턴트 소프트웨어는 웹사이트에서 무료로 제공됩니다: www.ifm.com

소프트웨어 매뉴얼은 당사 웹사이트에서 제공됩니다: www.ifm.com

9.2 물체 감지아래는 높은 물체 감지율로 이어지는 조건에 대한 설명입니다.

①① 디바이스

② 영향 영역

③ 시야

④ 물체

다음 조건이 충족될 경우 물체 ④가 최적으로 감지됩니다.

● 물체가 시야 ③ 안에 있음 ● 물체가 센서 ①에서 가장 가까운 가시 물체임

● 영향 영역 ②에 물체 (장애물 등)가 없음 ● 센서 렌즈 창이 오염되지 않음

조건이 충족되지 않으면 측정 오류가 발생할 수 있습니다.

Page 21: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

21

3D 센서

KR

9.3 프로세스 값 전송

9.3.1 이더넷/IP를 통해 완전도 모니터링 프로세스 값 전송디바이스에서 이더넷/IP 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 0 - 7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.star;0;00;0;+0.000;01;7;-0.068;02;6;+0.013;03;0;+0.001;stop

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0000_0000 바이너리

1.5 중복 명령 단어

● 비트 1.5는 성공적인 트리거 명령을 표시함1 2#0010_0000 바이너리

2 2#0000_0000 십진수 동기 / 비동기 메시지 ID3 2#0000_0000 십진수

4 30 십진수30 메시지 카운터

● 디바이스에 수신된 메시지가 30개 있음

● 각 작업 (트리거, 메시지 전송 등)마다 1씩 증가

5 0 십진수

6 0 십진수예약됨

7 0 십진수8 s ASCII

별표 시작 문자열9 t ASCII10 a ASCII11 r ASCII12 0 십진수

0 모든 ROI의 상태 (0 = 나쁨, 1 = 좋음)

완전성 모니터링 상태 표시13 0 십진수

14 0 십진수

0 ROI ID

위치 조정이 활성화된 경우 14 및 15바이트가 사용됨0 = 위치가 조정되지 않음1 = 위치가 조정됨다음 데이터가 모두 2바이트씩 이동함. 즉, 첫 번째 ROI ID가 16 및 17바이트로 시작됨

15 0 십진수

Page 22: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

22

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트16 0 십진수

0 ROI 상태

ROI 상태:0 = 좋음1 = 기준 레벨 티칭되지 않음2 = 티칭 실패3 = 기준 레벨 유효하지 않음4 = 유효한 픽셀 없음5 = 기준 레벨에 유효한 픽셀이 포함되지 않음6 = 오버필7 = 언더필

17 0 십진수18 0 십진수

0 mm ROI 값19 0 십진수20 1 십진수

1 ROI ID21 0 십진수22 7 십진수

7 ROI 상태23 0 십진수24 -67 십진수

-67 mm ROI 값25 -1 십진수26 2 십진수

2 ROI ID27 0 십진수28 6 십진수

6 ROI 상태29 0 십진수30 14 십진수

14 mm ROI 값31 0 십진수32 3 십진수

3 ROI ID33 0 십진수34 0 십진수

0 ROI 상태35 0 십진수36 0 십진수

0 mm ROI 값37 0 십진수38 s ASCII

스톱 스트링 종료39 t ASCII40 o ASCII41 p ASCII

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 23: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

23

3D 센서

KR

9.3.2 PROFINET를 통해 완성도 모니터링 프로세스 값 전송디바이스는 프로피넷 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 0 - 7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.star;0;00;0;+0.000;01;7;-0.068;02;6;+0.013;03;0;+0.001;stop

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 십진수 동기 / 비동기 메시지 ID3 2#0000_0000 십진수

4 0 십진수30 메시지 카운터

● 디바이스는 30개의 수신된 메시지를 보유합니다.

● 각 작업 (트리거, 메시지 전송 등)마다 1씩 증가

5 30 십진수

6 0 십진수예약됨

7 0 십진수8 s ASCII

별표 시작 문자열9 t ASCII10 a ASCII11 r ASCII12 0 십진수

0 모든 ROI의 상태 (0 = 나쁨, 1 = 좋음)

완전성 모니터링 상태 표시13 0 십진수

14 0 십진수

0 ROI ID

위치 조정이 활성화된 경우 14 및 15 바이트가 사용됨0 = 위치가 조정되지 않음1 = 위치가 조정됨다음 데이터가 모두 2바이트씩 이동함. 즉, 첫 번째 ROI ID가 16 및 17바이트로 시작됨

15 0 십진수

Page 24: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

24

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트16 0 십진수

0 ROI 상태

ROI 상태:0 = 좋음1 = 기준 레벨 티칭되지 않음2 = 티칭 실패됨3 = 기준 레벨 유효하지 않음4 = 유효한 픽셀 없음5 = 기준 레벨에 유효한 픽셀이 포함되지 않음6 = 오버필7 = 언더필

17 0 십진수18 0 십진수

0 mm ROI 값19 0 십진수20 0 십진수

1 ROI ID21 1 십진수22 0 십진수

7 ROI 상태23 7 십진수24 -1 십진수

-67 mm ROI 값25 -67 십진수26 0 십진수

2 ROI ID27 2 십진수28 0 십진수

6 ROI 상태29 6 십진수30 0 십진수

14 mm ROI 값31 14 십진수32 0 십진수

3 ROI ID33 3 십진수34 0 십진수

0 ROI 상태35 0 십진수36 0 십진수

0 mm ROI 값37 0 십진수38 s ASCII

스톱 스트링 종료39 t ASCII40 o ASCII41 p ASCII

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 25: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

25

3D 센서

KR

9.3.3 TCP/IP를 통해 완성도 모니터링 프로세스 값 전송디바이스에서 TCP/IP 프로토콜을 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다 (데이터 유형: ASCII):star;0;00;0;+0.000;01;7;-0.068;02;6;+0.013;03;0;+0.001;stop

프로세스 값 단위 설명별표 시작 문자열0 모든 ROI의 상태(0 = 나쁨, 1 = 좋음)00 ROI ID

ROI 상태:0 = 좋음1 = 기준 레벨 티칭되지 않음2 = 티칭 실패됨3 = 기준 레벨 유효하지 않음4 = 유효한 픽셀 없음5 = 기준 레벨에 유효한 픽셀이 포함되지 않음6 = 오버필7 = 언더필

0 ROI 상태+0.000 m ROI 값01 ROI ID7 ROI 상태-0.068 m ROI 값02 ROI ID6 ROI 상태+0.013 m ROI 값03 ROI ID0 ROI 상태+0.001 m ROI 값스톱 스트링 종료

Page 26: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

26

9.3.4 이더넷 / IP를 통해 물체 치수 측정 프로세스 값 전송디바이스에서 이더넷/IP 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 출력 문자열을 조정할 수 있습니다. 전송할 프로세스 값을 ifm Vision Assistant에서 설정할 수

있습니다. ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.star;1;0.104;0.088;0.109;+0.021;-0.011;+0.389;158;097;094;097;stop

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0000_0000 바이너리

1.5 중복 명령 단어

● 비트 1.5는 성공적인 트리거 명령을 표시함1 2#0010_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0011 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음.

● 각 작업(트리거, 메시지 전송 등)마다 1씩 증가

5 2#0000_0000 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리8 s ASCII

별표 시작 문자열9 t ASCII10 a ASCII11 r ASCII12 2#0000_0001 바이너리

1 결과 비트0 = 박스 발견 안 됨1 = 박스 발견13 2#0000_0000 바이너리

14 104 십진수104 mm 너비

15 0 십진수16 88 십진수

88 mm 높이17 0 십진수18 108 십진수

109 mm 길이19 0 십진수20 21 십진수

21 x 좌표21 0 십진수22 -11 십진수

-11 y 좌표23 -1 십진수

Page 27: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

27

3D 센서

KR

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트24 -124 십진수

389 z 좌표25 1 십진수26 -98 십진수

158 회전 각도27 0 십진수28 97 십진수

97 품질 너비29 0 십진수30 93 십진수

94 품질 높이31 0 십진수32 97 십진수

97 품질 길이33 0 십진수34 s ASCII

스톱 스트링 종료35 t ASCII36 o ASCII37 p ASCII

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 28: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

28

9.3.5 PROFINET를 통해 물체 치수 측정 프로세스 값 전송디바이스는 프로피넷 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 출력 문자열을 조정할 수 있습니다. 전송할 프로세스 값을 ifm Vision Assistant에서 설정할 수

있습니다. ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.star;1;0.104;0.088;0.109;+0.021;-0.011;+0.389;158;097;094;097;stop

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0000 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음.

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가

5 2#0000_0011 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리8 s ASCII

별표 시작 문자열9 t ASCII10 a ASCII11 r ASCII12 2#0000_0000 바이너리

1 결과 비트0 = 박스 발견 안 됨1 = 박스 발견13 2#0000_0001 바이너리

14 0 십진수104 mm 너비

15 104 십진수16 0 십진수

88 mm 높이17 88 십진수18 0 십진수

109 mm 길이19 109 십진수20 0 십진수

21 x 좌표21 21 십진수22 -1 십진수

-11 y 좌표23 -11 십진수

Page 29: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

29

3D 센서

KR

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트24 1 십진수

389 z 좌표25 -124 십진수26 0 십진수

158 회전 각도27 -98 십진수28 0 십진수

97 품질 너비29 97 십진수30 0 십진수

94 품질 높이31 94 십진수32 0 십진수

97 품질 길이33 97 십진수34 s ASCII

종료 스트링 종료35 t ASCII36 o ASCII37 p ASCII

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 30: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

30

9.3.6 TCP / IP를 통해 물체 치수 측정 프로세스 값 전송디바이스에서 TCP/IP 프로토콜을 통해 프로세스 값을 PLC로 전송할 수 있습니다. 전송할 프로세스 값을 ifm Vision Assistant에서 선택할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다 (데이터 유형: ASCII):star;1;0.104;0.088;0.109;+0.021;-0.011;+0.389;158;097;094;097;stop

프로세스 값 단위 설명별표 시작 문자열1 물체 찾음0.104 m 너비0.088 m 높이0.109 m 길이+0.021 x 좌표-0.011 y 좌표+0.389 z 좌표158 회전 각도097 품질 너비094 품질 높이097 품질 길이종료 스트링 종료

Page 31: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

31

3D 센서

KR

9.3.7 이더넷 / IP를 통해 레벨 측정 프로세스 값 전송디바이스에서 이더넷/IP 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.0070

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0000_0000 바이너리

1.5 중복 명령 단어

비트 1.5는 성공적인 트리거 명령을 표시함1 2#0010_0000 바이너리

2 2#0000_0000 십진수 동기/ 비동기 메시지 ID3 2#0000_0000 십진수

4 30 십진수30 메시지 카운터

● 디바이스에 수신된 메시지가 30개 있음.

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가5 0 십진수

6 0 십진수예약됨

7 0 십진수8 0 십진수

0 모든 ROI의 상태 (0 = 나쁨, 1 = 좋음)

레벨 측정 상태 표시9 0 십진수

10 0 십진수0 ROI ID

ROI 상태:0 = 좋음6 = 오버필7 = 언더필

11 0 십진수12 7 십진수

7 ROI 상태13 0 십진수14 0 십진수

0 mm ROI 값15 0 십진수

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 32: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

32

9.3.8 PROFINET를 통해 레벨 측정 프로세스 값 전송디바이스는 프로피넷 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다

(위 스크린샷 참조). ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다.0070

바이트 번호 데이터 코딩 프로세스 값 단위 설명 코멘트0 2#0010_0000 바이너리

0.5 중복 명령 단어

비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 십진수 동기/ 비동기 메시지 ID3 2#0000_0000 십진수

4 0 십진수30 메시지 카운터

● 디바이스에 수신된 메시지가 30개 있음

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가5 30 십진수

6 0 십진수예약됨

7 0 십진수8 0 십진수

0 모든 ROI의 상태 (0 = 나쁨, 1 = 좋음)

레벨 측정 상태 표시9 0 십진수

10 0 십진수0 ROI ID

ROI 상태:0 = 좋음6 = 오버필7 = 언더필

11 0 십진수12 0 십진수

7 ROI 상태13 7 십진수14 0 십진수

0 mm ROI 값15 0 십진수

명령 실행 오류는 다음 상태로 이어집니다. ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 33: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

33

3D 센서

KR

9.3.9 TCP/IP를 통해 레벨 측정 프로세스 값 전송디바이스에서 TCP/IP 프로토콜을 통해 프로세스 값을 PLC로 전송할 수 있습니다. 프로세스 값은 아래와 같이 ifm Vision Assistant에 출력 문자열로 표시됩니다.

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하는 경우 다음 사항을 참고하십시오. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 모든 숫자 값은 전송 전에 이진 16비트 정수로 변환됩니다.

출력 문자열은 다음으로 구성됩니다 (데이터 유형: ASCII):star;0;00;7;+0.000;stop

프로세스 값 단위 설명

별표 시작 문자열

0 모든 ROI의 상태 (0 = 나쁨, 1 = 좋음)

00 ROI ID ROI 상태:0 = 좋음6 = 오버필7 = 언더필

7 ROI 상태

+0.000 m ROI 값

스톱 스트링 종료

Page 34: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

34

9.3.10 이더넷 / IP를 통한 robot pick & place 의 프로세스 값 전송 디바이스에서 이더넷 / IP 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다. ● 14 - 35바이트는 "물체 수" (최대 10 회 반복) 아래에 세팅된 각 물체를 위하여 반복됩니다. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다:0;01;08;1;0.338;0.142;0.452;+0.075;-0.071;+0.783;078;+000;+000;+056

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0000 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가

5 2#0000_0011 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리

8 0 십진수0 에러

에러:0 = 오류 아님 1 = 정의되지 않음 에러 2 = 물체 없음9 0 십진수

10 1 십진수01 검출물체 수 찾은 검출물체 수

11 0 십진수12 8 십진수

08 검출물체 후보 수 발견 및 검사된 물체 후보 수 13 0 십진수14 1 바이너리

1 물체 찾음0 = 물체 없음1 = 물체 찾음15 0 바이너리

16 338 십진수338 mm 너비 물체 표면의 가장 넓은 치수

17 0 십진수18 142 십진수

142 mm 높이 베이스 플레이트에 관한 물체 높이19 0 십진수

20 452 십진수452 mm 길이 물체 표면의 가장 긴 치수

21 0 십진수22 75 십진수

75 중심 포인트 X 물체 표면의 중심 포인트 X 좌표 (사용자의 좌표 시스템에서) 23 0 십진수

24 -71 십진수-71 중심 포인트 Y 물체 표면의 중심 포인트 Y 좌표

(사용자의 좌표 시스템에서)25 0 십진수26 783 십진수

783 중심 포인트 Z 물체 표면의 중심 포인트 Z 좌표 (사용자의 좌표 시스템에서)27 0 십진수

28 78 십진수078 요 (Yaw) 각도

yaw 각은 x 축 (세계 좌표계)과 물체의 "길이"에 따라 벡터 (vector) 사이에 있습니다.29 0 십진수

Page 35: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

35

3D 센서

KR

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고30 0 십진수

+000 회전 X 사용자의 좌표 시스템에서 인식된 물체의 X축에 대한 회전 31 0 십진수

32 0 십진수+000 회전 Y 사용자의 좌표 시스템에서 인식된

물체의 Y축에 대한 회전33 0 십진수34 56 십진수

+056 회전 Z 사용자의 좌표 시스템에서 인식된 물체의 z 축에 대한 회전35 0 십진수

명령 실행 오류는 다음 상태로 이어집니다: ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 36: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

36

9.3.11 PROFINET을 통해 robot pick & place 측정 프로세스 값 전송디바이스는 프로피넷 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다. ● 14 - 35바이트는 "물체 수" (최대 10 회 반복) 아래에 세팅된 각 물체를 위하여 반복됩니다. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다:0;01;08;1;0.338;0.142;0.452;+0.075;-0.071;+0.783;078;+000;+000;+056

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0000 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가

5 2#0000_0011 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리

8 0 십진수0 에러

에러:0 = 오류 아님 1 = 정의되지 않음 에러 2 = 물체 없음9 0 십진수

10 1 십진수01 검출물체 수 찾은 검출물체 수

11 0 십진수12 8 십진수

08 검출물체 후보 수 찾아서 확인된 검출물체 후보 수13 0 십진수14 1 바이너리

1 검출물체 찾음0 = 검출물체 없음1 = 검출물체 찾음15 0 바이너리

16 338 십진수338 mm 너비 물체 표면의 가장 넓은 치수

17 0 십진수18 142 십진수

142 mm 높이 베이스 플레이트에 관한 물체 높이19 0 십진수

20 452 십진수452 mm 길이 물체 표면의 가장 긴 치수

21 0 십진수22 75 십진수

75 중심 포인트 X 물체 표면의 중심 포인트 X 좌표 (사용자의 좌표 시스템에서)23 0 십진수

24 -71 십진수-71 중심 포인트 Y 물체 표면의 중심 포인트 Y 좌표

(사용자의 좌표 시스템에서)25 0 십진수26 783 십진수

783 중심 포인트 Z 물체 표면의 중심 포인트 Z 좌표 (사용자의 좌표 시스템에서)27 0 십진수

28 78 십진수078 요 (Yaw) 각도

요 (Yaw) 각은 x 축 (세계 좌표계)과 물체의 "길이"에 따라 벡터 (vector) 사이에 있습니다.29 0 십진수

Page 37: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

37

3D 센서

KR

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고30 0 십진수

+000 회전 X 사용자의 좌표 시스템에서 인식된 물체의 X축에 대한 회전31 0 십진수

32 0 십진수+000 회전 Y 사용자의 좌표 시스템에서 인식된

물체의 Y축에 대한 회전33 0 십진수34 56 십진수

+056 회전 Z 사용자의 좌표 시스템에서 인식된 물체의 z 축에 대한 회전35 0 십진수

명령 실행 오류는 다음 상태로 이어집니다: ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 38: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

38

9.3.12 TCP/IP를 통한 robot pick & place의 프로세스 값 전송 디바이스에서 TCP/IP 프로토콜을 통해 프로세스 값을 PLC로 전송할 수 있습니다. ifm Vision Assistant 에서 프로세스 값은 아래와 같이 출력 문자열로서 디스플레이됩니다.

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● "물체 찾음"에서 "회전 Z" 까지의 프로세스 값이 "검출물체 수" (최대 10 회 반복) 하에 세팅된

각 물체를 위하여 반복됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다: (데이터 타입: ASCII):star;0;01;08;1;0.338;0.142;0.452;+0.075;-0.071;+0.783;078;+000;+000;+056;stop

프로세스 값 단위 설명별표 시작 문자열0 에러01 검출물체 수08 검출물체 후보 수

1 1 = 검출물체 없음 0 = 검출물체 찾음

0.338 mm 너비0.142 mm 높이0.452 mm 길이+0.075 중심 포인트 X-0.071 중심 포인트 Y+0.783 중심 포인트 Z078 요 (Yaw) 각도+000 회전 X+000 회전 Y+056 회전 Z스톱 스트링 종료

Page 39: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

39

3D 센서

KR

9.3.13 EtherNet/IP를 통하여 디팔레타이징의 프로세스 값 전송디바이스에서 EtherNet/IP 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다:1;0.200;0.150;0.307;+00.002;-10.044;+03.100;+170;-133;-132;02;1;098;00;1

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0000 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음.

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가

5 2#0000_0011 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리8 1 바이너리

1 물체 찾음0 = 검출물체 없음1 = 검출물체 찾음9 0 바이너리

10 200 십진수200 mm 너비 물체 표면의 가장 넓은 치수

11 0 십진수12 150 십진수

150 mm 높이 베이스 플레이트에 관한 물체 높이13 0 십진수

14 307 십진수307 mm 길이 물체 표면의 가장 긴 치수

15 0 십진수

16 2 십진수+2 중심 포인트 X 물체 표면의 중심 포인트 X 좌표

(사용자의 좌표 시스템에서)17 0 십진수

18 10044 십진수-10044 중심 포인트 Y 물체 표면의 중심 포인트 Y 좌표

(사용자의 좌표 시스템에서)19 0 십진수

20 3100 십진수+3100 중심 포인트 Z 물체 표면의 중심 포인트 Z 좌표

(사용자의 좌표 시스템에서)21 0 십진수

22 170 십진수+170 회전 X 사용자의 좌표 시스템에서 인식된

물체의 X축에 대한 회전23 0 십진수

24 -133 십진수-133 회전 Y 사용자의 좌표 시스템에서 인식된

물체의 Y축에 대한 회전25 0 십진수

Page 40: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

40

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고

26 -132 십진수-132 회전 Z 사용자의 좌표 시스템에서 인식된

물체의 z 축에 대한 회전27 0 십진수

28 02 십진수02 현재 레이어

현재 팔레트 레이어, "0"으로 시작 레이어가 없는 층은 "0"으로 표시됩니다. 29 0 십진수

30 1 바이너리1 슬립 시트

팔레트 레이어에 슬립 시트가 있습니다. 0 = 검출된 슬립 시트가 없습니다.1 = 슬립 시트가 검출되었습니다. 31 0 바이너리

32 098 십진수

098 에러

에러:0 = 에러 아님 1 = 정의되지 않은 에러 2 = 예기치 않은 물체 인식됨기타 에러 코드: (→ 13.1.5)

33 0 십진수

34 00 바이너리00 충돌 회피

충돌 회피 디팔레타이징0: no 1: yes35 0 바이너리

36 1 십진수1 품질

0과 100 사이의 검출물체 인식 품질 값 "100"은 최상의 품질을 나타냅니다.37 0 십진수

명령 실행 오류는 다음 상태로 이어집니다: ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 41: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

41

3D 센서

KR

9.3.14 PROFINET를 통하여 디팔레타이징의 프로세스 값 전송디바이스는 PROFINET 필드버스를 통해 프로세스 값을 PLC로 전송할 수 있습니다.

필드버스를 한 번에 하나씩만 활성화할 수 있습니다. 필드버스를 조정할 수 있습니다 (→ 소프트웨어 매뉴얼).

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 0~7바이트는 출력 문자열의 일부이며, ifm Vision Assistant에 표시되지 않습니다. ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 부동 소수 값은 전송 전에 16비트 정수로 변환됩니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다:1;0.200;0.150;0.307;+00.002;-10.044;+03.100;+170;-133;-132;02;1;098;00;1

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고0 2#0010_0000 바이너리

0.5 중복 명령 단어

● 비트 0.5는 성공적인 트리거 명령을 표시함1 2#0000_0000 바이너리

2 2#0000_0000 바이너리 동기 / 비동기 메시지 ID3 2#0000_0000 바이너리

4 2#0000_0000 바이너리

3 메시지 카운터 ● 디바이스에 수신된 메시지가 3개 있음.

● 각 작업 (트리거, 메시지 전송 등) 마다 1씩 증가

5 2#0000_0011 바이너리

6 2#0000_0000 바이너리예약됨

7 2#0000_0000 바이너리8 1 바이너리

1 검출물체 찾음0 = 검출물체 없음1 = 검출물체 찾음9 0 바이너리

10 200 십진수200 mm 너비 물체 표면의 가장 넓은 치수

11 0 십진수12 150 십진수

150 mm 높이 베이스 플레이트에 관한 물체 높이13 0 십진수

14 307 십진수307 mm 길이 물체 표면의 가장 긴 치수

15 0 십진수

16 2 십진수+2 중심 포인트 X 물체 표면의 중심 포인트 X 좌표 (

사용자의 좌표 시스템에서)17 0 십진수

18 10044 십진수-10044 중심 포인트 Y 물체 표면의 중심 포인트 Y 좌표 (

사용자의 좌표 시스템에서)19 0 십진수

20 3100 십진수+3100 중심 포인트 Z 물체 표면의 중심 포인트 Z 좌표 (

사용자의 좌표 시스템에서)21 0 십진수

22 170 십진수+170 회전 X 사용자의 좌표 시스템에서 인식된

물체의 X축에 대한 회전23 0 십진수

24 -133 십진수-133 회전 Y 사용자의 좌표 시스템에서 인식된

물체의 Y축에 대한 회전25 0 십진수

Page 42: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

42

바이트 번호 데이터 코드화 프로세스 값 단위 설명 참고

26 -132 십진수-132 회전 Z 사용자의 좌표 시스템에서 인식된

물체의 z 축에 대한 회전27 0 십진수

28 02 십진수02 현재 레이어

현재 팔레트 레이어, "0"으로 시작 레이어가 없는 층은 "0"으로 표시됩니다.29 0 십진수

30 1 바이너리1 슬립 시트

팔레트 레이어에 슬립 시트가 있습니다.0 = 검출된 슬립 시트가 없습니다.1 = 슬립 시트가 검출되었습니다.31 0 바이너리

32 098 십진수

098 에러

에러:0 = 에러 아님 1 = 정의되지 않은 에러 2 = 예기치 않은 물체 인식됨기타 에러 코드: (→ 13.1.5).

33 0 십진수

34 00 바이너리00 충돌 회피

충돌 회피 디팔레타이징0: no 1: yes35 0 바이너리

36 1 십진수1 품질

0과 100 사이의 검출물체 인식 품질 값 "100"은 최상의 품질을 나타냅니다.37 0 십진수

명령 실행 오류는 다음 상태로 이어집니다: ● 오류 비트 = 1 ● 중복 명령 단어 표시됨 ● 비동기 메시지 비트 = 0 ● 비동기 메시지 ID = 0 ● 메시지 카운터가 1씩 증가함

Page 43: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

43

3D 센서

KR

9.3.15 TCP/IP를 통하여 디팔레타이징의 프로세스 값 전송디바이스에서 TCP/IP 프로토콜을 통해 프로세스 값을 PLC로 전송할 수 있습니다. ifm Vision Assistant 에서 프로세스 값은 아래와 같이 출력 문자열로서 디스플레이됩니다.

출력 문자열에서 프로세스 값은 세미콜론으로 구분됩니다. 출력 문자열은 표시된 순서에 따라 PLC로 전송됩니다.

출력 문자열을 PLC로 전송하려면 다음 참고 사항을 준수하십시오: ● 출력 문자열의 세미콜론 ";"은 전송되지 않습니다. ● 모든 숫자 값은 전송 전에 16비트 정수로 변환됩니다.

출력 문자열은 다음과 같습니다: (데이터 타입:: ASCII).star;1;0.200;0.150;0.307;+00.002;-10.044;+03.100;+170;-133;-132;02;1;098;00;1;stop

프로세스 값 단위 설명별표 시작 문자열

1 1 = 검출물체 없음 0 = 검출물체 찾음

0.200 너비0.150 높이0.307 길이+00.002 중심 포인트 X-10.044 중심 포인트 Y+03.100 중심 포인트 Z+170 회전 X-133 회전 Y-132 회전 Z02 현재 레이어

1 0 = 검출된 슬립 시트가 없습니다. 1 = 슬립 시트가 검출되었습니다.

098 에러

00 0 = 충돌 회피 디팔레타이징이 아님 1 = 충돌 회피 디팔레타이징

1 물체인식 품질 (0 에서 100)종료 스트링 종료

Page 44: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

44

10. 유지보수, 수리 및 폐기다음 지침을 따르십시오.

► 디바이스 안에는 사용자가 수리할 수 있는 부품이 없으므로 디바이스를 열지 마십시오. 고장난 센서의 수리는 반드시 제조업체에 문의하십시오.

► 각 국가의 환경 규정에 따라 센서를 폐기하십시오.

10.1 세척센서를 청소하기 전에 다음 지침을 따르십시오.

► 깨끗하고 보푸라기가 없는 천을 사용하십시오. ► 유리 세척제를 사용하여 청소하십시오.

지침을 따르지 않으면 렌즈 창에 스크래치가 생겨 측정 오류가 발생할 수 있습니다.

10.2 펌웨어 업데이트ifm Vision Assistant 소프트웨어를 사용하여 센서를 업데이트할 수 있습니다.

펌웨어를 업데이트하면 센서에 저장된 파라메터가 삭제됩니다. 펌웨어를 업데이트하기 전에 파라메터의 백업본을 만드십시오.

► 펌웨어를 업데이트하기 전에 파라메터를 내보냅니다. ► 펌웨어를 업데이트한 후에 파라메터를 가져옵니다.

펌웨어 업데이트는 당사 웹사이트에서 제공됩니다: www.ifm.com

10.3 디바이스 대체디바이스를 교체하면 파라메터가 삭제됩니다. 디바이스를 교체하기 전에 파라메터의 백업본을 만드십시오.

► 교체 전에 이전 디바이스의 파라메터를 내보냅니다. ► 교체 후에 새 디바이스로 파라메터를 가져옵니다.

파라메터 내보내기 및 가져오기를 통해 여러 디바이스에 동일한 파라메터를 빨리 제공할 수 있습니다.

11. 인증 / 표준EU 적합성 선언은 다음 웹사이트에서 확인할 수 있습니다. www.ifm.com

Page 45: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

45

3D 센서

KR

12. 축척 도면12.1 O3D302 / O3D312

Original Scale Drawing (MTD)

EPS SourceProduct Scale DrawingFrame Size: 80 mm x 45 mm

P_MZ_200_0359

O3D302O3D303O3D312O3D313

33

3

5,7M

12x1

4014

9582,6

73,3

71,6

72

6532,5

21

332

M12x133

3

5,7

M12

x140

14

9582,6

73,3

71,6

72

6532,5

21

33

2

M12x1

① 렌즈

② 조명장치

③ LED 2 색상 (황색/녹색)

12.2 O3D300 / O3D310

Original Scale Drawing (MTD)

EPS SourceProduct Scale DrawingFrame Size: 80 mm x 45 mm

P_MZ_200_0362

O3D300O3D301O3D310O3D311

33

3

5,7

M12

x140

14

9582,6

73,3

71,6

49

17,1

28,7

4

M12x1

72

6532,5

2

21

33

67,1

33

3

5,7

M12

x140

14

9582,6

73,3

71,6

49

17,1

28,7

4

M12x1

72

6532,5

2

21

33

67,1

① 렌즈

② 조명장치

③ LED 2 색상 (황색/녹색)

④ 초점 세팅기

Page 46: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

46

13. Appendix13.1 Process InterfaceThe process interface is used during the normal operation mode to get operational data (e.g. 3D images, process values) from the O3D3xx.

13.1.1 Sending CommandsFor sending commands via the process interface the commands have to be sent with a special protocol and as ASCII character strings. This protocol conforms to the version 3 of the O2V/O2D products.Structure of the protocol:<Ticket><length>CR LF <Ticket><content>CR LF

Abbreviation Description ASCII code (dec) ASCII code (hex)

CR Carriage Return 13 DLF Linefeed 10 A< > Marking of a placeholder

(e.g. <code> is a placeholder for code)[ ] Optional argument

(possible but not required)

Command Description

<content> It is the command to the device (e.g. trigger the unit).<ticket> It is a character string of 4 digits between 0-9. If a message with a specific ticket is sent

to the device, it will reply with the same ticket. A ticket number must be > 0999. Use a ticket number from the range 1000 - 9999.

<length> It is a character string beginning with the letter 'L' followed by 9 digits. It indicates the length of the following data (<ticket><content>CR LF) in bytes.

They are different protocol versions available:

Version Input format Output format

V1 <Content>CR LF As input V2 <Ticket><Content>CR LF As input V3 <Ticket><Length>CR LF<Ticket><Content>CR LF As input V4 <Content>CR LF <length>CR LF<Content>CR LF

The default protocol version is "V3". It is recommended to use protocol version 3 for machine to machine communication. This is due to the fact that only version 3 supports asynchronous messages and provides length information.

Ticket numbers for asynchronous messages:

Ticket number Description

0000 Asynchronous results0001 Asynchronous error messages / codes0010 Asynchronous notifications / message codes

Page 47: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

47

3D 센서

KR

Format of asynchronous notificationsThe format of the asynchronous notifications is a combination of the unique message ID and a JSON formatted string containing the notification details: <unique message ID>:<JSON content>Example for protocol version 3:<ticket=0010>L<length>CR LF<ticket=0010><unique message ID>:<JSON content>CR LFResult:0010L000000045\r\n0010000500000:{"ID": 1034160761,"Index":1,"Name": "Pos 1"}\r\nExplanation of the result:

Command Result

<ticket=0010> 0010L<length> L000000045CR LF \r\n<ticket=0010> 0010<unique message ID> 000500000<JSON content> {"ID": 1034160761,"Index":1,"Name": "Pos 1"}CR LF \r\n

Asynchronous message IDs

Asynchronous message ID

Description Example Description

000500000 Application changed

{"ID": 1034160761,"Index":1,"Name": "Pos 1","valid":true}

000500001 Application is not valid

{"ID": 1034160761,"Index":1,"Name": "Pos 1","valid":false}

If a application exists on given index but it is invalid, the ID and Name are filled accoring to the application. If there is no application on given index, the application ID will contain 0 and the name an empty string "".

000500002 image acquisition finished

{} This message signals the reciever, that the device has finished the image acquistion. This can be used for cascading multiple devices with a software trigger.

Page 48: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

48

13.1.2 Receiving ImagesFor receiving the image data a TCP/IP socket communication is established. The default port number is 50010. The port number may differ based on the configuration. After opening the socket communication, the O3D3XX device will automatically (if the device is in free run mode) send the data through this socket to the TCP/IP client (PC). PCIC output per frame. The following data is submitted in this sequence:

Component Content

Ticket and length information (→ 13.2.15)Ticket "0000"Start sequence String "star" (4 bytes)Normalised amplitude imageOutput format: 16-bit unsigned integer

1 image

Distance imageOutput format: 16-bit unsigned integer. Unit: mm

1 image

X imageOutput format: 16-bit signed integer. Unit: mm

1 image

Y imageOutput format: 16-bit signed integer. Unit: mm

1 image

Z imageOutput format: 16-bit signed integer. Unit: mm

1 image

Confidence imageOutput format: 8-bit unsigned integer

1 image

Diagnostic dataStop sequence String "stop" (4 bytes)Ticket signature <CR><LF>

13.1.3 Image dataFor every image there will be a separate chunk. The chunk is part of the response frame data of the process interface.The header of each chunk contains different kinds of information. This information is separated into bytes. The information contains e.g. the kind of image which will be in the “PIXEL_DATA” and the size of the chunk.

Offset Name Description Size [byte]

0x0000 CHUNK_TYPE Defines the type of the chunk. For each distinct chunk an own type is defined.

4

0x0004 CHUNK_SIZE Size of the whole image chunk in bytes. After this count of bytes the next chunk starts.

4

0x0008 HEADER_SIZE Number of bytes starting from 0x0000 until PIXEL_DATA.

4

0x000C HEADER_VERSION Version number of the header 40x0010 IMAGE_WIDTH Image width in pixel 40x0014 IMAGE_HEIGTH Image height in pixel 40x0018 PIXEL_FORMAT Pixel format 4

Page 49: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

49

3D 센서

KR

Offset Name Description Size [byte]

0x001C TIME_STAMP Time stamp in microseconds (deprecated) 40x0020 FRAME_COUNT Frame counter 40x0024 STATUS_CODE Errors of the device 40x0028 TIME_STAMP_SEC Time stamp in seconds 40x002C TIME_STAMP_NSEC Time stamp in nanoseconds 40x0030 PIXEL_DATA The pixel data in the given type and dimension of the

image. Padded to 4-byte boundary.4

Available chunk types:

Constant Value Description

RADIAL_DISTANCE_IMAGE

100 Each pixel of the distance matrix denotes the ToF distance measured by the corresponding pixel or group of pixels of the imager. The distance value is corrected by the camera's calibration, excluding effects caused by multipath and multiple objects contributions (e.g. "flying pixels"). Reference point is the optical centre of the camera inside the camera housing. Invalid PMD pixels (e.g. due to saturation) have a value of zero.Data type: 16-bit unsigned integer (little endian)Unit: millimetres

NORM_AMPLITUDE_IMAGE

101 Each pixel of the normalized amplitude image denotes the raw amplitude (see amplitude image below for further explanation), normalized to exposure time. Furthermore, vignetting effects are compensated, ie the darkening of pixels at the image border is corrected. The visual impression of this grayscale image is comparable to that of a common 2D camera.Invalid PMD pixels (e.g. due to saturation) have an amplitude value of 0.Data type: 16-bit unsigned integer

AMPLITUDE_IMAGE 103 Each pixel of the amplitude matrix denotes the amount of modulated light (i.e. the light from the camera's active illumination) which is reflected by the appropriate object. Higher values indicate higher PMD signal strengths and thus a lower amount of noise on the corresponding distance measurements. The amplitude value is directly derived from the PMD phase measurements without normalisation to exposure time. In multiple exposure mode, the lack of normalisation may lead (depending on the chosen exposure times) to inhomogeneous amplitude image impression, if a certain pixel is taken from the short exposure time and some of its neighbours are not.Invalid PMD pixels (e.g. due to saturation) have an amplitude value of 0.Data type: 16-bit unsigned integer

GRAYSCALE_IMAGE 104 Each pixel of the amplitude matrix denotes the amount of modulated light which is reflected by the appropriate object (i.e. the light from the camera's active illumination). Higher values indicate higher PMD signal strengths and thus a lower amount of noise on the corresponding distance measurements. The amplitude value is directly derived from the PMD phase measurements without normalisation to exposure time.

Page 50: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

50

Constant Value Description

CARTESIAN_X_COMPONENT

200 The X matrix denotes the X component of the Cartesian coordinate of a PMD 3D measurement. The origin of the camera's coordinate system is in the middle of the lens' front glass, if the extrinsic parameters are all set to 0.Data type: 16-bit signed integerUnit: millimetres

CARTESIAN_Y_COMPONENT

201 The Y matrix denotes the Y component of the Cartesian coordinate of a PMD 3D measurement. The origin of the camera's coordinate system is in the middle of the lens' front glass, if the extrinsic parameters are all set to 0.Data type: 16-bit signed integerUnit: millimetres

CARTESIAN_Z_COMPONENT

202 The Z matrix denotes the Z component of the Cartesian coordinate of a PMD 3D measurement. The origin of the camera's coordinate system is in the middle of the lens' front glass, if the extrinsic parameters are all set to 0.Data type: 16-bit signed integerUnit: millimetres

CARTESIAN_ALL 203 CARTESIAN_X_COMPONENT, CARTESIAN_Y_COMPONENT, CARTESIAN_Z_COMPONENT

UNIT_VECTOR_ALL 223 The unit vector matrix contains 3 values [ex, ey, ez] for each PMD pixel, i.e. the data layout is [ex_1,ey_1,ez_1, ... ex_N, ey_N, ez_N], where N is the number of PMD pixels. Data type: 32-bit floating point number (3x per pixel)

CONFIDENCE_IMAGE 300 See Additional Information for Image Data (→ 13.1.4)DIAGNOSTIC 302 See Receiving Images (→ 13.1.2)JSON_DIAGNOSTIC 305 Items with JSON formatted diagnostic data is formated like this:

{

"AcquisitionDuration": 20.391,

"EvaluationDuration": 37.728,

"FrameDuration": 37.728,

"FrameRate": 15.202,

"TemperatureIllu": 52.9

}

Unit for durations: millimetresUnit for framerates: HzUnit for temperature: °C

Page 51: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

51

3D 센서

KR

Constant Value Description

EXTRINSIC_CALIB 400 The transformation from one cartesian coordinate system to another is defined by a 6 degrees of freedom vector (DOF): [trans_x, trans_y, trans_z, rot_x, rot_y, rot_z]. Let R be the product of the common "clockwise" 3D-rotation matrices: R = Rx*Ry*RzThe transformation of a point P is specified by P_t = R*P + [trans_x, trans_y, trans_z]'.The device extrinisic calibration can be set by the user, but it may be changed by an automatic calibration feature of the device.Data type: 32-bit floating point number (little endian)Unit for trans_x, trans_y, trans_z: millimetresUnit for rot_x, rot_y, rot_z: °

JSON_MODEL 500 Model data in JSONMODEL_ROIMASK 501 ROI mask for internal debugging purposesSNAPSHOT_IMAGE 600 Snapshot image

Pixel format:

Constant Value Description

FORMAT_8U 0 8-bit unsigned integerFORMAT_8S 1 8-bit signed integerFORMAT_16U 2 16-bit unsigned integerFORMAT_16S 3 16-bit signed integerFORMAT_32U 4 32-bit unsigned integerFORMAT_32S 5 32-bit signed integerFORMAT_32F 6 32-bit floating point numberFORMAT_64U 7 64-bit unsigned integerFORMAT_64F 8 64-bit floating point numberReserved 9 N/AFORMAT_32F_3 10 Vector with 3x32-bit floating point number

Page 52: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

52

13.1.4 Additional Information for CONFIDENCE_IMAGEFurther information for the confidence image:

Bit 값 Description

0 1 = pixel invalid Pixel invalidThe pixel is invalid. To determine whether a pixel is valid or not only this bit needs to be checked. The reason why the bit is invalid is recorded in the other confidence bits.

1 1 = pixel saturated Pixel is saturatedContributes to pixel validity: yes

2 1 = bad A-B symmetry A-B pixel symmetryThe A-B symmetry value of the four phase measurements is above threshold.Remark: This symmetry value is used to detect motion artefacts. Noise (e.g. due to strong ambient light or very short integration times) or PMD interference may also contribute.Contributes to pixel validity: yes

3 1 = amplitude below minimum amplitude threshold

Amplitude limitsThe amplitude value is below minimum amplitude threshold.Contributes to pixel validity: yes

4+5 Bit 5, bit 40 0 = unused0 1 = shortest exposure time (only used in 3 exposure mode)1 0 = middle exposure time in 3 exposure mode, short exposure in double exposure mode1 1 = longest exposure time (always 1 in single exposure mode)

Exposure time indicatorThe two bits indicate which exposure time was used in a multiple exposure measurement.Contributes to pixel validity: no

6 1 = pixel is clipped Clipping box on 3D dataIf clipping is active this bit indicates that the pixel coordinates are outside the defined volume.Contributes to pixel validity: yes

7 1 = suspect/defective pixel Suspect pixelThis pixel has been marked as "suspect" or "defective" and values have been replaced by interpolated values from the surroundings.Contributes to pixel validity: no

Page 53: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

53

3D 센서

KR

13.1.5 Configuration of PCIC OutputThe user has the possibility to define his own PCIC output. This configuration is only valid for the current PCIC connection. It does not affect any other connection and will get lost after disconnecting.For configuring the PCIC output a “flexible” layouter concept is used, represented by a JSON string. The format of the default configuration is as follows:{

"layouter": "flexible",

"format": { "dataencoding": "ascii" },

"elements": [

{ "type": "string", "value": "star", "id": "start_string" },

{ "type": "blob", "id": "normalized_amplitude_image" },

{ "type": "blob", "id": "x_image" },

{ "type": "blob", "id": "y_image" },

{ "type": "blob", "id": "z_image" },

{ "type": "blob", "id": "confidence_image" },

{ "type": "blob", "id": "diagnostic_data" },

{ "type": "string", "value": "stop", "id": "end_string" }

]

}

This string can be retrieved by the C? command, altered and sent back using the c command.The layout software has the following main object properties:

Name Description Details

layouter Defines the basic data output format. So far only “flexible” is supported

Type: string

format Defines format details, the definitions in the main object are the defaults for any of the following data elements (e.g. if it says dataencoding=binary, all data elements should be binary encoded instead of ASCII).

Type: object

elements List of data elements which must be written. Type: array of objects

The actual data is defined within the “elements” properties and may consist of these settings:

Name Description Details

type Defines the type of data which must be written.The data might be stored in a different type (e.g. stored as integer but should be output as Float32)The type "records" will need some special handling.

Type: string

id Defines an identifier for this data element.If there is no fixed value (property "value"), the data should be retrieved via id.

Type: string

value Optional property for defining a fixed output value. Type: any JSON valueformat Type-depending option for fine-tuning the output format.

E.g. cut an integer to less than 4 bytes.Type: object

Page 54: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

54

Available values for the type property:

Type Description

records Defines that this element represents a list of records.If type is set to "records", there must be an "elements" property.The "elements" property defines which data should be written per record.

string Data is written as string.Most of the time this will be used with "value" property to write fixed start, end or delimiter text.Text encoding should be UTF8 if there is nothing else specified in format properties.

float32 Data is written as floating point number.This has a lot of formatting options (at least with "flexible" layout software)See following section about format properties.

uint32 Data is written as integer.This has a lot of formatting options (at least with "flexible" layout software)See following section about format properties.

int32 Data is written as integer.This has a lot of formatting options (at least with "flexible" layout software)See following section about format properties.

uint16 Limits the output to two bytes in binary encoding, besides the binary limitation it acts like uint32.

int16 Limits the output to two bytes in binary encoding, besides the binary limitation it acts like int32.

uint8 Limits the output to one byte in binary encoding, besides the binary limitation it acts like uint32.

int8 Limits the output to one byte in binary encoding, besides the binary limitation it acts like int32.

blob Data is written as a BLOB (byte by byte as if it came from the data provider).(Binary Large Object)

Depending on the desired data format the user may tune his output data with further “format” properties.

Common format properties:

Format properties Allowed values Default

dataencoding "ascii" or "binary" can be defined in top-level-object and overwritten by element objects.

"ascii"

scale "float value with decimal separator" to scale the results for output byte width

1.0

offset "float value with decimal separator" 0.0

Binary format properties:

Format properties Allowed values Default

order Little, big and network Little

Page 55: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

55

3D 센서

KR

ASCII format properties:

Format properties Allowed values Default

width Output width. If the resulting value exceeds the width field the result will not be truncated.

0

fill Fill character " "precision Precision is the number of digits behind the decimalseparator. 6 displayformat Fixed, scientific Fixedalignment Left, right Rightdecimalseparator 7-bit characters for e.g. "." "."base Defines if the output should be:

● binary (2) ● octal (8) ● decimal (10) ● hexadecimal (16)

10

Example of a format configuration of the temperature (id: temp_illu) element.1. Illumination temperature like this "33,5___":c000000226{ "layouter": "flexible", "format": { "dataencoding": "ascii" }, "elements": [ { "type": "float32", "id": "temp_illu", "format": { "width": 7, "precision": 1, "fill": "_", "alignment": "left", "decimalseparator": "," } } ] }

2. Illumination temperature as binary (16-bit integer, 1/10 °C):c000000194{ "layouter": "flexible", "format": { "dataencoding": "ascii" }, "elements": [ { "type": "int16", "id": "temp_illu", "format": { "dataencoding": "binary", "order": "network", "scale": 10 } } ] }

3. Illumination temperature in °F (e.g. "92.3 Fahrenheit" ):c000000227{ "layouter": "flexible", "format": { "dataencoding": "ascii" }, "elements": [ { "type": "float32", "id": "temp_illu", "format": { "precision": 1, "scale": 1.8, "offset": 32 } }, { "type": "string", "value": " Fahrenheit" } ] }

Page 56: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

56

The following element IDs are available:

ID Description Native data type

activeapp_id Active application, shows which of the 32 application-configurations is currently active

32-bit unsigned integer

all_cartesian_vector_matrices

All Cartesian images (X+Y+Z) concatenated to one package

16-bit signed integer

all_unit_vector_matrices Matrix of unit vectors. Each element consists of a 3 component vector [e_x, e_y, e_z]

Float32

amplitude_image PMD raw amplitude image 16-bit unsigned integer

confidence_image Confidence image 8-bit unsigned integer

distance_image Radial distance image 16-bit unsigned integer unit: millimetres

evaltime Evaluation time for current frame in milliseconds 32-bit unsigned integer

extrinsic_calibration Extrinsic calibration, constisting of 3 translation parameters (unit: millimeters) and 3 angles (unit: degree): [t_x, t_y, t_z, alpha_x, alpha_y, alpha_z]

Float32

framerate Current frame rate in Hz Float32normalized_amplitude_image

Normalized amplitude image 16-bit unsigned integer

temp_front1 Invalid temperature, the output is 3276.7 Float32, unit: °Ctemp_illu Temperature measured in the device while capturing this

resultMeasured on the illumination board

Float32, unit: °C

x_image y_image z_image

Cartesian coordinates for each pixel Each dimension is a separate image

16-bit signed integer

Page 57: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

57

3D 센서

KR

For completeness, level, distance and dimensioning application the following IDs are available:

ID Description Native data type

id ID of the model int32rois.count Number of records in "roi" int32rois List of all ROIs (ROIgroup) of this model recordsSP1SP2

SwitchingPoint1 and 2 if the model is a Level- or Distance-type. If it is not a Level-/Distance-type, it shall output a null-value.

float32

boxFoundlengthwidthheight qualityLengthqualityWidth qualityHeight xMidTop yMidTopzMidTopyawAnglebackgroundPlaneDistance

These results are available for a dimensioning application. If the model is not oft the type dimensioning, the IDs shall output a null-value.

int8floatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloat

numGood numUnderSP1numOverSP2numInvalidallROIsGoodanchorFoundhasAnchorTracking

These results are available for a completeness, level and distance applications. If the model is not oft one of these types, the IDs shall output a null-value.

intintintintboolboolbool

For ROIs of completeness, level or distance application the following IDs are available:

ID Description Native data type

id unique ID of the ROI within the Model int32procval per ROI process value float 32Bitstate per ROI state ( if ROI procval is valid or not)

• ROI_PROCESS_VALUE_VALID = 0• ROI_PROCESS_VALUE_REFIMAGE_SET_NOT_TEACHED = 1• ROI_PROCESS_VALUE_TEACHING_FAILED = 2• ROI_PROCESS_VALUE_REFIMAGE_INVALID = 3• ROI_PROCESS_VALUE_NO_VALID_PIXEL = 4• ROI_PROCESS_VALUE_REFIMAGE_NO_VALID_PIXEL = 5• ROI_PROCESS_VALUE_OVERFILL = 6• ROI_PROCESS_VALUE_UNDERFILL = 7

uint32

quality 0..1 float32

Page 58: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

58

For the main object on devices with statistics feature the following IDs are available:

ID Description Native data type

statistics_overall_count Allows the user to output the statistics value with the result of the frame, maps to ModelResults:adv_statistics.number_of_frames

uint32

statistics_passed_count Allows the user to output the statistics value with the result of the frame, maps to ModelResults:adv_statistics.number_of_passed_frames

uint32

statistics_failed_count Allows the user to output the statistics value with the result of the frame, maps to ModelResults:adv_statistics.number_of_failed_frames

uint32

statistics_aborted_count Allows the user to output the statistics value with the result of the frame, maps to ModelResults:adv_statistics.number_of_aborted_frames

uint32

statistics_acquisition_time_min Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_acquisition.min

float32

statistics_acquisition_time_mean Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_acquisition.mean

float32

statistics_acquisition_time_max Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_acquisition.max

float32

statistics_evaluation_time_min Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_evaluation.min

float32

statistics_evaluation_time_mean Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_evaluation.mean

float32

statistics_evaluation_time_max Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_evaluation.max

float32

statistics_frame_duration_min Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_duration.min

float32

statistics_frame_duration_mean Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_duration.mean

float32

statistics_frame_duration_max Allows the user to output the statistics value with the result of the frame,maps to ModelResults:adv_statistics.frame_duration.max

float32

Page 59: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

59

3D 센서

KR

For model records of type "DimensioningV2" (Robot Pick & Place) the following IDs are available:Length values are given in unit [m].Rotation values are given in unit [°].

ID Description Native data type

numberOfObjects Number of found objects. uint32numberOfObjectCandidates Number of found object candidates that have been

inspected.uint32

error Dimensioning error: 0: no error 1: undefined error 2: no object found

uint32

maximumNumberOfObjectsTo Measure

Maximum number of objects to measure. uint32

objectGeometry Geometry type of object: 0: Box 1: Circle 2: Ellipse

uint32

objects[maximumNumberOfObjectsToMeasure] { objectFound length width height xMidTop

yMidTop

zMidTop

yawAngle

circleThickness centerPointX

centerPointY

centerPointZ

rotationX rotationY rotationZ}

This structure is provided for each object defined by maximumNumberOfObjectsToMeasure. If not all objects have been found, the values are also provided for the number of missing objects.Object can be successfully measured (0 if false, 1 if true).Object length is the longest dimension of the object.Object width is the shortest dimension of the object.Object height is the object height relative to the ground plane.Cartesian X coordinates of middle point on the top surface of the detected object.Cartesian Y coordinates of middle point on the top surface of the detected object.Cartesian Z coordinates of middle point on the top surface of the detected object.Yaw angle is defined as the angle between the world coordinate x-axis and the vector along the object "length".The thickness of the circle.X coordinate of the top center point from the detected object (user frame coordinate system).Y coordinate of the top center point from the detected object (user frame coordinate system).Z coordinate of the top center point from the detected object (user frame coordinate system).X rotation of the detected object (user frame coordinate system).Y rotation of the detected object (user frame coordinate system).Z rotation of the detected object (user frame coordinate system).

uint32float32float32float32float32

float32

float32

float32

float32float32

float32

float32

float32float32float32

Page 60: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

60

ID Description Native data type

boxFoundlengthwidthheightxMidTop

yMidTop

zMidTop

yawAngle

circleThicknesscenterPointX

centerPointY

centerPointZ

rotationXrotationYrotationZ

For compatibility reasons the following values are provided for the first detected object.Object can be successfully measured (0 if false, 1 if true).Object length is the longest dimension of the object.Object width is the shortest dimension of the object.Object height is the object height relative to the ground plane.Cartesian X coordinates of middle point on the top surface of the detected object.Cartesian Y coordinates of middle point on the top surface of the detected object.Cartesian Z coordinates of middle point on the top surface of the detected object.Yaw angle is defined as the angle between the world coordinate x-axis and the vector along the object "length".The thickness of the circle.X coordinate of the top center point from the detected object (user frame coordinate system).Y coordinate of the top center point from the detected object (user frame coordinate system).Z coordinate of the top center point from the detected object (user frame coordinate system).X rotation of the detected object (user frame coordinate system).Y rotation of the detected object (user frame coordinate system).Z rotation of the detected object (user frame coordinate system).

uint32float32float32float32float32

float32

float32

float32

float32float32

float32

float32

float32float32float32

backgroundPlaneDistanceobjectType

Distance of the background at background teach.Type of the detected object: 1: box 2: true bounding box 3: circle 4: enclosing circle 5: ellipse 6: enclosing ellipse

float32uint32

UFCThreeMarkerTeach["A"..."C"]{ x y}

Coordinates of the available UFC markers.

float32float32

Page 61: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

61

3D 센서

KR

For model records of type "Depalletizing" the following IDs are available:Length values are given in unit [m].Rotation values are given in unit [°].

ID Description Native data type

error Errors in the algorithm: Value Name Description

0 Depalletizing_Error_None No error detected.

1 Depalletizing_Error_Unknown Unknown error detected.

2 Depalletizing_Error_UnexpectedObject

Unexpected object detected.

3 Depalletizing_Error_StackEmpty Stack is empty.

4 Depalletizing_Error_NoObjectSizes No box dimensions provided on the input.

5 Depalletizing_Error_NoObjectMatch No matching object found.

6 Depalletizing_Error_DataInvalid Too many pixels are invalid.

7 Depalletizing_Error_Background TeachingStatus_ErrorNot EnoughValidPixels

Background estimation only: not enough valid pixels.

8 Depalletizing_Error_Background TeachingStatus_ErrorStdTooHigh

Background estimation only: standard deviation too high.

9 Depalletizing_Error_Background TeachingStatus_ErrorPlaneFitFailed

Background estimation only: estimation of the plane failed.

10 Depalletizing_Error_Background TeachingStatus_ErrorPlane AngleTooHigh

Background estimation only: plane angle too high.

11 Depalletizing_Error_Background TeachingStatus_ErrorRotation CalculationFailed

Background estimation only: internal numerical error in calculation of rotation.

12 Depalletizing_Error_InvalidReferenceTeach

Invalid background teach.

13 Depalletizing_Error_InvalidVOITeach

Invalid VOI teach.

14 Depalletizing_Error_Insufficient MarginToImageBorder

Not enough space between segmented layer and image border.

15 Depalletizing_Error_IncorrectObjectSizes

Provided box dimensions are invalid.

16 Depalletizing_Error_Underfill Measurements are below the background level.

uint32

objectFound Object can be successfully measured (0 if false, 1 if true). uint32objectQuality Quality of the object detection between 0 and 100. float32objectLength Object length is the longest dimension of the top surface of the object. float32objectWidth Object width is the shortest dimension of the top surface of the object. float32objectHeight Object height is the object height relative to the ground plane. float32centerPointX X coordinate of the top center point from the detected object (user frame

coordinate system).float32

centerPointY Y coordinate of the top center point from the detected object (user frame coordinate system).

float32

centerPointZ Z coordinate of the top center point from the detected object (user frame coordinate system).

float32

rotationX X rotation of the detected object (user frame coordinate system). float32rotationY Y rotation of the detected object (user frame coordinate system). float32rotationZ Z rotation of the detected object (user frame coordinate system). float32

Page 62: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

62

ID Description Native data type

layerLevel Current pallet layer for depalletization, starting with "0". An empty stack is indicated by "0".

uint32

sensorMount ingHeight

Recommended height of the sensor above the palette. Values "<=0": invalid input parameters (e.g. invalid palette dimensions).

float32

isSlipSheet A slipsheet is on top of the stack: 0: no 1: yes

uint32

background Plane Distance

Distance of the background plane in positive direction of the z-axis. float32

isCollision Free

Collision free depalletization: 0: false 1: true

uint32

centerPoint 2DX

The top center X coordinate of the detected box object (projected into the 2D image).

float32

centerPoint 2DY

The top center Y coordinate of the detected box object (projected into the 2D image).

float32

The following IDs can be changed with the f command (→ 13.2.6):

ID Name Description Values

0000000001 DepalSlipSheetDetection Depalletizing: slip sheet detection on/off

1/0

0000000002 DepalSlipObjectType Depalletizing: type of the object to be detected

0: box 1: bag

0000000003 DepalWidth Depalletizing: width of the objects to be detected

mm

0000000004 DepalHeight Depalletizing: length of the objects to be detected

mm

0000000005 DepalLength Depalletizing: heigth of the objects to be detected

mm

Page 63: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

63

3D 센서

KR

13.2 Process Interface Command ReferenceAll received messages which are sent because of the following commands will be sent without “start”/”stop” at the beginning or ending of the string.

13.2.1 a Command (activate application)

Command a<application number>

Description Activates the selected application

Type ActionReply *

! ● Application not available ● <application number>

contains wrong value ● External application switching

activated ● Device is in an invalid state

for this command, e.g. configuration mode

? Invalid command lengthNote <application number>

2 digits for the application number as decimal value

13.2.2 A? Command (occupancy of application list)

Command A?

Description Requests the occupancy of the application list

Type RequestReply <amount><t><number active

application><t>...<number><t><number>? Invalid command length! Invalid state (e.g. no application

active)Note <amount>

char string with 3 digits for the amount of applications saved on the device as decimal number<t>tabulator (0x09)<number active application>2 digits for the active application<number>2 digits for the application number

The active application is repeated within the application list.

Page 64: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

64

13.2.3 c Command (upload PCIC output configuration)

Command c<length><configuration>

Description Uploads a PCIC output configuration lasting this session

Type ActionReply *

! ● Error in configuration ● Wrong data length

? Invalid command lengthNote <length>

9 digits as decimal value for the data length<configuration>configuration data

13.2.4 C? Command (retrieve current PCIC configuration)

Command C?

Description Retrieves the current PCIC configuration

Type RequestReply <length><configuration>

? Invalid command lengthNote <length>

9 digits as decimal value for the data length<configuration>configuration data

13.2.5 E? Command (request current error state)

Command E?

Description Requests the current error stateType RequestReply <code>

! Invalid state (e.g. configuration mode)? Invalid command length

Note ● <code> Error code with 8 digits as a decimal value. It contains leading zeros.

Page 65: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

65

3D 센서

KR

13.2.6 f Command (set temporary application parameter)

Command f<Parameter-ID> <reserved><value>

Description Set temporary application parameter<Parameter-id> Id of parameter to be set

Fixed 5 bytes decimal ASCII padded with "0", e.g. "00003".

<reserved> Fixed to "#00000"<value> Fixed 5 bytes signed decimal ASCII

padded with "0" and sign, e.g. "+00777"Type ActionReply * Parameter successfully set

! Parameter-id invalid or syntax error? Invalid command length

Note Example:f00003#00000+00777

Page 66: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

66

13.2.7 G? Command (request device information)

Command G?

Description Requests device informationType RequestReply <vendor><t><article number><t>

<name><t><location><t><description><t><ip><subnet mask><t><gateway><t><MAC><t><DHCP><t><port number>

Note ● <vendor> IFM ELECTRONIC

● <t> Tabulator (0x09)

● <article number> e.g. O3D300

● <name> UTF8 Unicode string

● <location> UTF8 Unicode string

● <description> UTF8 Unicode string

● <ip> IP address of the device as ASCII character sting e.g. 192.168.0.96

● <port number> port number of the XML-RPC

● <subnet mask> subnet mask of the device as ASCII e.g. 192.168.0.96

● <gateway> gateway of the device as ASCII e.g 192.168.0.96

● <MAC> MAC adress of the device as ASCII e.g. AA:AA:AA:AA:AA:AA

● <DHCP> ASCII string "0" for off and "1" for on

Page 67: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

67

3D 센서

KR

13.2.8 H? Command (return a list of available commands)

Command H?

Description Returns a list of available commands

Type RequestReply H? - show this list

t - execute TriggerT? - execute Trigger and wait for datao<io-id><io-state> - sets IO stateO<io-id>? - get IO state I<image-id>? - get last image of defined type A? - get application listp<state> - activate / deactivate data outputa<application number> - set active applicationE? - get last errorV? - get current protocol versionv<version> - sets protocol versionc<length of configuration file><configuration file> - configures process date formattingC? - show current configurationG? - show device informationS? - show statisticsL? - retrieves the connection IDf<id><reserved><value> - set parameter value

Page 68: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

68

13.2.9 I? Command (request last image taken)

Command I<image-ID>?

Description Request last image takenType RequestReply <length><image data>

! ● No image available ● Wrong ID

? ● Invalid command lengthNote <image-ID>

2 digits for the image type<length>char string with exactly 9 digits as decimal number for the image data size in bytes<image data>image data

Valid image ID:01 - amplitude image02 - normalised amplitude image03 - distance image04 - X image (distance information)05 - Y image (distance information)06 - Z image (distance information)07 - confidence image (status information)08 - extrinsic calibration09 - unit_vector_matrix_ex, ey,ez 10 - last result output as formatted for this connection11 - all distance images: X, Y, and Z

13.2.10 o Command (set logic state of a ID)

Command o<IO-ID><IO-state>

Description Sets the logic state of a specific IDType ActionReply *

! Invalid state (e.g. configuration mode)? Invalid command length

Note ● <IO-ID> 2 digits for digital output: "01" for IO1 "02" for IO2 "03" for IO3

● <IO-state> 1 digit for the state: "0" for logic state low "1" for logic state high

Page 69: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

69

3D 센서

KR

13.2.11 O? Command (request state of a ID)

Command O<IO-ID>?

Description Requests the state of a specific IDType RequestReply <IO-ID><IO-state>

! ● Invalid state (e.g. configuration mode)

● Wrong ID? Invalid command length

Note ● <IO-ID> 2 digits for digital output: "01" for IO1 "02" for IO2 "03" for IO3

● <IO-state> 1 digit for the state: "0" for logic state low "1" for logic state high

The camera supports ID 1 and ID 2.The sensor supports ID 1, ID 2 and ID 3.

13.2.12 p Command (turn PCIC output on or off)

Command p<state>

Description Turns the PCIC output on or offType ActionReply *

! <state> contains wrong value? Invalid command length

Note <state> 1 digit0: deactivates all asynchronous output1: activates asynchronous result output2: activates asynchronous error output3: activates asynchronous error and data output4: activates asynchronous notifications5: activates asynchronous notifications and asynchronous result6: activates asynchronous notifications and asynchronous error output7: activates all outputs

On device restart the value configured within the application is essential for the output of data.This command can be executed in any device state.By default the error codes will not be provided by the device.

Page 70: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

70

13.2.13 S? Command (request current decoding statistics)

Command S?

Description Requests current decoding statistics

Type RequestReply <number of

results><t><number of positive decodings><t><number of false decodings>! No application active

Note <t>tabulator (0x09)<number of results>Images taken since application start. 10 digits decimal value with leading 0s<number of positive decodings>Number of decodings leading to a positive result. 10 digits decimal value with leading 0s<number of false decodings> Number of decodings leading to a negative result. 10 digits decimal value with leading 0s

13.2.14 t Command (execute asynchronous trigger)

Command t

Description Executes trigger. The result data is send asynchronouslyType ActionReply * Trigger was executed, the

device captures an image and evaluates the result.

! ● Device is busy with an evaluation

● Device is in an invalid state for this command, e.g. configuration mode

● Device is set to a different trigger source

● No active application

Page 71: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

71

3D 센서

KR

13.2.15 T? Command (execute synchronous trigger)

Command T?

Description Executes trigger. The result data is send synchronouslyType RequestReply Process data within the configured layout Trigger was executed, the

device captures an image, evaluates the result and sends the process data.

! ● Device is busy with an evaluation

● Device is in an invalid state for this command, e.g. configuration mode

● Device is set to a different trigger source

● No active applicationNote Result data can be sent via EtherNet/IP, PROFINET or TCP/

IP (→ 9.3).

13.2.16 v Command (set current protocol version)

Command v<version>

Description Sets the current protocol version. The device configuration is not affected

Type ActionReply *

! Invalid version? Invalid command length

Note <version>2 digits for the protocol version

(→ 13.1.1)

The default protocol version is „V3“.

13.2.17 V? Command (request current protocol version)

Command V?

Description Requests current protocol version

Type RequestReply <current version><empty><min

version><empty><max version>Note <current version>

2 digits for the currently set version<empty>space sign: 0x20<min/max version>2 digits for the available min and max version that can be set

Page 72: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

72

13.3 Error codesBy default the error codes will not be provided by the device. The p command can activate their provision (→ 13.2.12).

Error code ID Description

100000001 Maximum number of connections exceeded 110001001 Boot timeout110001002 Fatal software error110001003 Unknown hardware110001006 Trigger overrun110002000 Short circuit on Ready for Trigger110002001 Short circuit on OUT1110002002 Short circuit on OUT2110002003 Reverse feeding110003000 Vled overvoltage110003001 Vled undervoltage110003002 Vmod overvoltage110003003 Vmod undervoltage110003004 Mainboard overvoltage110003005 Mainboard undervoltage110003006 Supply overvoltage110003007 Supply undervoltage110003008 VFEMon alarm110003009 PMIC supply alarm110004000 Illumination overtemperature

Page 73: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

73

3D 센서

KR

13.4 EtherNet/IP

13.4.1 Data structures for consuming and producing assembliesAssemblies

Instance Bytes Type

100 8 Consuming (from device point of view: databuffer for receiving from PLC)101 450 Producing (from device point of view: databuffer for sending to PLC)

Consuming assembly data layout

Byte 0-1 2-7

Description Command word Command data

Layout of producing assembly

Byte 0-1 2-3 4-5 6-7 8-15 16-449

Description Command word for mirroring

Synchronous / asynchronous message identifier

Message counter

Reserved Mandatory message data (e.g. error code)

Non mandatory data fields

Layout of command word

Bit 0 1-15

Description Error bitThis bit has no meaning in the consuming assembly. It is used for signaling an occured error to the PLC

Command bitsEach bit represents a specific command

Command word

Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Des

crip

tion

Erro

r bit

N.a

.

N.a

.

N.a

.

N.a

.

N.a

.

Get

last

erro

r

Get

con

nect

ion

ID

Get

sta

tistic

s

Activ

ate

appl

icat

ion

Get

app

licat

ion

list

Get

IO s

tate

Set I

O s

tate

Exec

ute

sync

hron

ous

trigg

erAc

tivat

e as

ynch

rono

us

PCIC

out

put

Use

exte

nded

co

mm

and

Synchronous / asynchronous message identifier

Bit 0 1-15

Description Asynchronous message bit Bits for asynchrounous message identifier

Data to send exceeds processing assembly data section sizeIf the size of the data exceeds the size of the configured processing assembly data section size, the data is truncated. No error is risen.

Page 74: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

74

13.4.2 Functionality of the Ethernet/IP applicationThe chapter describes the initialization of assembly buffers.

On initialization all buffers are set to 0.

State change 0 -> 1 of a command bit in consuming assemblyIf the state of one command bit switches from 0 to 1, the according command is executed passing the information within the command data section.

Multiple state changesIf multiple bits have a transition from 0 -> 1 the event is handled as an error.

Reset of command bit state by PLCThe PLC has to reset the command bit from 1 -> 0 before it can execute a new command again. The device has to reset the command word and increase the message counter within the producing assembly.

Blocking of asynchronous messagesAs long as the command handshake procedure has not been finished, no asynchronous message is allowed to be sent via the Ethernet/IP interface.

Client disconnectIf the client is disconnecting before finishing the handshake procedure, the handshake procedure is canceled and all buffers are reset.

General reply to an implemented commandIf the command is implemented, the data in the data section is applicable and the execution of the command does not lead to an error. The producing assembly is filled as follows:

● Error bit = 0 ● Command bits = mirror of the command within the consuming assembly ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1 ● Message data set to 0

Page 75: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

75

3D 센서

KR

Reply to an implemented command - reply contains specific dataIf the command is implemented, the data in the data section is applicable and the execution of the command does not lead to an error. The producing assembly is filled as follows:

● Error bit = 0 ● Command bits = mirror of the command within the consuming assembly ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1 ● Message data set according to the command definition

Reply to an implemented command with error in data sectionIf the content of the data section is not suitable to the command, the message is handled as an error. The producing assembly contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the consuming assembly ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command.

Reply to an implemented command that leads to an errorIf the execution of the command leads to an error, the producing assembly contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the consuming assembly ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command.

Reply to a not implemented commandIf a command bit with no functionality is received, it undergoes a transition from 0 -> 1 and the message is handled as an error. The producing assembly contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the consuming assembly ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command.

Page 76: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

76

Reset of error bitThe error bit will be resetted to 0, if

● the error code caused by an command is retrieved from the client ● a system error is not present anymore.

Functionality of asynchronous message bitIf the message contain asynchronous data (frame results, system errors, etc.), the asynchronous message bit must be set to 1.

Bits for asynchronous message identifierIf the message contains asynchronous data, the identifier represents the asynchronous message type.The ticket number for asynchronous results is 0.The ticket number for asynchronous error codes is 1.

Message counterFor each message sent via the producing assembly, the message counter is increased. The counter starts with the value 1. If the maximum counter is reached, it starts with 1 again.

Get last errorThis command is used to reset the error bit.

Get connection IDThis command retrieves the connection ID of the current Ethernet/IP connection. The content of the producing assembly mandatory data section is:

● Bytes 0-3: connection ID, 32 bit unsigned integer

Page 77: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

77

3D 센서

KR

Get statisticsThis command retrieves the current statistics. The content of the producing assembly mandatory data section is:

● Bytes 0-3: total readings since application start ● Bytes 4-7: passed readings ● Bytes 8-11: failed readings

All values are 32 bit unsigned integers.

Default endiannessThe default endianness is in little-endian format.

Activate applicationThis command activates the application defined by the bytes 6 and 7 of the consuming assembly data section. The bytes 2-5 have to be set to 0. An error is risen if bytes 2-5 are not set to 0.The data content of the processing assembly is set to 0.

Get application listThis command retrieves the current configuration list. The content of the producing assembly mandatory data section is:

● Bytes 0-3: total number of saved applications, 32 bit unsigned integer ● Bytes 4-7: number of active application, 32 bit unsigned integer ● Bytes 8-n: always a 32 bit unsigned integer for an application number in use

Get IO stateRetrieves the logic state of the given IO identifier. Bytes 4 and 5 of the consuming assembly data section defines the IO ID as a 16 bit unsigned integer value:

● 1 -> IO1 ● 2 -> IO2 ● 3 -> IO3

The bytes 2-3 and 6-7 have to be set to 0. An error is risen if bytes 2-3 or 6-7 are not set to 0.The data content of the processing assembly is:

● Bytes 0-3: logic state of the IO, 1 for high, 0 for low, 32 bit unsigned integer

Set IO stateThis command sets the given state of the given IO. Bytes 4 and 5 of the consuming assembly data section defines the IO ID as a 16 bit unsigned integer value:

● 1 -> IO1 ● 2 -> IO2 ● 3 -> IO3

The bytes 6 and 7 define the logic state of the IO as 16 bit unsigned integer value.The bytes 2-3 have to be set to 0. An error is risen if bytes 2-3 are not set to 0.The data content of the processing assembly is set to 0.

Page 78: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

78

Execute synchronous triggerThis command executes a synchronous trigger. The content of the producing assembly data section depends on the user defined PCIC output for Ethernet/IP.

Activate asynchronous PCIC outputThis command activates or deactivates the asynchronous PCIC output for this connection. The bytes 6 and 7 of the consuming assembly data section define the on/off state as a 16 bit unsigned integer value:

● 0 = off ● 1 = on

The bytes 2-5 have to be set to 0. An error is risen if bytes 2-5 are not set to 0.The data content of the processing assembly is set to 0.For the Ethernet/IP interface the user shall only be able to select the binary representation of result data.

13.4.3 Extended commandsUse of extended commandThe following command executes an extended command. The ID of the extended command is stored as 16 bit integer in bytes 2-3. The remaining data depends on the extended command.

ID Description

1 Set temporary application parameterThe ID of the parameter to be changed is stored as unsigned 16 bit integer in bytes 4-5. The value of the parameter is stored as signed 16 bit integer in bytes 6-7.

Use of extended command with the depalletising application

Byte 1 (Bit 7) 2-3 4-5 6-7

Description Use extended commandhigh / low

Extended command ID1 = set temporary application parameter

Parameter ID1 = DepalSlipSheetDetection2 = Type of the object to detect3 = DepalWidth4 = DepalHeight5 = DepalLength

Parameter value1 = on / 0 = off1 = bag / 0 = boxvalue [mm]value [mm]value [mm]

Page 79: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

79

3D 센서

KR

13.4.4 Signal sequence with synchronous trigger

Mirror Bit „Exec. sync. trigger“

Command Bit „Exec. sync. trigger“

Mirror Bit „Error“

Message counter n n+1 n+2

Data 0x0000 Result Data 0x0000

Processing time

13.4.5 Signal sequence with failed trigger

Mirror Bit „Exec. sync. trigger“

Command Bit „Exec. sync. trigger“

Mirror Bit „Error“

Message counter n n+1 n+2

Data 0x0000 Error Code 0x0000

Processing time

Command Bit „Get last error“

Mirror Bit „Get last error“

n+3 n+4

Page 80: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

80

13.5 PROFINET IO

13.5.1 Data structures for output and input frameSize of output frameEvery output frame sent by the controller contains 8 bytes of data, which consists of command word and command data.Size of input frameEvery Input frame contains 16 - 450 bytes of data, which are generated by the device in response to the commands received in the output frames. The size of non mandatory data is adjustable by changing the size of the input data in the GSDML file.

Byte 0-1 2-3 4-5 6-7 8-15 16-449

Description Command word for mirroring

Synchronous / asynchronous message identifier

Message counter

Reserved Mandatory data

Non mandatory data

Layout of command word

Bit 0 1-15

Description Error bitThis bit has no meaning in the consuming assembly. It is used for signaling an occured error to the PLC

Command bitsEach bit represents a specific command

Command word

Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Des

crip

tion

Erro

r bit

N.a

.

N.a

.

N.a

.

N.a

.

N.a

.

Get

last

erro

r

Get

con

nect

ion

ID

Get

sta

tistic

s

Activ

ate

appl

icat

ion

Get

app

licat

ion

list

Get

IO s

tate

Set I

O s

tate

Exec

ute

sync

hron

ous

trigg

erAc

tivat

e as

ynch

rono

us

PCIC

out

put

Use

exte

nded

co

mm

and

Synchronous / asynchronous identifier

Bit 0 1-15

Description Asynchronous message bit Bits for asynchrounous message identifier

13.5.2 Functionality of PROFINET IO applicationThis section describes how to handle the commands sent by the controller. The PLC sends the commands to the device in the output frames by setting the appropriate bit in the command word. The current value of the command word and command data is obtained from the output module by the application.After detecting that one of the command bits changed the state from 0 to 1, the PROFINET application executes the corresponding command and sets the response in the input frames.Number of supported PROFINET connectionsThe O3D3xx running a PROFINET application supports one connection with a single controller.

Page 81: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

81

3D 센서

KR

Initialisation of input and output buffersAfter the connection is established, the input and output buffers are initialised with 0 s.

Command execution triggeringAs soon as the command bit in the output frame changes from 0 to 1, the corresponding command will be executed.

Handling of multiple command bitsIf more than one command bit is set to 1, an error will be reported.

Command execution completionThe PLC has to reset the command bit from 1 to 0 before a new command can be executed. The device has to reset the command word and increase the message counter within the input frame. Mandatory and non mandatory data in the response frame is set to 0x0.

Blocking of asynchronous messagesAs long as the command handshake procedure has not been finished, no asynchronous message will be sent by the device.

Client disconnectIf the client is disconnecting before finishing the handshake procedure, the handshake procedure is canceled and all buffers are reset.

General reply to an implemented commandIf the command is implemented, the data in the data section is applicable and the execution of the command does not lead to an error. The input frame contains the following data:

● Error bit = 0 ● Command bits = mirror of the command within the output frame ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1 ● Message data set to 0

Reply to an implemented command - reply contains specific dataIf the command is implemented, the data in the data section is applicable and the execution of the command does not lead to an error. The input frame contains the following data:

● Error bit = 0 ● Command bits = mirror of the command within the output frame ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1 ● Message data set according to the command definition

Page 82: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

82

Reply to an implemented command with error in data sectionIf the content of the data section is not suitable to the command, the message is handled as an error. The input frame contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the output frame ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command. Mandatory and non mandatory data in the response frame will be set to 0x0.

Reply to an implemented command that leads to an errorIf the execution of the command leads to an error, the input frame contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the output frame ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command. Mandatory and non mandatory data in the response frame will be set to 0x0.

Reply to a not implemented commandIf a command bit with no functionality is received, it undergoes a transition from 0 -> 1 and the message is handled as an error. The input frame contains the following data:

● Error bit = 1 ● Command bits = mirror of the command within the output frame ● Asynchronous message bit = 0 ● Asynchronous message identifier = 0 ● Message counter increased by 1

No error code is sent in the data section. The error code is polled with the "get last error" command. Mandatory and non mandatory data in the response frame will be set to 0x0.

Reset of error bitThe error bit will be resetted to 0, if

● the error code caused by an command is sent to the controller ● a system error is not present anymore

Queuing of error codesThe Profinet application is able to buffer one system error (the last one) and one command error (also the last one). The buffered system error and PCIC command error will be cleared, after they are read by the PLC with the "get last error" command.

Page 83: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

83

3D 센서

KR

Functionality of asynchronous message bitIf the message contain asynchronous data (frame results, system errors, etc.), the asynchronous message bit must be set to 1.

Bits for asynchronous message identifierIf the message contains asynchronous data, the identifier represents the asynchronous message type:

● The ticket number for asynchronous results is 0 ● The ticket number for asynchronous error codes is 1 ● The reserved ticket numbers for asynchronous messages are in the range 0-99

Message counterFor each command response sent in the input frame the message counter is increased. The counter starts with value 1. If the maximum counter is reached, it starts with 1 again.

Get last errorThis command retrieves the current command and system error. The content of the mandatory data section sent in the input frame is:

● Bytes 0-3 : command error code, 32 bit unsigned integer ● Bytes 4-7: system error code, 32 bit unsigned integer

Get connection IDThis command retrieves the connection ID of the current Profinet connection. The response sent in the input frame contains 16 Bytes of the AR UUID.

Get statisticsThis command retrieves the current statistics. The content of the mandatory data section sent in the input frame is:

● Bytes 0-3: total readings since application start ● Bytes 4-7: passed readings ● Bytes 8-11: failed readings

All values are 32 bit unsigned integers.

Default endiannessThe default endianness is in little-endian format.

Activate applicationThis command activates the application defined by the bytes 6 and 7 of the output frame data section. The bytes 2-5 have to be set to 0. An error is risen if bytes 2-5 are not set to 0. The data content of the input frame is set to 0, after receiving the "Activate application" command.

Page 84: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

84

Get application listThis command retrieves the current configuration list. The content of the response sent in the input frame mandatory data section is:

● Byte 0-3: total number of saved applications, 32 bit unsigned integer ● Bytes 4-7: number of active application, 32 bit unsigned integer ● Bytes 8-n: always a 32 bit unsigned integer for an application number in use

Get IO stateRetrieves the logic state of the given IO identifier. Bytes 4 and 5 of the output frame data section defines the IO ID as a 16 bit unsigned integer value:

● 1 -> IO1 ● 2 -> IO2 ● 3 -> IO3

The bytes 2-3 and 6-7 have to be set to 0. An error is risen if bytes 2-3 or 6-7 are not set to 0.The data sent in the input frame is:

● Byte 0-3: logic state of the requested IO, 1 for high, 0 for low, 32 bit unsigned integer

Set IO stateThis command sets the given state of the given IO. Bytes 4 and 5 of the output frame data section defines the IO ID as a 16 bit unsigned integer value:

● 1 -> IO1 ● 2 -> IO2 ● 3 -> IO3

The bytes 6 and 7 define the logic state of the IO as 16 bit unsigned integer value.The bytes 2-3 have to be set to 0. An error is risen if bytes 2-3 are not set to 0.The data content of the input frame is set to 0, after receiving the "Set IO state" command.

Execute synchronous triggerThis command executes a synchronous trigger. The content of the input frame data section depends on the user defined PCIC output for PROFINET.

Activate asynchronous PCIC outputThis command activates or deactivates the asynchronous PCIC output for this connection. The bytes 6 and 7 of the output frame data section define the on/off state as a 16 bit unsigned integer value:

● 0 = off ● 1 = on

The bytes 2-5 have to be set to 0. An error is risen if bytes 2-5 are not set to 0.The data content of the input frame is set to 0, after receiving the "Activate asynchronous PCIC output" command.

Page 85: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

85

3D 센서

KR

13.5.3 Extended commandsUse of extended commandThe following command executes an extended command. The ID of the extended command is stored as 16 bit integer in bytes 2-3. The remaining data depends on the extended command.

ID Description

1 Set temporary application parameterThe ID of the parameter to be changed is stored as unsigned 16 bit integer in bytes 4-5. The value of the parameter is stored as signed 16 bit integer in bytes 6-7.

Use of extended command with the depalletising application

Byte 0 (Bit 7) 2-3 4-5 6-7

Description Use extended commandhigh / low

Extended command ID1 = set temporary application parameter

Parameter ID1 = DepalSlipSheetDetection2 = Type of the object to detect3 = DepalWidth4 = DepalHeight5 = DepalLength

Parameter value1 = on / 0 = off1 = bag / 0 = boxvalue [mm]value [mm]value [mm]

13.5.4 Signal sequence with synchronous trigger

Mirror Bit „Exec. sync. trigger“

Command Bit „Exec. sync. trigger“

Mirror Bit „Error“

Message counter n n+1 n+2

Data 0x0000 Result Data 0x0000

Processing time

Page 86: 사용설명서 3D 센서 - ifm레벨 측정 거리 모니터링 사각형 물체의 치수 측정 사각형 물체의 정렬 측정된 데이터와 프로세스 값은 이더넷을

3D 센서

86

13.5.5 Signal sequence with failed trigger

Mirror Bit „Exec. sync. trigger“

Command Bit „Exec. sync. trigger“

Mirror Bit „Error“

Message counter n n+1 n+2

Data 0x0000 Error Code 0x0000

Processing time

Command Bit „Get last error“

Mirror Bit „Get last error“

n+3 n+4