background image

TCP/IP COMMUNICATION

51   SMART-VS

EXTJB (EXiTJoB)

It allows to exit without saving an editing session\job creation.
Syntax:

EXTJB<CR><LF>

Reply:

EXTJB;ReturnCode<CR><LF>

Possible return codes:

• Success → Command successful.
• NotInSession→ The command was called without a configuration session being 

started (the device is in running state).

• NotInJobEditing → The device is in configuration but no job is being edited / cre

-

ated.

TRNJB (TRaiNJoB)

Allows to start training the job being edited / created. The command is successful only if

all the necessary reference image acquisitions have been made. The job is automatically

trained.
Syntax:

TRNJB<CR><LF>

Reply:

TRNJB;ReturnCode<CR><LF>

Possible return codes:

• Success → Command successful.
• NotInSession → The command was called without a configuration session being 

started (the device is in running state).

• NotInJobEditing → The device is in configuration but no job is being edited / cre

-

ated.

• OtherInProgress → Another asynchronous task is in progress and therefore it is 

not possible to launch the training. Finalize the previous task and start the train

-

ing.

CNGJB (ChaNGeJoB)

Allows to change the job in progress.

Syntax:

CNGJB;BankId<CR><LF>

BankId: Bank number to be used.

Reply:

CNGJB;ReturnCode<CR><LF>

Possible return codes:

• Success → Command successful.

• InvalidInput → The specified bank is out of the range (0-31) or no editable jobs are 

saved in the specified bank.

• AlreadyInConfiguration → The device is in configuration, it is not possible to 

change the bank. Finalize the previous configuration by completing it or exiting 

without saving.

• Failed → The device is already in the configuration state by an external interface 

(HMI, WebApp).

Summary of Contents for VS-CRX

Page 1: ...VS CRX PRODUCT REFERENCE GUIDE Smart Vision Sensor...

Page 2: ...ntation and shall ensure that all notices appear on any reproductions of the documentation Electronic versions of this document may be downloaded from the Datalogic website www datalogic com If you vi...

Page 3: ...ce 2 HMI Button Configuration 4 Button Teaching Procedure 4 Button Incremental Teaching Procedure optional 5 Button Re Teaching Procedure optional 6 Firmware Rollback and Reset Configurations optional...

Page 4: ...36 Job Switching via Smart VS WebApp 36 Job Switching via Telnet Communication 37 MAINTENANCE 38 Cleaning 38 TROUBLESHOOTING 39 TECHNICAL FEATURES 41 TCP IP COMMUNICATION 43 Connection 43 protocol Ove...

Page 5: ...58 List of available procedure control functions 58 CRTJBF CReaTeJoBFile 59 CRTBCK CReaTeBaCKup 59 ULBF UpLoadBinaryFile 59 DLBF DownLoadBinaryFile 60 STJBF SToreJoBFile 60 STBCK SToreBaCKup 61 FNZJBF...

Page 6: ...hen using the reader TECHNICAL SUPPORT Support Through the Website Datalogic provides several services as well as technical support through its website Log on to www datalogic com For quick access fro...

Page 7: ...Support An excellent source for technical assistance and information is an authorized Datalogic reseller A reseller is acquainted with specific types of businesses application software and computer sy...

Page 8: ...OMPLIANCE CE marking states the compliance of the product with essential requirements listed in the applicable European directive Since the directives and applicable standards are subject to continuou...

Page 9: ...quipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide rea sonable protection against harmf...

Page 10: ...stand vibration and shock when correctly installed however it is also a precision prod uct and therefore before and during installation it must be handled correctly to avoid damage Avoid that the dev...

Page 11: ...PRODUCT REFERENCE GUIDE XI Do not weld the device into position It can cause electrostatic heat or reading window damage Do not spray paint near the sensor It can cause reading window damage...

Page 12: ...racket Mounting Holes 2 7 Power I O Connector 2 Power On LED 8 Lens 3 Ethernet Connection LED 9 LED Aiming System 4 90 Rotating Connector Block 10 Red Spot NO GOOD 5 HMI Interface 11 Green Spot GOOD 6...

Page 13: ...blinking NO GOOD object teaching in Run phase NO GOOD object detected for future use Trigger in Teach phase trigger input status in Run phase trigger received GOOD object in Teach phase blinking GOOD...

