The text of a manual · part 41 of 42
FIS-0870 Industrial Sweep Raster Scanner User's Manual: Utilities, pages 368 to 377
Pages 368 to 377 of 381, from FIS-0870 Industrial Sweep Raster Scanner User's Manual
The original document is the PDF (4.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Wenglor FIS-0870
Page 368
Appendices
Error Condition 2 HOST_TX ‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) SCANNER_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘LRC’ HOST_TX ‘Nothing’ (Host should ‘ACK’ here) timeout reached... SCANNER_TX ‘REQ’ (Unit requests an ‘ACK’ again) HOST_TX ‘NAK’ (Host rejects data frame) (Retry Event) SCANNER_TX ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘LRC’ (Unit sends again) HOST_TX ‘ACK’ (Host receives data) SCANNER_TX ‘RES’ (Terminate Transfer 1)
Error Condition 3 HOST_TX SCANNER_TX HOST_TX (Retry Event) SCANNER_TX HOST_TX SCANNER_TX
‘RES’ ‘0x1C’ ‘REQ’ (Poll Unit 1 for data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘BAD LRC’ ‘NAK’ (Host rejects bad LRC data) ‘0x1C’ ‘STX’ <T/00000> ‘ETX’ ‘GOOD LRC’ (Unit sends again) ‘ACK’ (Host receives data) ‘RES’ Terminate Transfer 1)
The protocol makes 3 retry attempts before data is flushed and transfer is aborted.
FIS-0870 Industrial Raster Scanner User’s Manual
A-81
Page 369
ASCII Table Dec 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
A-82
Hex 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F
Mne NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
Ctrl ^@ ^A ^B ^C ^D ^E ^F ^G ^H ^I ^J ^K ^L ^M ^N ^O ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ^Z ^[ ^\ ^] ^^ ^_
Dec 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
Hex 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F
Ch SP ! “ # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
Dec 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
Hex 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F
Ch @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _
Dec 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Hex 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
Ch ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ D
FIS-0870 Industrial Raster Scanner User’s Manual
Page 370
Appendices
Configuring Ethernet TCP/IP When using Ethernet to deploy FIS-0870s in an application, the host computer must be in the same IP range as the devices. Network settings are accessible in Windows from the Control Panel. The steps below show how TCP/IP settings can be configured. • From the Windows Start Menu, open Control Panel and double-click Network Connections.
• The Network Connections dialog will appear. Double-click the icon for the Local Area Connection being used in the application.
FIS-0870 Industrial Raster Scanner User’s Manual
A-83
Page 371
• The Local Area Connection Status dialog will appear. To check the host computer’s connection settings, click Details on the Support tab. To verify connection status: On the Support tab, click the Details button to bring up a list of Network Connection Details.
• A connected FIS-0870’s default address information can be verified in ESP by clicking the Search button in the Connection Wizard. Compare the scanner’s IP address to the host’s IP address to determine whether or not they are in the same subnet range (this can be determined by your I.T. department if you are unsure).
A-84
FIS-0870 Industrial Raster Scanner User’s Manual
Page 372
Appendices • To change the host computer’s connection settings, click Properties on the General tab. To change TCP/IP settings: On the General tab, click the Properties button to bring up a list of items being used by the current connection. On the Local Area Connection Properties dialog, double-click Internet Protocol (TCP-IP).
• The Internet Protocol (TCP/IP) Properties dialog will appear.
Select Use the following IP address to set the IP Address, Subnet, and Gateway.
FIS-0870 Industrial Raster Scanner User’s Manual
A-85
Page 373
Using EtherNet/IP This section describes the wenglor Serial Interface Object Model. Throughout this document, this port will referred to as the “EIP”.
Overview The EIP interface will be identified as a Generic Device (0x00). The interface is designed to support remote serial transmit and receive using explicit unconnected messaging.
Necessary Tools The following tools are necessary for configuring the EIP: • EtherNet/IP Messaging Tool – can be a PLC or Software Tool, must be capable of establishing an explicit messaging connection and sending the vendors-specific “Send_With_Response” explicit messages. • Terminal emulation or serial communication tool that can connect to a TCP socket, such as HyperTerminal. • ESP – wenglor’s Easy Setup Program. This tool has the ability to find wenglor products on the network, configure their ip address, then configure all application parameters.
EtherNet/IP Terms of Use EtherNet/IP Technology is governed by the Open DeviceNet Vendor Association, Inc (ODVA). Any person or entity that makes and sells products that implement EtherNet/IP Technology must agree to the Terms of Usage Agreement issued by ODVA. See www.odva.org for details.
Object Model The EIP has the following features: • Supports Explicit Messaging, UCMM, and Class 3 connection access to serial communication data. • Serial master command-response handling with one request. • Packing parameters available in each read request.
Device Type The EtherNet/IP device type is 0x00, Generic Device.
Vendor ID wenglor’s Vendor ID is 1095. A-86
FIS-0870 Industrial Raster Scanner User’s Manual
Page 374
Appendices
Service-Object Summary Service Code 0x45
Class ID 104 (0x68)
Instance ID 1
Attribute ID 106 (0x6A)
Description Serial Interface Get with Response
EtherNet/IP Serial Interface (Class 0x68) Data is sent and received through the Serial Interface using explicit messaging. “Send”, “Get”, and “Receive” are from the EIP master scanner perspective. That is “Send” is data transferred from the EIP master to the scanner. “Get” and “Receive” is data transferred from the scanner to the EIP master. The host should issue a vendor specific service Send_with_Response (0x45) to vendor specific Object Class 104 (0x68), Instance 1, Attribute 106 (0x6A). This service includes a 16 byte header that specifies parameters for control of the serial interface. Attribute ID (dec)
Access
Name
Data Type
106
Send with Response
Serial Interface
Struct. of: UINT UINT UINT USINT [3] USINT USINT USINT [5] USINT [0-470]
Description
Send length (0-470) Receive length (0-470) Receive timeout [ms] Reserved Receive Request Flags Receive Response Flags Reserved Serial Data
UINT = unsigned 16 integer USINT = unsigned 8 bit integer All UINTs are sent little endian with the least significant byte, or USINT, sent first, followed by the most significant byte.
FIS-0870 Industrial Raster Scanner User’s Manual
A-87
Page 375
Send Length This parameter specifies the length of the data sent from the EIP master scanner to the scanner. The maximum number of bytes that can be sent in one message is 470 bytes.
Receive Length This parameter specifies the largest amount of receive data the EIP master scanner host can accept from the scanner. The maximum number of bytes that can be received in one message is 470 bytes.
Receive Timeout This parameter specifies the longest amount of time in milliseconds (ms) the EIP master scanner host is willing to wait for a new message. A value of 0 is used for an immediate timeout. When the scanner responds to the EIP master scanner, the Receive Timeout indicates the number of ms that passed from the time the request was received to the when the response is sent. Caution: The time frame defined by this serial interface object field must be less than the unconnected message timeout. Caution: If the Receive Flag “Clear Before Receive” is used, see Receive Flags for proper operation.
Receive Request Flags The Receive Request Flags field gives the host additional controls over the serial input. Bit (0 = LSB) 0 1-7
Description Clear Before Receive, Clear the serial input queue before receiving new incoming data. Reserved
Flushing the input queue allows the EIP master to remove irrelevant data that was collected by the scanner. Caution: If the “Clear Before Receive” bit is used with a receive timeout of zero (0), the scanner will respond with an “Object State Conflict” error. When using the “Clear Before Receive” bit, always specify a non-zero timeout so the device will have a chance to generate a response to any commands in the data field.
A-88
FIS-0870 Industrial Raster Scanner User’s Manual
Page 376
Appendices
Receive Response Flags The Receive Response Flags field gives the host additional information about the serial input. Bit (0 = LSB) 0 1 2 3-7
Description First frame of message Last frame of message Previous message(s) lost Reserved
Bit 0 – First Frame of Message When set, this frame contains the beginning of a new message. If both the “First frame” and “Last frame” bits are set, then this frame contains the whole message. If both the “First frame” and “Last frame” bits are clear, then this frame contains the middle portion of a message.
Bit 1 – Last Frame of Message When set, this frame contains the end of a message. If both the “First frame” and “Last frame” bits are set, then this frame contains the whole message. If both the “First frame” and “Last frame” bits are clear, then this frame contains the middle portion of a message.
Bit 2 – Previous Message(s) Lost The Previous message(s) lost bit will be set when: • The scanner attempts to buffer more than 100 messages, or 8000 characters; • The next response to Send_with_Response includes receive data. The scanner is capable of generating data faster than EtherNet/IP can request. The scanner can buffer a maximum of 100 messages, and a total of 8,000 characters. If the EtherNet/IP master cannot extract data from the scanner fast enough, messages will be lost.
FIS-0870 Industrial Raster Scanner User’s Manual
A-89
Page 377
Serial Data The Data field contains the serial message characters (USINT, 8 bit bytes) that will be transferred. The length of this field should at least equal the amount of data specified in Send Length, but can be longer to simplify programming. All messages sent to the EIP master are kept as coherent as possible, given the constraints of maximum message size. The following rules apply for each data frame sent to the master: • Preamble and postamble strings are attached to the message per <K141> and <K142> configuration. • One message is sent for every receive transaction. Even if more than one message will fit into the Receive Length specified, only one message will be sent. • If the entire message fits within the Receive Length specified, then the whole message will be sent in one transaction. • If a message is larger than the specified Receive Length, then the message will be fragmented and sent over multiple receive requests. In response to the first request, the beginning of the message is sent. Subsequent responses will send the middle portions of the message, until the end of the message is reached. To assist de-fragmentation of the message, process the Receive Response Flags, and enable pre- and post-amble strings.
Input (T->O) Assembly Object (Class 0x04, Instance 0x64) The Assembly Object is not implemented. On Allen Bradley PLCs, select “Inhibit Module” to disable I/O connections.
Output (O->T) Assembly Object (Class 0x04, Instance 0x65) The Assembly Object is not implemented. On Allen Bradley PLCs, select “Inhibit Module” to disable I/O connections.
Configuration Assembly Object The Assembly Object is not implemented. On Allen Bradley PLCs, select “Inhibit Module” to disable I/O connections.
A-90
FIS-0870 Industrial Raster Scanner User’s Manual