• Tidak ada hasil yang ditemukan

Description of Submodules

Dalam dokumen PDF www.turckbanner.my (Halaman 178-184)

13.6 PROFINET

13.6.5 Description of Submodules

The VE Inspection Result submodule contains inspection results and sends input data into the controller (PLC). This submodule is plugged into Slot 1 Subslot 1 and cannot be removed.

Table 29: VE Inspection Result Submodule (Ident 0x0101)

PLC Input Data Name Input Data Type Inspection Status Word Unsigned16

Inspection Number Unsigned32

Sensor Pass/Fail Bits Unsigned32

Iteration Count Unsigned32

Pass Count Unsigned32

Fail Count Unsigned32

Missed Trigger Count Unsigned32 Current Inspection Time Unsigned32

Inspection Status Word Bit Position for Cyclic Input

Data Function

Bit 0 System Ready

Bit 1 Inspection Pass/Fail

Bit 3 Ready Signal Latch

Bit 5 Output 1 ON/OFF

Bit 6 Output 2 ON/OFF

Bit 7 Output 3 ON/OFF

Bit 8 Output 4 ON/OFF

Bit 9 Output 5 ON/OFF

PLC Output Data Name Output Data Type

Not applicable Not applicable

Sensor Pass/Fail Bits

Bit Position Function

Bit 0 Camera Tool Pass/Fail

Bit 1 Vision Tool 1 Pass/Fail

... ...

Bit 32 Vision Tool 31 Pass/Fail

VE Device Control Submodule

The VE Device Control Submodule contains controller (PLC) input and output data, including device controls for the VE. The Device Control Submodule is plugged into Slot 1, Subslot 2 by default but it can be removed.

Table 30: VE Device Control Submodule (Ident 0x0001)

PLC Input Data Name Input Data Type Device Control ACK Word Unsigned16

Return Error Code Unsigned32

Device Control ACK Word Bit Position for Cyclic Input

Data Function

Bit 0 Product Change Acknowledgement

Bit 1 Teach Latch Acknowledgement

Bit 2 Trigger Acknowledgement

Bit 13 Teach Error

Bit 14 System Error

Bit 15 Command Execution Error

PLC Output Data Name Output Data Type Device Control Command Word Unsigned16 Product Change Number Unsigned32

Device Control Command Word Bit Position for Cyclic Output

Data Function

Bit 0 Product Change Request

Bit 1 Teach Latch Request

Bit 2 Trigger Request

The following rules apply for the use of input bit commands:

• Only one VE Series camera input bit can be set at a time

• Corresponding ACK bits are set high only on completion of the command (if the VE input bit is still high)

• Corresponding ACK bits are cleared when the VE input bit is cleared

• When multiple VE input bits are set simultaneously, the Execution Error input bit is set and an Error Code value is reported in the Error Code register

• The Execution Error VE output bit is cleared when all ACK bits are cleared, or a new valid command is received

No

Write 0 to Device Control Command Word

Start

Make sure Camera is Ready – bit 0 is set to 1 in Inspection Status Word

Execute Trigger: set bit 2 of the Device Command Word to 1

Trigger Successful. Read values as required

Is Trigger ACK (bit 2 in Device Control ACK

word) set to 1?

Yes

No

Read error code. Correct the error condition Yes

Done Is Execution Error (Device Control ACK Word bit 15) set

to 1?

Figure 307. Trigger—PROFINET

Verify : Ready = 1 TriggerACK = 0

Ready Trigger

TriggerACK = ‘1’

Read Results Set Trigger = 0

RPI 0 1 X X +Y X +Y +Z

TriggerACK

Set Trigger = 1

Verify : Ready = 1 TriggerACK = 0

Trigger

X, Y, Z: Represent snapshot in time Figure 308. Trigger Timing Diagram

No

Write 0 to Device Control Command Word

Start

Make sure camera is ready – bit 0 is set to 1 in Inspection Status Word

Execute Teach Latch: set bit 1 of the Device Command Word to 1

Teach Latch successful. The next valid trigger teaches camera the new condition. After that trigger, examine bit 1 in the Inspection Status Word.

If it is set to 1, Teach was executed successfully. If it is set to 0, Teach

was unsuccessful.

Is Teach Latch ACK (bit 1 in Device Control ACK

word) set to 1?

Yes

No

Read error code. Correct the error condition Yes

Done Is Execution Error (Device Control ACK Word bit 15) set

to 1?

Figure 309. TEACH—PROFINET

Verify : Ready = 1 TeachLatch ACK = 0