Page 14: ...how to connect the system In this layout the result signals are connected to the PLC while it is possible to configure and monitor the device by the Host PC The device is activated by an External Tri...

Page 15: ...2 MOUNT AND POSITION THE DEVICE 1 To mount the Smart VS use the mounting bracket to obtain the most suitable position for the device The most common mounting configuration is shown in the figure below...

Page 16: ...ngle provided the object feature to be inspected fits into the Field Of View FOV Figure 5 Max 20 pitch to avoid direct reflections NOTE Rapid Configuration of the Smart VS sensor can be made either th...

Page 17: ...GOOD object in front of the Aiming System 3 Place the trigger sensor properly The Trigger LED indicates object detection 4 Short press 1s the HMI Button to acquire the image More than one GOOD object...

Page 18: ...e device will enter the Run Phase NOTE The Teaching procedure can also be entered when in Run phase press the HMI Button for 2s yellow LED on HMI for incremental teaching or 4s red LED on HMI to cance...

Page 19: ...ED and red spot start blinking 4 New NO GOOD object images can be added to the current job If incremental teaching is needed for GOOD objects only skip to step 5 Short press 1s the HMI Button to acqui...

Page 20: ...on within 4 seconds max for the Reset configurations procedure hold down until all LEDs blink simulta neously then release and press it again within 1 second NOTE It is suggested to close the Smart VS...

Page 21: ...automatically redirected to the Init Page If the Teaching procedure has already been performed the Monitoring page is displayed A Settings page is also available to adjust the device settings Device i...

Page 22: ...w After selecting the backup file svsbck format select one or more job you want to restore and confirm The global settings will be restored automatically At the end of the procedure the Monitoring pag...

Page 23: ...he same line To do this simply click on the image and drag it throughout the gray area After completing image setup click Next Step 2 Acquire GOOD On the Acquire GOOD page one or more GOOD objects can...

Page 24: ...GOOD object you can click on the Teach button Step 4 Learn This step is completed automatically If it takes too long you can stop the procedure clicking on the Stop training button Once the device is...

Page 25: ...ics box to the right This shows the statistics concerning the ongoing acquisitions The bottom bar displays an archive of acquisitions filmstrip NOTE If you want the selected job to be the running and...

Page 26: ...m the GOOD box to the NO GOOD box and vice versa After clicking on one of the Play icons the newly added acquisitions will be used by the device in addition to those stored during the ini tial Teachin...

Page 27: ...shown on the related window Trigger Input Debounce filter debounce time measured in s The parameters under Global Settings are common to all jobs which means that any change will be valid for all jobs...

Page 28: ...irmware package Clear Configurations to clear all created jobs and reset all Global Settings to default Settings Backup to download and save all jobs and global settings in a svsbck file Settings Rest...

Page 29: ...camera features Thanks to its algorithm technology Smart VS is the ideal solution for application prob lems related to machine format adaptability and flexibility that a sensor or sensor sys tem cann...

Page 30: ...nd job setting User defined database of Image Acquisitions Ease of Use HMI interface LEDs provide operational and performance feedback Multi Image Acquisition Settings for higher flexibility Image sav...

Page 31: ...evice is connected to the power supply Figure 6 1 NET yellow LED indicates connection to the on board Ethernet network Figure 6 2 NO GOOD red LED indicates a NO GOOD object Blinking during Teaching Fi...

Page 32: ...object feature to be detected should be centered between the two squares Figure 7 Smart VS Aiming LEDs LED SPOTS There are two LED spots that can be activated to project light onto the target area to...

Page 33: ...cs 7 mm Illuminator White polarized I O 3 OUT 2 IN ETH Order number Accessory Order No Cables CAB GD03 M12 17P 3M power and I O cable isolated wires 95A900052 CAB GD05 M12 17P 5M power and I O cable i...

Page 34: ...s in the secondary packaging and auto motive industries food and beverage applications for bottling cosmetic packaging and all those markets where the following detection applications are needed Appli...

Page 35: ...d with the equipment are pres ent and intact when opening the packaging the list of parts includes Smart VS w connector plug cover Quick Reference Guide Mounting Kit Mounting Screws 2 Washers 2 Mounti...

Page 36: ...ns The two screw holes M3 x 4mm depth on the body of the device are for mechanical fixture The diagrams below give the overall dimensions of the device and may be used for its installation Refer to pa...

