Object recognition sensor O2D22x
24
12 Process data protocol
The process interface ensures communication between the process PC (e .g . PLC)
and the device . A command from the process PC can for example activate trigger
pulses, select applications or provide application results .
12.1 Configuring the process interface
When the Ethernet interface is used, two protocols are available: TCP/IP and
EtherNet/IP . The protocol is selected and configured in the PC operating program .
For more detailed information about the configuration of the process interface we
refer you to the programming manual of the sensor .
www .ifm .com
→ data sheet search → O2D220 → Operating instructions
12.2 Communication basics
12.2.1 Abbreviations and terms
Abbreviation
Description
ASCII code (dec)
CR
Carriage Return
13
LF
Linefeed
10
< >
Marking of a placeholder (e .g . <code> is a placeholder for code)
[ ]
Optional argument (possible but not required)
12.2.2 Commands for the device
● 8-bit ASCII characters are allowed .
● All commands to the device are terminated with an LF character .
The device ignores all received CR characters .
● A command to the unit has to be transmitted within 5 s .
Otherwise the unit will cancel command recognition .
12.2.3 Replies from the device
● All replies by the device are terminated with an CR and an LF character .
● As a reply to a valid command the device provides the character string
* CR LF (ASCII 42 dec + 13 dec + 10 dec) .
● As a reply to an invalid command the device provides the character string
? CR LF (ASCII 63 dec + 13 dec + 10 dec) .
● If the device is busy, it provides the character string
! CR LF (ASCII 33 dec + 13 dec + 10 dec) as a reply .