## For instruction on writing tutorials ## http://www.ros.org/wiki/WritingTutorials #################################### ##FILL ME IN #################################### ## for a custom note with links: ## note = ## for the canned note of "This tutorial assumes that you have completed the previous tutorials:" just add the links ## note.0= ## descriptive title for the tutorial ## title = How to set up a Pilz PSENscan laser scanner with Ethernet ## multi-line description to be displayed in search ## description = Learn how to set up the PSENscan laser scanner with Ethernet for later use within the ROS environment. ## the next tutorial description (optional) ## next = ## links to next tutorial (optional) ## next.0.link=[[psen_scan_v2/Tutorials/ConfiguringPsenScanParametersWithYaml|How to set up ROS to communicate with the scanner]] ## next.1.link= ## what level user is this tutorial for ## level= BeginnerCategory ## keywords = Industrial, Ethernet, laser scanner, PSENscan, psen_scan, psen_scan_v2 #################################### <<IncludeCSTemplate(TutorialCSHeaderTemplate)>> <<TableOfContents(4)>> {{{#!wiki caution '''WARNING''' THE PILZ SOFTWARE IS PROVIDED AS-IS AND WITH NO WARRANTY (FOR MORE DETAILS SEE LICENSE). '''System or plant integrators only''' This tutorial is solely intended for system or plant integrators only. The system or plant integrator is responsible for taking into account the requirements from the respective current standard e.g. EN ISO 10218-2, EN ISO 61508 or taking equivalent measures. }}} == Introduction == In this tutorial you learn how to set up the PSENscan laser scanner with Ethernet using the Pilz configuration tool, so that you are able to use the PSENscan laser scanner in a later step within the ROS environment. == Prerequisites == In order to complete this tutorial, you need the following: * The operating manual. This tutorial does not replace the operating manual! Read it carefully first! * [[https://www.pilz.com/download/open/PSEN_sc_M_Operat_Man_1005055-EN-02.pdf|PSENscan Operating Manual sc M 3/5 series]] * [[https://www.pilz.com/download/open/PSEN_sc_L_Operat_Man_1005056-EN-01.pdf|PSENscan Operating Manual sc L 3/5 series]] * [[https://www.pilz.com/de-DE/eshop/0010600219713180PW/PSENscan#components|A Safety laser scanner PSENscan]], list of [[https://github.com/PilzDE/psen_scan_v2|ROS supported scanner models]] * A appropriate Ethernet cable and power cable for the PSENscan laser scanner have to be ordered separately. You can find the accesories for the laser scanner at the [[https://www.pilz.com/en-INT/eshop/0010600219713180PW/PSENscan|online shop]]. Select your laser scanner and click at '''Accesories'''. * A 24V DC power supply. * A PC with Windows 7, 10 or XP (32 Bit and 64 Bit) operating system and Ethernet interface. * [[https://www.pilz.com/de-INT/support/downloads#currentPage=1&SEARCH=psenscan%20configurator&pilz_group_type=download&search_connector=and&SORT=dmodified| The proper PSENscan Configurator software]] installed on the PC. == Setup connection between PSENscan and the PC == === Connect the hardware === {{attachment:laser_scanner.png|Scanner|width=500}} * Connect the power cable to [1] or [2] depending on the number of pins of your cable. * Connect the power supply to the blue and brown wires of the power cable * Connect the PC via Ethernet adapter cable to [4] The power supply must not exceed 24V DC. See the appropriate operating manual for details on the wiring and pinouts. {{{#!wiki note * Connector [3] is not required here. This will be used to connect subscriber devices. }}} === Search the network for the PSENscan laser scanner === * Start the PSENscan Configurator on your PC and activate select '''Scanner → Search device''' in the upper menu bar to search the network for PSENscan laser scanners. * Connected devices of the PSENscan laser scanner are listed under '''Network environment'''. * Double-click the safety laser scanner from '''Network environment'''. {{{#!wiki note * The factory-set default IP address of the safety laser scanner: 192.168.0.10. * The laser scanner and the host PC have to be in the same IP subnet. }}} The IP address of the scanner can also be changed afterwards. See next chapter. * The safety laser scanner is displayed in the work window with IP address, firmware version and status information. === Change the network IP address of the PSENscan laser scanner === * Select '''Settings → Change network settings'''. {{attachment:Change_Network_Settings_1.png|Netw1|width=400}} * Enter the password for the safety laser scanner {{attachment:Enter_PSENSCAN_PWD.png|Passwd|width=200}} * You can find the password in the operating manual. * Enter the network data for connecting to the network. {{attachment:Enter_PSENSCAN_IP.png|IP|width=300}} * Click '''OK''' to continue. * Finally the PSENscan safety laser scanner is displayed automatically with an updated IP address in the PSENscan Configurator. {{attachment:Result_PSENSCAN_IP_Change.png|IPCHGRESULT|width=400}} {{{#!wiki note * Alternatively you can change the IP address of your computer with the windows network settings. }}} === Create a new configuration === To get raw non-safety-relevant scanner data in ROS, you still need to setup at least one safety zone. The safety configuration is not visible from ROS later on, but directly triggers the OSSD safety outputs of the scanner to stop motion. * Click at the home button in the upper left corner. {{attachment:Home.png}} * Click on '''Create new configuration'''. {{attachment:Create_NEW_PSENSCAN_config.png|NEWCFG|width=200}} * Double click your product to proceed. You find the product id printed at side of the device. {{attachment:Catalogue.png}} * Press the NEXT button on the upper right corner. {{attachment:PSENSCAN_next_button.png}} * In the general properties tab choose the right number of pins for the power supply and evaluation device connection. It might be 8-pin or 12-pin. You can count the pins at your connector [2] or [1] as shown in [[#Connect_the_hardware|Connect the hardware]]. * Choose a name for your configuration. * Press next until the configure zones dialog appears. {{attachment:Configure_PSENSCAN_Zones.png}} * Configure a smaller safety zone and a larger warning zone. Use the right mouse button on the coordinate system to choose between safety zone and warning zone. {{attachment:Configure_PSENSCAN_Safety_and_warning_Zones.png}} * Click next and choose your scanner. * Press next until the '''Programming''' dialog appears and press the button '''Load'''. * After you pressed '''Load''' your configuration will be tested. There may occur several dialogs. Press '''OK''' on them until you are asked for a password. Use the same password like in the previous chapter. * Again answer the following dialogs with '''OK''' until the download dialog appears. {{attachment:Download_PSENSCAN_FIRMWARE.png|DOWNLOAD|width=300}} * After the download is finished you will be asked for accepting or rejecting the new configuration. Press '''Accept''' button to proceed. * The finish dialog appears. Wait until the scanner has rebooted. {{attachment:Config_PSENSCAN_finished.png|FINISHED|width=300}} * Press on '''Monitoring''' to display the 2d surroundings of the scanner. {{attachment:Monitoring_PSENSCAB_TAB.png|FINISHED|width=900}} == How to proceed == From this point, you can connect your PSENscan to a machine running Linux and proceed with the [[psen_scan_v2/Tutorials/ConfiguringPsenScanParametersWithYaml|ROS package setup]]. ## AUTOGENERATED DO NOT DELETE ## TutorialCategory ## FILL IN THE STACK TUTORIAL CATEGORY HERE