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

The text of a manual · part 38 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 15 - Using the RS-485 Port, pages 331 to 338

Pages 331 to 338 of 404, from Bulletin 2803 VIM Vision Input Module User Manual

The original document is the PDF (26 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 Allen-Bradley 2803-VIM2

Page 331

Chapter

15

Using the RS-485 Port 15-37

Reacf Resdts Blocks

Use this command to have the VIM2 module send the specified results block(s). The VIM2 module responds to the first request as soon as it is not busy. If a repeat count is included in the command, the VIM2 module provides subsequent responses upon completion of each inspection (see Appendix C for results block descriptions). The Read Resz&s Blocks command has this format: . ...

. - . . . ... - . .. . .

-. .

.. . _ . . . . .

; j 07 ; x(H) ; x(L) ; 15 ; f :.............,...........-............G .. . .._.._._..._.___.__._ x f

= Number of times command is repeated (optional, default =l) = Selected block(s), where a hex value selects blocks: Bit 0 = Results block 1 Bit 1 = Math tool results Bits 2-7 Not used (zero)

The response to the command has the following format: .. . . . . . . . . ... . . .. . ..-...................................................................

__. data . . . ; DLE i ETX i BCC ! : DLE i STX i :.....................................................:......,................... where data consists of the binary content of specified results block. If two results blocks are specified in the command, then a separate response is issued for each block. For example, to read both blocks once, send this command: ..‘..“‘.‘.~..‘““...“.

. . . . . .._...........__.................................................

; DLE ; STX ; 07 ; 00 ; 01 ; 15 ; 03 ; DLE ; ETX ; BCC i :_........._..___,_..................................._......_..~......_.._.._... ........_. ..' ..__._. ... ...'....._. .‘...,,

..‘..._.___ f=03

00000011 _' '_ ._ :. ., Bits7 + 4

_' : Bits3 + 0

The response to the command shown above would be: :.......... : .......... : ................................................................ ; DLE

; DLE ; ETX ; BCC ; dat;,;-y”s : STX i ... data ... ........... ........... . ................................ .......... .... ....... ... ........ . ........................................................................................

! DLE ! STX ! . . _ data . . _ : DLE : ETX : BCC i data= results :..........:..........:...............................~ ........ ........ . ... block 2

Host/Mode Stipulations: Valid for either master host or non-master host. Valid in run mode only.

Page 332

15-38

Chapter

Read Statistics Blocks

75

Using the RS-485 Port

Use this command to have the VIM2 module send the specified statistics block(s). The VIM2 module responds to the first request as soon as it is not busy. If a repeat count is included in the command, the VIM2 module provides subsequent responses upon completion of each inspection (see Appendix D for statistics block descriptions). The Read Statistics Bloc& command has this format: ............ _ ........... .._............_............-............; ; 07 ; x(H) ; x(L) ; 53 i f i............ _ :............ _............ _............ _............

xW)~x(L) f

= Number of times command is repeated (optional, default =l) = Selected block(s), where a hex value selects blocks: Bit 0 = Statistics block 1 Bit 1 = Statistics block 2 Bit 2 = Statistics block 3 Bit 3 = Statistics block 4 Bits 4-7 Not used (zero)

The response to the command has the following format: ........................................................................................ ! DLE _ STX _ ... data ... :.....................................................:

; DLE ; ETX ; BCC i .. ........ ... ......... .. ........ .

where data consists of the binary content of the specified statistics block. If multiple statistics blocks are specified, then a separate response is issued for each block. For example, to read block 3 once, send this command:

