Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 18

VS-06 Smart Camera, VS-06 User's Manual, pages 61 to 70

Pages 61 to 70 of 172

The original document is the PDF (3.2 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 di-soric VS-06

Page 61

Assembly Layout

Control: Camera Control Register (16 bit) Each bit of this register controls a function on the camera. Transitions from a low state of 0, to a high state of 1, initiates the associate operation. The PLC should return the state of the control bit back to 0 after it has acknowledged the camera has processed the control. Unused bits should remain 0.

Using EtherNet/IP

4 CmdCode and CmdArg (32 bit) Specifies the process invoked in the camera when Control.ExeCmd goes active. List of available CmdCodes, and associated CmdArg

VS-06 Smart Camera Guide

4-13

Page 62

Chapter

4

Using EtherNet/IP

CmdCode and ExeCmd Operation

VIO Register Bits

4-14

VS-06 Smart Camera Guide

Page 63

Connection Properties: Class 3 Explicit Messaging

Connection Properties: Class 3 Explicit Messaging All Class 1 IO assembly data and additional data are accessible via Explicit message. Input data (VS-06 to PLC/Client) occupies attributes 1 to 100 of the classes. Output data (PLC/Client to VS-06) occupies attributes 101 to 200.

Service: •

Get Attribute Single (0xE)

•

Set Attribute Single (0x10)

Classes: bool = 104 (0x68)

• int = 105 (0x69)

• long = 106 (0x6A)

• float = 107 (0x6B)

• string = 108 (0x6C)

• control/status (mixed data types) = 109 (0x6D)

4 Using EtherNet/IP

•

Instance: 1 Attribute: •

1 to 100 = In to PLC/Client

•

101 to 200 = Out to VS

VS-06 Smart Camera Guide

4-15

Page 64

Chapter

4

Using EtherNet/IP

Attribute Layout When using explicit EIP messaging, all global data objects can be read or written. Each data type is stored in its own class object and an instance of 1 to read the global data. For example to read float2 the EIP request would be for Service Code 14 (0xE), Class 107 (0x6B), Instance 1, Attribute 2.

The value received in response to Get Attribute Single depends on the type: • bool will return a 16 bit word with 0 for false or 1 for true

•

Ints will return a 16 bit signed integer

• longs will return a 32 bit signed integer

• floats will return a 32 bit floating point number

• strings will return a counted string. Total size of a string data item is 2048 bytes. This includes a 4 byte “length” field followed by 2044 eight bit characters. When accessing strings explicitly, they are not limited to the size in the IO assemblies. Eg. string3 is limited to 28 bytes in the input assembly. If the actual string is longer than 28 bytes, it will be truncated when reading via the assembly, but not truncated when reading the same string via an attribute explicitly.

4-16

VS-06 Smart Camera Guide

Page 65

Connection Properties: Class 3 Explicit Messaging

Assembly Class 109 can be used to read and write special EIP specific registers.

Using EtherNet/IP

4

VS-06 Smart Camera Guide

4-17

Page 66

Chapter

4

Using EtherNet/IP

EIP Control/Status Signal Operation

4-18

VS-06 Smart Camera Guide

Page 67

Data Type Descriptions and Equivalents in PLC and EDS/CIP Environments

Data Type Descriptions and Equivalents in PLC and EDS/CIP Environments

Using EtherNet/IP

4

VS-06 Smart Camera Guide

4-19

Page 68

Chapter

4

Using EtherNet/IP

PLC Tags and Serial Command Names PLC tags are separated into IN and OUT for data direction. Within the IN and OUT groups, the tags are sub-divided into fixed “Status” and “Control” fields, plus user-defined linked data fields. This table shows how PLC tag names correspond to serial commands.

4-20

VS-06 Smart Camera Guide

Page 69

A Connector Pinouts

APPENDIX A

This section contains information about VS-06 Smart Camera connectors: •

M12 12-Pin Plug on page A-2

•

M12 8-Pin Socket on page A-3

Connector Pinouts

A

VS-06 Smart Camera Guide

A-1

Page 70

Appendix

A

Connector Pinouts

VS-06 Smart Camera Connectors Connector A – M12 12-Pin Plug – Power, I/O, and Serial Figure A–1 shows the M12 12-pin plug at connector A. FIGURE A–1. VS-06 Connector A – M12 12-Pin Plug

Table A–1 describes the M12 12-pin plug signals. TABLE A–1. VS-06 Connector A – M12 12-Pin Plug

A-2

Pin

Function

1

Trigger

2

Power

3

Default

4

Input 1

5

Output 1

6

Output 3

7

Ground

8

Input Common

9

Host RxD

10

Host TxD

11

Output 2

12

Output Common

VS-06 Smart Camera Guide