Table of Contents

Advertisement

Quick Links

Smart encoders & actuators
SMAX
• Magnetic absolute linear encoder
• Measuring length up to 600 mm / 23.622"
• Programmable resolution from 1.25 mm down to 0.1 mm
• MODBUS RTU (RS-485) interface
• Up to IP69K protection rate
Suitable for the following models:
SMAX-MB-...
Lika Electronic

User's guide

Tel. +39 0445 806600
Versione RS-485

Table of Contents

info@lika.biz
12
14
15
19
25
44
59
77
www.lika.biz

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SMAX-MB Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Lika SMAX-MB Series

  • Page 1: Table Of Contents

    • Up to IP69K protection rate Suitable for the following models: Table of Contents Safety summary SMAX-MB-... • Identification Mechanical installation Electrical connections Quick reference Modbus® interface Programming parameters Programming examples Lika Electronic • Tel. +39 0445 806600 • info@lika.biz • www.lika.biz...
  • Page 2 Tous droits réservés. This document and information contained herein are the property of Lika Electronic s.r.l. and shall not be reproduced in whole or in part without prior written approval of Lika Electronic s.r.l. Translation, reproduction and total or partial modification (photostat copies, film and microfilm included and any other means) are forbidden without written authorisation of Lika Electronic s.r.l.
  • Page 3: General Contents

    4.6 Diagnostic LED (Figure 3)...........................22 5 Quick reference........................... 25 5.1 Getting started...............................25 5.2 Configuring the encoder using the software tool by Lika Electronic..........25 5.3 Main page of the interface..........................27 5.3.1 Configuring the serial port – Connection to the encoder............28 Read params...............................30 Write Holding..............................31...
  • Page 4 Total resolution..............................35 Preset value................................35 Offset value................................35 Node address..............................35 Baud rate................................35 Operating parameters...........................36 Enable scaling function..........................36 Change counting dir............................36 Control word..............................36 Enable watchdog............................36 Execute preset..............................37 Upload defaults.............................37 Auto save................................37 Save parameters...............................38 5.4 Update FW page - Firmware upgrade......................39 5.4.1 Information on firmware upgrade......................39 5.4.2 Preliminary operations and connections.....................40 5.4.3 Launching the firmware upgrade process..................40 5.5 Manual frame page –...
  • Page 5 Hall sensors error............................69 Mounting error..............................69 Watchdog................................70 Current position [0001 hex]........................70 Current velocity [0002 hex]........................70 Wrong parameters list [0003 hex]......................71 SW Version [0004 hex]..........................71 HW Version [0005 hex]..........................72 Status word [0006 hex]..........................72 Scaling...................................72 Counting direction............................72 Alarm..................................73 7.2 Exception response and exception codes....................74 8 Programming examples........................
  • Page 6: Subject Index

    Subject Index Alarm..................73 Node address..............35 Alarm register..............33 Node address [0004 hex]..........65 Alarms register [0000 hex]...........69 Auto save................37 Offset value................35 Offset value [0002 hex]..........63 Baud rate................35 Operating parameters............36 Operating parameters [0003 hex]......63 Change counting dir............36 Code sequence..............64 Perform counting preset..........67 Continuous reading............32 Preset value................35 Control word..............36 Preset value [0001 hex]..........61...
  • Page 7: Typographic And Iconographic Conventions

    In this guide, to make it easier to understand and read the text the following typographic and iconographic conventions are used: parameters and objects both of Lika device and interface are coloured in GREEN; • alarms are coloured in RED;...
  • Page 8: Preliminary Information

    Modbus interface. In this section the interface features and the registers implemented in the unit are fully described. In the “Quick reference” section on page 25 the software tool designed by Lika Electronic to easily configure the encoder via RS-485 serial port is fully described.
  • Page 9: Glossary Of Modbus Terms

    Glossary of MODBUS terms MODBUS, like many other networking systems, has a set of unique terminology. Table below contains a few of the technical terms used in this guide to describe the MODBUS interface. They are listed in alphabetical order. Address field It contains the Slave address.
  • Page 10 The function code field of a MODBUS data unit is coded in one byte. Valid codes are in the range of 1 ... 255 decimal (the range 128 – 255 is reserved and used for exception responses). Function code "0" is not valid. Lika devices only implement public function codes. Holding register In the MODBUS data model, a Holding register is the output data.
  • Page 11 The Protocol Data Unit (PDU) is the MODBUS function code and data field. It is packed together with the Address Field and the CRC (or LRC) to form the Modbus Serial Line PDU. The MODBUS protocol defines three PDUs. They are: MODBUS Request PDU, mb_req_pdu •...
  • Page 12: Safety Summary

    • elsewhere in this manual violates safety standards of design, manufacture, and intended use of the equipment; Lika Electronic assumes no liability for the customer's failure to comply • with these requirements. 1.2 Electrical safety Turn OFF power supply before connecting the device;...
  • Page 13: Mechanical Safety

    SMAX MODBUS® - minimize noise by connecting the shield and/or the connector housing and/or the sensor to ground. Make sure that ground is not affected by noise. The connection point to ground can be situated both on the device side and on user’s side. The best solution to minimize the interference must be carried out by the user;...
  • Page 14: Identification

    Information is listed in the delivery document too. Please always quote the order code and the serial number when reaching Lika Electronic for purchasing spare parts or needing assistance. For any information on the technical characteristics of the product refer to the technical catalogue.
  • Page 15: Mechanical Installation

    SMAX MODBUS® Mechanical installation WARNING Installation and maintenance operations have to be carried out by qualified personnel only, with power supply disconnected. Mechanical parts must be in stop. For any information on the mechanical data and the electrical characteristics of the encoder please refer to the technical catalogue.
  • Page 16: Mounting The Sensor

    SMAX MODBUS® compressed air, etc.) are in place in order to prevent the sensor and the magnetic scale from jamming. Make sure the mechanical installation meets the system's requirements concerning distance, planarity and parallelism between the sensor and the scale indicated in Figure 2 all along the whole measuring length.
  • Page 17 SMAX MODBUS® otherwise than illustrated in the Figure. The arrow is intended to indicate the standard counting direction (count up information). Please note that the MTAX magnetic scale can be provided with a cover strip to protect its magnetic surface (see the order code). Therefore the distance between the sensor and the magnetic scale is different whether the cover strip is applied.
  • Page 18: Measuring Length

    SMAX MODBUS® Figure 2 WARNING After having installed the sensor on the magnetic scale a zero setting operation is compulsorily required. The zero setting operation is further required every time either the sensor or the scale is replaced. For any information on the zero setting operation please refer to the “Perform counting preset”...
  • Page 19: Electrical Connections

    B_RS485 OUT if the encoder is the last slave in the line. For any information refer to the “4.5 Bus termination resistor” section on page 21. 4.1.1 M8 cable specifications Model : LIKA HI-FLEX sensor cable type M8 Wires : 2 x 0.22 mm + 6 x 0.14 mm...
  • Page 20: M12 8-Pin Connector

    Lika's EC- pre-assembled cables are fitted with shield connection to the connector ring nut in order to allow grounding through the body of the device. Lika's E- connectors have a plastic gland, thus grounding is not possible. If metal connectors are used, connect the cable shield properly as recommended by the manufacturer.
  • Page 21: Node Address

    The node address of the device is set via software in the hex] register (see on page 65). The default address preset by Lika is 1. The address must have a value between 1 and 247. NOTE The default address is 1.
  • Page 22: Diagnostic Led (Figure 3)

    SMAX MODBUS® RT 120Ω 4.6 Diagnostic LED (Figure 3) Figure 3: Diagnostic LED A green LED located in the front of the encoder (see the Figure above) is meant to show visually the operating or fault status of the Modbus interface and the device as well.
  • Page 23 SMAX MODBUS® GREEN Description The encoder is operating properly, there are ON (Solid GREEN) no active errors. Machine data parameters error. To see in detail which parameter is wrong please Blinking at high frequency (100 Wrong parameters list [0003 ms ON / 100 ms OFF) enter the hex] register on page 71.
  • Page 24 SMAX MODBUS® firmware upgrade operation is in progress. For any information please refer to the “5.4 Update FW page - Firmware upgrade” section on page 39. An error occurred while performing the firmware upgrade operation. You must turn the power off and on again to reset the Blinking at 10 Hz with duty cycle device and restart the operation.
  • Page 25: Quick Reference

    • Serial com baud rate [0005 hex] register on page 65); the default value set by Lika Electronic at factory set-up is “4” = baud rate 19,200 bit/s, parity bit Even; Node address [0004 if needed, set the node address (node ID; see the •...
  • Page 26 SMAX MODBUS® the page of the website dedicated to the device. The program is designed to be installed simply by copying the executable file to the desired location and no installation process is required. To launch the program just double-click the file icon.
  • Page 27: Main Page Of The Interface

    SMAX MODBUS® 5.3 Main page of the interface To launch the program and configure the MODBUS encoder double-click the MODBUS-RTU.EXE executable file. The interface consists of a main page and two subpages. When the program starts, the main page will appear on the screen. The main page of the interface can be divided into seven parts.
  • Page 28: Configuring The Serial Port - Connection To The Encoder

    SMAX MODBUS® occurs because the Server is not able to handle the request from the Client are shown. For more information on the exception responses and the MODBUS exception codes please refer to the “7.2 Exception response and exception codes“ section on page 74. 7.
  • Page 29 In the Address field in the DEVICE group box, the MODBUS address of the connected device must be entered. By default the address of all Lika devices is “1”. If you do not know the MODBUS address of the networked device select the All addresses check box.
  • Page 30: Read Params

    SMAX MODBUS® If the connection succeeds, the Device connected message as well as the model of the found device are displayed in the group box between DEVICE and FUNCTIONS group boxes. The software in fact is able to recognize automatically the model of the connected device and changes the displayed page and the list of the available registers consequently.
  • Page 31: Write Holding

    SMAX MODBUS® Write Holding When you press the Write Holding button you send a command to write all Holding Registers at the same time. It is also possible to press the ENTER key in the keyboard of your personal computer: it sends a command to write the only register where the cursor is placed.
  • Page 32: Continuous Reading

    SMAX MODBUS® on the device. These items are described in the “7.1.2 Input Register parameters” section on page 69 of this manual. In this group box the items listed hereafter are available. Continuous reading When you press the Continuous reading button you enable the transmission of continuous commands to read the Input Registers uninterruptedly.
  • Page 33: Status Word

    SMAX MODBUS® Status word It shows the value expressed in decimal notation (256 in the Figure) that can be Status word [0006 hex] read currently next to the register, refer to page 72. If Alarm there are active alarms, the message appears on the right while the position value above disappears.
  • Page 34: Reading / Writing The Holding Registers

    SMAX MODBUS® 5.3.4 Reading / writing the Holding Registers In the largest group box on the right of the programming interface, the Holding Registers are available. The items in this group box allow to read in or write into the working parameters of the device, by pressing the Read params and Write Holding buttons respectively, they are available in the DEVICE group box.
  • Page 35: Total Resolution

    SMAX MODBUS® If the Auto save check box is not selected instead, you must press the Save parameters button to store the parameters permanently on the EEPROM after setting (see on page 38). In this section the items listed hereafter are available. Total resolution It allows both to set a custom resolution of the encoder (measuring step tailored for the specific application) and to show the value that is set currently.
  • Page 36: Operating Parameters

    SMAX MODBUS® Serial com baud Figure above) is also shown. For more information refer to the rate [0005 hex] register on page 65. Operating parameters Operating parameters [0003 hex] It groups the functions available in the register (see on page 63) and shows their current enabling 1/disabling 0 state. The decimal value which results from the binary sequence of the sixteen bits in the register (consider that 0 = DISABLED, 1 = ENABLED) will appear in the field under the label (0 in the Figure above).
  • Page 37: Execute Preset

    SMAX MODBUS® the text of the label is coloured yellow. For more information refer to the Watchdog enable parameter on page 66. Execute preset This button allows to activate the preset function in order to set the output value to the value entered next to the Preset value parameter (see on page 35). The Execute preset button executes the whole sequence of preset setting commands: activation of the Perform counting preset bit and registers setting;...
  • Page 38: Save Parameters

    SMAX MODBUS® registers are saved as soon as you press the ENTER key in the keyboard or place the cursor anywhere outside the field after setting the value. If the Auto save check box is not selected instead, you must press the Save parameters button to store the parameters permanently on the EEPROM after setting.
  • Page 39: Update Fw Page - Firmware Upgrade

    “user program”, is stored in the flash memory integrated inside the unit. These encoders are designed so that the firmware can be easily updated by the user himself. This allows Lika MAN SMAX MB E 1.2...
  • Page 40: Preliminary Operations And Connections

    2. press the SELECT FILE button; once you press the button, the Open dialogue box appears on the screen: open the folder where the firmware upgrading .BIN file released by Lika Electronic is located, select the file, and confirm by pressing the OPEN button;...
  • Page 41 SMAX MODBUS® 3. press the BOOT STATE button; if the encoder is connected properly and the system is able to enter the boot mode successfully, the BOOT OK message appears on the right side of the button and the LED fitted in the encoder's enclosure starts blinking at 2 Hz with duty cycle = 50%;...
  • Page 42: Manual Frame Page - Transmitting Pdus Manually

    SMAX MODBUS® 5.5 Manual frame page – Transmitting PDUs manually When you press the MANUAL FRAME button in the FUNCTIONS group box on the top right of the main page of the interface, you enter the page that allows you to enter and transmit Request PDUs manually. In the “Programming examples”...
  • Page 43 SMAX MODBUS® When an error occurs because the Server is not able to handle the request from the Client (for example, if you confirm values that are not allowed or because of a request to read a non-existent output or register), the exception response messages that the Server transmits to the Client will be displayed next to the Exception error field at the bottom of the page.
  • Page 44: Modbus® Interface

    SMAX MODBUS® Modbus® interface Lika SMAX Modbus series linear encoders are Slave devices and implement the Modbus application protocol (level 7 of OSI model) and the “Modbus over Serial Line” protocol (levels 1 & 2 of OSI model). For any further information or omitted specifications please refer to “Modbus Application Protocol Specification V1.1b”...
  • Page 45: Modbus Frame Description

    SMAX MODBUS® 6.2 Modbus frame description The Modbus application protocol defines a simple Protocol Data Unit (PDU) independent of the underlying communication layers: Function code Data MODBUS PDU The mapping of Modbus protocol on a specific bus or network introduces some additional fields on the Protocol Data Unit.
  • Page 46: Transmission Modes

    The transmission mode and the serial port parameters must be the same for all devices on a Modbus Serial Line. All devices must implement the RTU mode, while the ASCII mode is an option. Lika devices only implement RTU transmission mode, as described in the following section.
  • Page 47: Rtu Transmission Mode

    SMAX MODBUS® 6.3.1 RTU transmission mode When devices communicate on a Modbus serial line using the RTU (Remote Terminal Unit) mode, each 8-bit byte in a message contains two 4-bit hexadecimal characters. Each message must be transmitted in a continuous stream of characters.
  • Page 48 SMAX MODBUS® The following drawing provides a description of the RTU transmission mode state diagram. Both “Master” and “Slave” points of view are expressed in the same drawing. Initial State Idle Transition from state needs an interval of at least •...
  • Page 49: Function Codes

    Reserved function codes are not available for public use. 6.4.1 Implemented function codes Lika SMAX Modbus series linear encoders only implement public function codes, they are described hereafter. 03 Read Holding Registers FC = 03 (03 hex) ro This function code is used to READ the contents of a contiguous block of holding registers in a remote device;...
  • Page 50 SMAX MODBUS® Response PDU Function code 1 byte 03 hex Byte count 1 byte 2 x N* Register value N* x 2 bytes *N = Quantity of registers Exception Response PDU Error code 1 byte 83 hex (=03 hex + 80 hex) Exception code 1 byte 01 or 02 or 03 or 04...
  • Page 51: Read Input Register

    SMAX MODBUS® Preset value [0001 hex] The full frame needed for the request to read the parameter (register 2) to the Slave having the node address 1 is as follows: Request PDU (in hexadecimal format) [01][03][00][01][00][01][D5][CA] where: [01] = Slave address [03] = 03 Read Holding Registers function code [00][01] = starting address (Preset value [0001 hex]...
  • Page 52 SMAX MODBUS® Request PDU Function code 1 byte 04 hex Starting address 2 bytes 0000 hex to FFFF hex Quantity of Input Registers 2 bytes 0000 hex to 007D hex Response PDU Function code 1 byte 04 hex Byte count 1 byte 2 x N* Input register value...
  • Page 53: Write Single Register

    SMAX MODBUS® Request PDU (in hexadecimal format) [01][04][00][01][00][01][60][0A] where: [01] = Slave address [04] = 04 Read Input Register function code (Current position [0001 hex] [00][01] = starting address parameter, register 2) [00][01] = number of requested registers [60][0A] = CRC Current position [0001 The full frame needed to send back the value of the hex]...
  • Page 54 SMAX MODBUS® Request PDU Function code 1 byte 06 hex Register address 2 bytes 0000 hex to FFFF hex Register value 2 bytes 0000 hex to FFFF hex Response PDU Function code 1 byte 06 hex Register address 2 bytes 0000 hex to FFFF hex Register value 2 bytes...
  • Page 55: Write Multiple Registers

    SMAX MODBUS® 4): bit 0 Scaling function = 1; bit 1 Code sequence = 0; the remaining bits are not used, therefore their value is 0. The full frame needed for the request to write the value 00 01 hex in the Operating parameters [0003 hex] item (register 4) to the Slave having the node address 1 is as follows:...
  • Page 56 SMAX MODBUS® For the complete list of registers accessible using 16 Write Multiple Registers function code please refer to the “7.1.1 Machine data parameters (Holding registers)” section on page 59. Request PDU Function code 1 byte 10 hex Starting address 2 bytes 0000 hex to FFFF hex Quantity of registers...
  • Page 57 SMAX MODBUS® Starting address Hi Starting address Hi Starting address Lo Starting address Lo Quantity of registers Hi Quantity of registers Hi Quantity of registers Lo Quantity of registers Lo Byte count Register 1 value Hi Register 1 value Lo Register 2 value Hi Register 2 value Lo As you can see in the table, the value 00 0A hex, i.e.
  • Page 58 SMAX MODBUS® Serial com baud rate [0005 hex] value 1 next to the parameter (register 6) from the Slave having the node address 1 previously and the node address 10 currently is as follows: Response PDU (in hexadecimal notation) [0A][10][00][04][00][02][01][72] where: [0A] = new Slave address [10] = 16 Write Multiple Registers function code...
  • Page 59: Programming Parameters

    SMAX MODBUS® Programming parameters 7.1 Parameters available Hereafter the parameters available for the Modbus encoders are listed and described as follows: Parameter name [Register address] [Register number, data types, attribute]  The register address is expressed in hexadecimal notation.  The register number is expressed in decimal notation.
  • Page 60 SMAX MODBUS® If you set a value greater than the maximum resolution allowed, after sending Machine data not valid the Request PDU the error message will be sent back Wrong parameters list [0003 hex] while the relevant bit in the item will be set to 1.
  • Page 61: Preset Value [0001 Hex]

    SMAX MODBUS® The resolution value results from the following calculation: measuring length resolution = number of information Thus, in the example the resolution will be: measuring length resolution = = 0.3 number of information 2,000 Resolution [0000 hex] As the value next to the parameter has to be expressed in hundredths of a millimetre, then you have to enter the value 30.
  • Page 62 SMAX MODBUS® useful for getting the zero point of the encoder and the zero point of the application to match. The preset value will be set for the position of the encoder Perform counting preset in the moment when the command (bit 11) in the Control Word [000A hex] register is sent.
  • Page 63: Offset Value [0002 Hex]

    SMAX MODBUS® equal to the maximum number of information for the default resolution - 1 -1 = 8,191).  If the Scaling function is enabled (bit 0 in the register Operating parameters [0003 hex] Preset value [0001 hex] = 1), must be lower than or equal to the maximum number of information for the custom resolution - 1 (for instance -see the example on page 60: 2,000 information, number of...
  • Page 64: Scaling Function

    SMAX MODBUS® Byte 0 Scaling function bit 0 This is meant to enable / disable the scaling parameter Resolution [0000 hex]. When the scaling function is disabled (bit 0 = 0), the encoder uses its own default resolution; otherwise, when the scaling function is enabled (bit 0 = 1), the encoder uses the resolution set next to the Resolution [0000 hex] register.
  • Page 65: Node Address [0004 Hex]

    SMAX MODBUS® NOTE Please note that when the count is decreasing (count down information) and you cross the zero, the value immediately after 0 will be 2 , where N is the overall information expressed in bits. Let's suppose the overall information is 2,000, i.e.
  • Page 66: Control Word [000A Hex]

    SMAX MODBUS® Value Baud rate Parity bit 00 hex 9600 bit/s No parity 01 hex 9600 bit/s Even 02 hex 9600 bit/s 03 hex 19200 bit/s No parity 04 hex (default) 19200 bit/s Even 05 hex 19200 bit/s 06 hex 115200 bit/s No parity 07 hex...
  • Page 67: Save Parameters

    (“1”). Load default parameters bit 10 Default parameters (they are set at the factory by Lika Electronic engineers to allow the operator to run the device for standard operation in a safe mode) are restored at each rising edge of this bit; in other words, the default parameters uploading operation is performed each time this bit is switched from logic level low (“0”) to logic level high...
  • Page 68 SMAX MODBUS® NOTE Save the set values using Save parameters function. Should the power be turned off all data not saved will be lost! MAN SMAX MB E 1.2 Programming parameters 68 of 84...
  • Page 69: Input Register Parameters

    SMAX MODBUS® 7.1.2 Input Register parameters Input Register parameters are accessible for reading only; to read the value set in an input register parameter use the 04 Read Input Register function code (reading of multiple input registers); for any further information on the implemented function codes refer to the “6.4.1 Implemented function codes“...
  • Page 70: Watchdog

    SMAX MODBUS® Byte 1 bit 8 … 10 Not used. Watchdog bit 11 When the Watchdog function is enabled (Watchdog enable in Control Word [000A hex] is set to “=1”), if the device does not receive any message from the Server within 1 second, the system forces an alarm condition (the Watchdog alarm bit is activated).
  • Page 71: Wrong Parameters List [0003 Hex]

    SMAX MODBUS® Wrong parameters list [0003 hex] [Register 4, Unsigned16, ro] Machine data not valid The operator has entered invalid data and the alarm has been triggered. This variable is meant to show in detail (bit value = HIGH) which parameter is wrong, according to the following table. Please note that the normal work status can be restored only after having set proper values.
  • Page 72: Hw Version [0005 Hex]

    SMAX MODBUS® HW Version [0005 hex] [Register 6, Unsigned16, ro] This is meant to show the hardware (PCB) version of the encoder. The major number shows the hardware edition, while the minor number shows the hardware revision. The meaning of the 16 bits in the register is as follows: 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 Ms bit Ls bit...
  • Page 73: Alarm

    SMAX MODBUS® output encoder position value has been set to increment when the sensor moves in the direction shown by the arrow in Figure 1; if the bit is “=1” instead the output encoder position value has been set to increment when the sensor moves in reverse of the standard direction, i.e.
  • Page 74: Exception Response And Exception Codes

    SMAX MODBUS® 7.2 Exception response and exception codes When a Client device sends a request to a Server device it expects a normal response. One of four possible events can occur from the Master's query: If the Server device receives the request without a communication error •...
  • Page 75 SMAX MODBUS® NOTE Please note that here follows the list the exception codes indicated by MODBUS but not necessarily supported by the manufacturer. MODBUS Exception codes Code Name Meaning ILLEGAL FUNCTION The function code received in the query is not an allowable action for the server.
  • Page 76 SMAX MODBUS® ACKNOWLEDGE Specialized use in conjunction with programming commands. The server has accepted the request and is processing it, but a long duration of time will be required to do so. This response is returned to prevent a timeout error from occurring in the client.
  • Page 77: Programming Examples

    SMAX MODBUS® Programming examples Hereafter are some examples of both reading and writing parameters. Unless otherwise stated, all values are expressed in hexadecimal notation. 8.1 Using the 03 Read Holding Registers function code EXAMPLE 1 Preset value [0001 hex] Request to read the parameter (register 2) to the Slave having the node address 1.
  • Page 78: Using The 04 Read Input Register Function Code

    SMAX MODBUS® 8.2 Using the 04 Read Input Register function code EXAMPLE 1 Current position [0001 hex] Request to read the parameter (register 2) to the Slave having the node address 1. Request PDU (in hexadecimal notation) [01][04][00][01][00][01][60][0A] where: [01] = Slave address [04] = 04 Read Input Register function code (Current position [0001 hex] [00][01] = starting address...
  • Page 79: Using The 06 Write Single Register Function Code

    SMAX MODBUS® 8.3 Using the 06 Write Single Register function code EXAMPLE 1 Operating parameters [0003 hex] Request to write in the register (register 4) to the Slave having the node address 1: we need to set the scaling function (Scaling function = 1) and the increasing counting when the sensor moves in the direction shown by the arrow in Figure 1 (Code sequence = 0).
  • Page 80: Using The 16 Write Multiple Registers Function Code

    SMAX MODBUS® 8.4 Using the 16 Write Multiple Registers function code EXAMPLE 1 Node address Request to write the value 00 0A hex (= 10 dec) next to the [0004 hex] parameter (register 5) and the value 00 01 hex (= 1 dec = baud rate Serial com baud rate [0005 9600 bit/s, parity bit Even) next to the parameter hex]...
  • Page 81: Default Parameters List

    SMAX MODBUS® Default parameters list 9.1 List of the Holding Registers with default value Registers list and address Default value Resolution [0000 hex] hundredths of a mm Preset value [0001 hex] Offset value [0002 hex] Scaling function in Operating parameters [0003 hex] Code sequence in Operating...
  • Page 82 This page intentionally left blank...
  • Page 83 This page intentionally left blank...
  • Page 84 Hexadecimal value characters updating, general 17.11.2015 review, mounting tolerances correction General review, “Mechanical installation” section 13.02.2019 updated, description of the new programming 1.1.0.0 interface Lika Electronic Via S. Lorenzo, 25 • 36010 Carrè (VI) • Italy Tel. +39 0445 806600 Fax +39 0445 806699 info@lika.biz...

This manual is also suitable for:

Smax-ai1-prg-l2

Table of Contents