._.__.___..._..__._..__......................___........-....................................... i DLE i ST)( i 07 ; 00 ; 01 ; 53 ; 04 ; DLE ; ETX ; BCC ; :_.._.__._.~.._.___._.I..........__..........__......._......_.~........... ........__ -..._.., ......_.__,, -.-...____. f=04

00000100 ..

: '. ;- -.. Bits7 + 4

.' :

Bits3 + 0

The response to the command shown above would be: data= _ STX _ _._ data . . . _ DLE _ ETX i BCC ! ............................................................................I..........~ block 1 i DLE

Host/Mode Stipulations: Valid for either master host or non-master host. Valid in run mode only (Note: In order for the VIM2 module to collect statistics, it must be running in the learn mode).

Page 333

Chapter 15

Using the RS-485 Port 75-39 lock

Use the Lo& command to prevent the VIM2 module from entering the setup mode. The command has the following structure:

.............. ; 04 ! :............. There is no VIM2 module response to this command. If you send the Lock command to the VIM2 module while it is in the setup mode, the VIM2 module will go to run mode as soon as the user exits the setup mode. If you send the Lock command to the VIM2 module while it is in the standby mode, the VIM2 module will exit the standby mode and go to run mode. Host/Mode Stipulations: Valid for master host only. Valid in setup or standby mode only.

Unlock

Use the Unlock command to allow the user to enter the VIM2 module setup mode. The command has the following structure: . ; OA :.............

.

. ;

There is no VIM2 module response to this command. If you send the Unlock command to the VIM2 module while it is in the run mode, the VIM2 module will exit the run mode and go to standby mode. Note: To enter setup mode from standby mode, you must pick a bright area on the monitor screen with the light pen. If you send the Unlock command to the VIM2 module while it is in the standby mode (it, is already unlocked), there will be no effect. Host/Mode Stipulations: Valid for master host only. Valid in run or standby mode only.

Page 334

Chapter

75

Using the RS-485 Port

1S-40

Trigger

Use the Trigger command to initiate a VIM2 module inspection cycle (if the VIM2 module is in run mode), or to have the VIM2 module acquire an image (if the VIM2 module is in setup mode). The command has the following structure: .............. ; 09 ; : .............

There is no VIM2 module response to this command. Note: Sending the Trigger command to the VIM2 module does not activate the SWG TRIGGER LED on the VIM2 module. Host/Mode Stipulations: Valid for master host only. Valid in run mode ifthe VIM2 module is set for host triggering. Valid in setup mode ifthe VIM2 module is set for host triggering, and the setup mode trigger is set for Run Mode Trigger.

Change Display Mode

Use the Change Display MocEecommand to change the monitor image displayed during run mode to the image specified in this command. The command has the following structure: : .......... ..~. ........... . ............ . i OB i 02 i n i ..... ......... .... ......... ..... ....... .

Where:

n

= Selected display: Ol= window 1 02 = window 2 03 = window 3 04 = window 4 05= windows 1-4 06 = “live” image

Note: If the VIM2 module is displaying a halted image (as a result of running in either the Halt on Reject or Halt on Inspection arm mode), sending the Change Display Mode command will have the same effect as a light pen pick. That is, when the command is sent, the monitor image display will not change to the specified image, but will toggle to the next display in sequence. Host/Mode Stipulations: Valid for master host or nonmaster host. Valid in run mode only.

Page 335

Chapter 7 5

Using the M-485

Port 75-47

Reset Statistics

Use this command to reset all statistics collected while the VIM2 module operated in the learn mode. The command has this format: _............. ; IO ; . . . . . . . . . . . . ..

There is no VIM2 module response to this command. Host/Mode Stipulations: Valid for master host or nonmaster host. Valid in run mode or standby mode only.

Page 336

Chapter

75

Using the M-485

Port

15-47

After you have become familiar with the DFl commands, you can use the following command summary as a quick reference guide.

DFI Command Summary

Table 5-B nFi _ -......-.. - Cummarv --......-. , -. . Cnmmand ierial

Line Diagnosis

Host/Mode

Field Descriptions

Command Structure

Command

Stipulations*

For Master / Non-Master

12

Modes SU, SB, R ierial ll/nlH/nlL

Line

/nZH/nZL nitialization nlH/nlL=max.erroneous

For Master / Non-Master messages (0000-FFFF) n2H/nZL = max. inspections

Modes SU, SB, R until :cho

01 I XHI xl/data reset (0000-FFFF)

xH/XL

?ead Configuration n = configuration

06/07/n/f

EEPROM tirite

Configuration

OBl07lf data..

Verify block(s)

Master Modes SB, R for Master f = configuration block(s)

For Master,

Mode SB only

For Master,

Mode SB only

For Master,

Mode SB only

For Master,

Mode SB only n = EEPROM

08/00/n

(01 = #l,

RAM to EEPROM Load Configuration From EEPROM

03/00/ nil n2 to

2)

data for block nl

= EEPROM uration Read Outputs

OS/xH/

Bit configuration

02 = #2) configuration

(01=#1,02=#2) n2 = new startup

RAM

Read Discrete

Mode SB for Master / Non-

(01 =

OD

Save Configuration xL/06/f

07/xH/xL/06 xH/xL config-

(00 = No, other = Yes) = repeats (0000-FFFF)

Modes SU, SB, R

XH/XL = repeats (0000-FFFF)

For Master / Non-Master Mode R

Blocks

07/xH/xL/

15/f xH/xL

= repeats (0000-FFFF)

f = selected block(s) Read Statistics

For Master / Non-Master f = selected discrete bit(s)

Results Read Results

Modes SU, SB, R f = configuration each specified data string

1,02 = EEPROM data = configuration

.

For Master I Non-Master

= repeats (0000-FFFF)

Data = hexadecimal

07/xH/xL/S3/f xH/xL

= repeats (0000-FFFF)

f = selected block(s)

Blocks

For Master / Non-Master Mode R For Master / Non-Master Mode R

Lock

04

For Master,

Modes SU, SB

Unlock

OA

For Master,

Modes SB, R

For Master, Modes SU, R 09 .-. _.. t. 8. I r,. r” ~-~~‘-~~--~-\,IL”~--_I..Iand Non-Master IndlCate nost type tor wnlcn commana ~svarla. >u, stl, ana n lnalcare VIIVIL moaule modes for which command is valid, where SU = setup mode, SB = standby mode, and R = run mode. Trigger

Page 337

Chapter

1s

Using the RS-485 Port 75-43

Command Summary (Continued) Table 5.B DFl Command Summarv (continued)

OBl02ln n = selected display (01-04 = windows l-4,05 windows,

( Reset Statistics *Master module

10

Host/Mode

Field Descriptions

Command Structure

Stipulations*

For Master / Non-Master = all

Mode R

06 = “live”) For Master I Non-Master

SU, SB, and R indicate VIM2 ?r indicate host type f r which command is valid. and Ntz modes for which command is valid, where SU = setup mode, SB = standby mode, and R = run mode

Page 338

Chapter

15

Using the RS-485 Port

75-44

(This page intentionally left blank)