3-1-10
Communicating with the Code Reader with EtherNet/IP Message
Serial commands can be executed using EtherNet/IP Message
(Explicit)
communication.
For more information on Serial commands, please refer to the following.
3-2-5 Controlling Operation from an External Device
Message Communication Objects have the following structure.
Item
Setting value
Class ID
104 (0x68 hex)
Instance ID
1
Attribute ID
1
Service code
69 (0x45 hex)
Command Setting Example
This example shows how to set Message communication command strings.
• For the data that is sent from the PLC to the code reader, set a serial command character string.
• When using K Commands there is no Response. In other words, there is no data to receive after
sending the command.
However, in the case of a Verify setting command like <K225?>, there is a Response so data will be
received after this command type is sent.
Example 1: The received data string when the data was sent using the
<K225,0>
command.
(Transmitted data) in 7 bytes 0x3C('<') 0x32('2') 0x32('2') 0x35('5') 0x2C(',') 0x30('0') 0x3E('>')
(Received data) None
Example 2: The received data string when the data was sent using the
<K225?>
command.
(Received data) in 6 bytes 0x3C('<') 0x32('2') 0x32('2') 0x35('5') 0x32('?')0x3E('>')
(Transmitted data) in 7 bytes 0x3C('<') 0x32('2') 0x32('2') 0x35('5') 0x2C(',') 0x30('0') 0x3E('>')
3 Controlling Operation and Data Output with Ethernet
3 - 28
V430-F Series Autofocus Multicode Reader User Manual for Communication Settings