Advertisement

Quick Links

Operating Instructions
ZK-USB-CAN-1
Operating Instructions Version: 1.0.0

Advertisement

Table of Contents
loading

Summary of Contents for NANOTEC ZK-USB-CAN-1

  • Page 1 Operating Instructions ZK-USB-CAN-1 Operating Instructions Version: 1.0.0...
  • Page 2: Table Of Contents

    Contents 1 Introduction.....................3 1.1 Version information............................. 3 1.2 Copyright, marking and contact........................3 1.3 Intended use............................... 3 1.4 Warranty and disclaimer..........................3 1.5 Target group and qualification........................4 1.6 EU directives for product safety......................... 4 1.7 Numerical values............................4 2 Technical details and pin assignment............5 2.1 Dimensioned drawings and installation options..................5 2.2 Environmental conditions..........................
  • Page 3: Introduction

    98/NT/ME/2000/XP/7/10 are registered trademarks of the Microsoft Corporation. 1.3 Intended use ZK-USB-CAN-1 is used as a component of drive systems in various industrial applications where a computer needs to be connected to the CAN bus via USB. Use the product as intended within the limits defined in the technical data (see Electrical properties and technical data) and the approved Environmental conditions.
  • Page 4: Target Group And Qualification

    1 Introduction the plant engineer or end user. Nanotec accepts no responsibility for the integration of the product in the end system. Our general terms and conditions at www.nanotec.com apply. Customers of Nanotec Electronic US Inc. please refer to us.nanotec.com.
  • Page 5: Technical Details And Pin Assignment

    2 Technical details and pin assignment 2 Technical details and pin assignment 2.1 Dimensioned drawings and installation options All dimensions are in millimeters. You can secure the adapter using one to three M4 screws. Three M4x6 threaded holes are provided for this purpose: 32.5 Alternatively, you can also screw on a DIN rail clip and install the adapter in a switch cabinet.
  • Page 6: Environmental Conditions

    2 Technical details and pin assignment 2.2 Environmental conditions Environmental condition Value Unit Ambient temperature (operation) -10 … 70 °C Ambient temperature (storage) -25 … 85 °C Relative air humidity (non-condensing) 0 … 95 Protection class according to EN/IEC 60529 IP 40 2.3 Electrical properties and technical data Property...
  • Page 7 2 Technical details and pin assignment CAN connection 1 — RJ-45 Type: RJ45 socket Function Note CAN_H CAN-High CAN_L CAN-Low CAN_GND CAN-Ground CAN_SHLD connected to housing Housing Shield connected with pin 6 CAN connection 2 — PCB terminal ■ Type: Phoenix Contact MCV 1.5/ 4-G-3.5 ■...
  • Page 8 2 Technical details and pin assignment USB connection Type: USB 2.0, type-B connector. A suitable USB cable is included in scope of delivery. Version: 1.0.0...
  • Page 9: Installing Driver And Adapter

    3 Installing driver and adapter 3 Installing driver and adapter This chapter explains how to connect the adapter to a PC with Windows 10. 1. Connect the adapter to the PC via USB. The driver is installed automatically and the device bus is detected as a COM port.
  • Page 10: Protocol Description

    // Request: Get name info, sequence=[1234] [1234] info name // Response: product name [1234] name: ZK-USB-CAN-1 The token [net] is allowed to follow the [sequence] due to compatibility reasons, but it is ignored by the adapter. 4.1 Configuration and initialization 4.1.1 Get Device Information: version, state, ticks, name...
  • Page 11 Syntax: "info name" Returns the product name. Example // Request: Get name info info name // Response: product name name: ZK-USB-CAN-1 4.1.2 Read Hardware Version Syntax:0 r 0x1009 0 vs Example // Read adapter hardware version: NodeId=0; Index=0x1009; Subindex=0: // Data Type= visual string...
  • Page 12 4 Protocol description Example // Read adapter serial number: NodeId=0; Index=0x4040; Subindex=0: // Data Type= visual string 0 r 0x4040 0 vs // SDO Read Response: serial number= B123456 21/10-0123 "B123456 21/10-0123" 4.1.5 Initializing gateway Syntax: "[sequence] init <baudrate>" Determines the baud rate at which the CAN gateway server operates. The baud rate can be specified as a value or as a table index of the standard CANopen table.
  • Page 13 4 Protocol description 2. Syntax: "[sequence] [net] set network <value>" You set the default network here (used just for compatibility reasons). Example // Request: Set CAN-Network = 2 set network 2 // Response: “OK” 3. SDO timeout Syntax: "[[sequence] [net] node] set sdo_timeout <ms>" You use this command to set the SDO timeout.
  • Page 14 4 Protocol description 4.1.8 Stop node (NMT) Syntax: "[[sequence] [net] node] stop" You use this command to switch the CAN network to the "Stop" state. Example // Request: Send stop command to NodeId = 1 1 stop // Response: “OK” // Incoming CAN-Message with CobId = 0x701;...
  • Page 15 4 Protocol description 4.1.11 Reset communication (NMT) Syntax: "[[sequence] [net] node] reset comm" Example // Request: Send Reset communication to NodeId = 1 1 reset comm // Response: “OK” 4.1.12 Command for message format Syntax: set msg_format [n] Where [n] is 0 (default format) or 1: Format (0) // All return strings are hex values! :>601 8 40 63 20 0 0 0 0 0...
  • Page 16 4 Protocol description 4.1.14 Command for: Filters, Filter ID, Filter Mask You can use filters to filter the incoming CAN messages. 1. Command for setting Filter Syntax: set filterX [S] Where: ■ X – 0 to 7: filter number ■ S – 0 or 1: 0 = deactivate filter; 1 = activate filter Example // Request: Enable filter 0 set filter0 1...
  • Page 17 4 Protocol description After activation of the filter, the following messages would be shown, e.g.: :>17D 8 0 0 0 0 0 0 0 0 :>47D 4 0 1 1 0 4.1.15 Command Notification Syntax: set notification [n] Where [n] is 0 to 3: ■...
  • Page 18: Commands For Reading And Writing

    4 Protocol description 4.2 Commands for reading and writing The following table shows all supported data types and the format used in the commands. Data Type Format SIGNED8 SIGNED16 SIGNED32 UNSIGNED8 UNSIGNED16 UNSIGNED32 Octet String (base64 encoded data) Domain (base64 encoded data) Visual String (see following section) Visual Strings You can use visual strings inside quotes:...
  • Page 19 4 Protocol description Example // SDO Read Request: NodeId=1; Index=0x1000; Subindex=0: // Data Type=UInt32 1 r 0x1000 0 u32 // SDO Read Response: Value = 393618 = 0x00060192 393618 4.2.2 Command "w" (SDO Write Request) Syntax: [[sequence] [net] node] w <index> <subindex> <datatype> <value> Example // SDO Write Request: NodeId=1;...
  • Page 20 4 Protocol description Example // Request: SDO abort sdo_abort // Response: “OK” 4.2.8 Command "rm" (remote request) Syntax: [sequence] [net] rm <cobid> Example // Request: Send remote request rm 0x181 // Response: “OK” 4.2.9 Command "wm" (write CAN message) Syntax: [sequence] [net] wm <cobid> <dataLength> <value1>[..<value8>] Example // Request: CobId=0x00;...
  • Page 21: Error Messages

    5 Error messages 5 Error messages If an error occurs, the adapter returns an error code. The error can be an internal error (syntax, incorrect parameter input) or an error during SDO transfer. The format of the error message depends on the type of error: Synchronous Error Error returned in responce to a command.
  • Page 22 5 Error messages Error code (hex) Description 0504 0001 Client/server command specifier not valid or unknown 0504 0002 Invalid block size (block mode only) 0504 0003 Invalid sequence number (block mode only) 0504 0004 CRC error (block mode only) 0504 0005 Out of memory.

Table of Contents