Page 37: ...MECHANICAL DIMENSIONS PRODUCT REFERENCE GUIDE 24 Figure 12 Overall Dimensions Connector at 90...

Page 38: ...5 SMART VS MOUNTING AND POSITIONING SMART VS Using the Smart VS mounting brackets you can obtain rotation on the various axes of the device as shown in the diagram below Figure 13 Positioning with Mou...

Page 39: ...OWER AND I O CONNECTOR PINOUT cables with 9 stripped wires PIN NAME COLOR DESCRIPTION 1 Vdc Brown Power supply input voltage 2 GND Blue Power supply input voltage Connector case Chassis Connector case...

Page 40: ...software on both inputs The value can be changed through the software parameter Debounce Filter See Settings on page 14 or refer to the Settings section of the Smart VS WebApp User s Guide for fur the...

Page 41: ...be changed to Trailing edge via Smart VS WebApp A Debounce time can be set on the Smart VS WebApp to reject noisy trigger signals Each trigger event corresponds to a Data Valid signal indicating that...

Page 42: ...ils The Data Valid signal is raised 1 ms after the GOOD or NO GOOD signal is raised It is lowered 1 ms before the GOOD or NO GOOD signal is lowered default adjustable via Smart VS WebApp NOTE Although...

Page 43: ...bar Telnet communication can be established by connecting to device IP at port 23 A CAB ETH X M0x cable can be used to connect to a host device Figure 15 M12 8 pin Standard Ethernet Network Connector...

Page 44: ...ted directly to the machine control system An optional push button is recommended if Teaching is frequently performed for prod uct batch changes or if the device is not easily accessible A presence se...

Page 45: ...N AND OCCASIONAL MONITORING In addition to the previous setup a PC can be connected via Ethernet for initial configu ration and occasional monitoring A point to point Ethernet connection is recommende...

Page 46: ...et switch can be used to ease the connection but a dedicated LAN is still rec ommended since the Smart VS is configured with a fixed IP address A presence sensor or the machine electrical phase is nec...

Page 47: ...ere FOVx horizontal vertical or diagonal FOV x horizontal vertical or diagonal viewing angles d reading distance in mm from window surface to code surface d0 offset in mm from center of lens to extern...

Page 48: ...SMART VS DETECTION DIAGRAM The following diagram shows the maximum obtainable Field of View for object inspec tion NOTE All features of interest related to the object inspection should be included in...

Page 49: ...be stored in the device internal memory Job switching can be performed either via Smart VS WebApp or Telnet communication JOB SWITCHING VIA SMART VS WEBAPP To recall a Job in the Smart VS WebApp go t...

Page 50: ...to the next system startup Example job load 6 CR Output message job load Bank CR LFDONE LF CR CR LFSmart VS or job load Bank CR LFFAIL Failed to get status already in configuration LF CR CR LFSmart V...

Page 51: ...or continued correct operation of the device See General View on page xii Dust dirt etc on the lens cover may alter the device performance Repeat the operation frequently in particularly dirty environ...

Page 52: ...oo high The Remote input signal does not start the Teaching procedure In case of PNP signal check that one of the two Remote inputs I2A or I2B is connected to the signal coming from the button or PLC...

Page 53: ...ns using the Clear Configurations button on the Utilities page Discard latest software update do not delete stored jobs perform a rollback procedure via HMI see Firmware Rollback and Reset Config urat...

Page 54: ...ion to the device IP address 192 168 3 100 Point to Point connection is recommended 10 100 Mbit s Inputs Opto coupled and polarity insensitive Max Voltage 30 Vdc Max Input Current 10 mA Outputs PP NPN...

Page 55: ...8 2 6 14 mm 2 to 10 Hz 1 5 mm 13 to 55 Hz 2 g 70 to 500 Hz 2 hours on each axis Shock Resistance EN 60068 2 27 30g 11 ms 3 shocks on each axis Protection Class b EN 60529 b when correctly connected fu...

Page 56: ...the two devices The Smart VS server is listening on port 1023 and the PLC or PC clients must send a connection request to establish communication When the communication is established commands can be...

Page 57: ...synchronous features begins features that take long execution times The result must be requested once the completion of the task has been verified In the event that the task is immediately finalized w...

Page 58: ...he finaliza tion of the task if provided the finalization command will also contain the reply It will not be possible to start another asynchronous task if the previously executed task is not terminat...