Ready Teach Latch

TeachLatch ACK

= ‘1’

Teach will execute on next

trigger

RPI 0 1 X X +Y X +Y+Z

Teach Latch ACK

TeachLatch = 1Set

Verify: Ready = 1 TeachLatchACK = 0 TeachLatch = 0Set

Teach Latch

X, Y, Z: Represent snapshot in time Figure 310. Teach Latch Timing Diagram

No

Write 0 to Device Control Command Word

Start

Write desired program number (as a 32-bit integer) into the Product

Change Number location

Make sure Camera is Ready – bit 0 is set to 1 in Inspection Status Word

Execute Product Change: set bit 0 of the Device Command Word to 1

Product change successful Is Product Change ACK (bit 0 in Device Control

ACK Word) set to 1?

Yes

No

Read error code. Correct the error condition Yes

Done Is Execution Error (Device Control ACK Word bit 15) set

to 1?

Figure 311. Product Change—PROFINET

Verify : Ready = 1 ProductChange ACK = 0

Ready Product Change

ProductChange ACK = ‘1’

New inspection is loaded

RPI 0 1 X X+Y X+Y+Z

Product Change ACK

Set ProductChange

= 1

Verify : Ready = 1 ProductChange ACK = 0 Set ProductChange

= 0

Product Change

X, Y, Z: Represent snapshot in time Figure 312. Product Change Timing Diagram

Sensor Output Submodules

The Sensor Output Submodules contain user-defined maps of sensor output data. There are six versions with 16, 32, 64, 128, 256, and 512 bytes, depending on the size of the output data. A sensor output submodule can be added to slot 2, subslot 1.

Table 31: Sensor Output Submodule

Submodule PLC Input Data PLC Output Data

Name Ident No. Name Type Name Type

16-Byte Custom Map 0×00028 User-mapped Sensor Result Data Block 16-byte OctetString Not applicable Not applicable

Submodule PLC Input Data PLC Output Data

Name Ident No. Name Type Name Type

32-Byte Custom Map 0×00029 User-mapped Sensor Result Data Block 32-byte OctetString Not applicable Not applicable 64-Byte Custom Map 0×00030 User-mapped Sensor Result Data Block 64-byte OctetString Not applicable Not applicable 128-Byte Custom Map 0×00031 User-mapped Sensor Result Data Block 128-byte OctetString Not applicable Not applicable 256-Byte Custom Map 0×00032 User-mapped Sensor Result Data Block 256-byte OctetString Not applicable Not applicable 512-Byte Custom Map 0×00033 User-mapped Sensor Result Data Block 512-byte OctetString Not applicable Not applicable

Tool-Specific Results: PROFINET

Configure the VE to output user-defined, tool-specific results to the PLC using a custom map.

The sensor output submodule include both system-defined and user-defined results in the map. To set the user-defined, tool-specific results, navigate: System Settings > Communications > Industrial Protocols.

Figure 313. Industrial Protocols Tab—PROFINET

The results are configurable only for the current inspection. However, all user-defined results in the custom map are shown on the Industrial Protocols tab whether or not they are included in the current inspection. To make changes to a different inspection, switch to the desired inspection and then make changes to the custom map. Updating the map does not disconnect the sensor from the PLC.

To configure the map:

1. Click to add a new line to the map.

2. Set the Word/Register/Byte, Tool Name, and Result. See the following descriptions for more information.

3. Click Apply Changes to send the current map to the camera.

Important: Click Apply Changes or all user-defined data is lost when you click away from the Industrial Protocols tab.

4. Click to print and save a PDF of the current map. The PDF includes all data, whether system-defined or user- defined.

5. To return the map to the default settings, click . All user-defined output data is deleted.

Column descriptions:

Byte

The data location.

Inspection Slot #

Shows whether this tool result applies to the current inspection only (inspection number) or to any inspection (ANY) that includes the selected tool.

An Inspection Slot # of ANY means that if an inspection includes a tool with the exact name (for example, AverageGray01), the results are output. If an inspection does not have a tool with the exact name (for example AverageGrayAssemblyLine01), no results are output for that tool and that inspection.

Tool Type

Displays a graphic that represents the type of tool selected in the Tool Name column.

Tool Name

Select the desired Tool Name from the list. The list includes the tools available in the current inspection only.

Select a different inspection from the inspection list, if necessary.

Result

The information to output.

Data Type

The type of information to output.

Actions

Click to delete a result.

13.6.6 Configuration Instructions

Dalam dokumen PDF www.turckbanner.my (Halaman 178-184)