Page 59: ...onous feature Delimiters and separator The grammar of the protocol provides a character used as a separator S of the fields within the message and a two character sequence used as a delimiter D of the...

Page 60: ...nd reply frame structure Command command to which the reply is related Return Code contains the result of the command a code that identifies whether the command was accepted or not and identifies the...

Page 61: ...synchronous EXTJB Exit the configuration without saving synchronous TRNJB Train job asynchronous CNGJB Change job Bank number to load synchronous BNKST Bank Status synchronous GTRJB Current Bank See...

Page 62: ...ed 4 NotInJobEditing The creation or modification of a job has not been started 5 Reserved 6 OtherInProgress Another asynchronous task is in progress or an asynchronous task has not been finalized the...

Page 63: ...B It allows to add images to a previously configured job thus using the device s incremen tal training functionality The device switches from the Running state to the Configu ration state Syntax MDFJB...

Page 64: ...ion The command was called without a configuration session being started the device is in running state NotInJobEditing The device is in configuration but no job is being edited cre ated OtherInProgre...

Page 65: ...lidInput The specified bank is out of the range 0 31 GTRJB GeTRunningJoB Allows to check which job is loaded as the currently running job Syntax GTRJB CR LF Reply GTRJB ReturnCode BankId JobName CR LF...

Page 66: ...be acquired because the maximum number of images that can be captured has been reached per class or for the entire job CLRBNK CLeaRBaNK Cancel the job on the bank indicated by the parameter Syntax CLR...

Page 67: ...FiNaliZeJoB Finalize the asynchronous command to create a new job CRTJB CReaTeJoB on page 50 Syntax FNZJB CR LF Reply FNZJB ReturnCode CR LF Possible return codes Success Command successful NotInProgr...

Page 68: ...the completion of the image auto setup operation 5 Finalize the image auto setup with the FNZJB command 6 Send the ACQIMG command specifying the label to be assigned to the object 7 Place the NO GOOD...

Page 69: ...separator see Delimiters and separator on page 46 Binary File Base64 encoded binary file Delimitatore standard protocol delimiter see Delimiters and separator on page 46 Upload reply format The reply...

Page 70: ...tor on page 46 Return Code it contains the result of the command a code that identifies whether the command has been accepted or not and possibly the type of error Separator standard separator of prot...

Page 71: ...F Create Job File Index of the bank on which the job is contained asynchronous CRTBCK Create BackUp File asynchronous ULBF Upload Binary File Data to upload on the device synchronous DLBF Download Bin...

Page 72: ...K CR LF Reply CRTBCK Returncode CR LF Possible return codes Success command successful OtherInProgress another asynchronous task is in progress or has not been final ized ULBF UpLoadBinaryFile Allows...

Page 73: ...uploaded to the exchange area The device switches from the Running state to the Configuration state Syntax STJBF Force BankId CR LF Force forces the bank to be overwritten if it already contains a job...

Page 74: ...ile Finalizes the asynchronous command to create a binary file containing a single job CRTJBF CReaTeJoBFile on page 59 Syntax FNZJBF CR LF Reply FNZJBF ReturnCode FileSizeByte CR LF FileSizeByte Retur...

Page 75: ...ous task is in progress Failed package creation failed FNZJST FiNaliZeJobSTorage Finalizes the asynchronous command to save a binary file containing a single job STJBF SToreJoBFile on page 60 Syntax F...

Page 76: ...r device 2 Save the package in Flash Scenario 1 The finalization of the saving is requested once the actual end of the task has been veri fied Smart VS Server Client Smart VS Server Binary file upload...

Page 77: ...2 The finalization of the saving is requested without verifying the actual end of the task Smart VS Server Client Smart VS Server Binary file upload command RECEIVING FILE reply state Binary file sav...

Page 78: ...evice 2 Download the package Scenario 1 The file size is requested once the package creation has been successfully completed Smart VS Server Client Smart VS Server Start file preparation command PREPA...

Page 79: ...s see Reply format on page 47 There are two return codes dedicated to the case of exceptions in the protocol Code 13 ProtocolError indicates a syntax error on the command such as the presence of an un...

Page 80: ...ght no part of this documentation may be repro duced stored in or introduced into a retrieval system or transmitted in any form or by any means or for any purpose without the express written permissio...

Reviews: