Schneider Electric LXM32M manual Reading and writing parameters, Address Value

Page 21

LXM32M

3 Basics

 

 

3.3.3Reading and writing parameters

Parameters are processed as 32 bit values. 16 bit values must also be processed as 32 bit values. Two consecutive 16 bit parameters must be read or written to process a 16 bit parameter. The first Modbus address must be specified.

If several consecutive parameters are to be processed, a single Mod- bus command with the corresponding Modbus address and the length indication is sufficient.

NOTE: This does not apply to reading and writing parameters with addresses in the range from 17408 (4400h) to 17663 (44FFh). In this range, only a single parameter can be addressed with one Modbus command.

Example Reading the parameter CTRL1_KPp "Position controller P gain" Modbus address 4614

When the parameter CTRL1_KPp with the Modbus parameter address 4614 and length 2 is read, the two parameter addresses 4614 and

4615 are read. Result:

Address

Value

 

 

4614

0000h

 

 

4615

00C8h

 

 

0198441113843, V1.01, 01.2012

Modbus-TCP module

21

Image 21
Contents LXM32M Important information Table of contents Diagnostics and troubleshooting Accessories and spare parts LXM32M About this manual Further reading Fieldbus products on the network IntroductionLXM32M Before you begin safety information Qualification of personnelIntended use Hazard categories Basic information Standards and terminology Modbus TCP technology BasicsFunction principle Bus topologyClient / server model Network service SnmpStructure of a Modbus message Modbus TCP protocolField Length Description Mbap headerConnection management Modbus TCP communicationExcep Name Description Tion Code Modbus response to a Modbus requestAddress Value Reading and writing parameters4 I/O scanning to Drive Profile Lexium Byte Meaning Data type Parameter address 4.1 I/O scanning OutputBit Meaning 4.2 I/O scanning InputInputs Bit Signal Factory settingParameter channel Ctrl Subindex Index Modbus services Function Code Function Code 3 Read Multiple RegistersField Bytes Value Meaning Sub-function Code Diagnostics function Function Code 8 DiagnosticsFunction Code 16 Write Multiple Registers Function Code 23 ReadWrite Multiple Registers Object ID Object name Value Function Code 43 Encapsulated Interface TransportExample of Function Code ExamplesLXM32M Installation Installation of the moduleDescription Order no Pin Signal Meaning Electrical installationCommissioning the device CommissioningSwitching on the device Power stage supply is switched off First SetupManual assignment of the network address Bootp / boot BootpManual / MAnu Manual Dhcp / dhcP DhcpIP address Ethernet module, byte Assignment of the network address via Bootp Assignment of the network address via Dhcp Setting the protocol Setting the transmission rateSet the IP address of the gateway with the parameters Setting the gatewayMaster with Word Swap Setting I/O-Scanning Setting the master for I/O scanningActivating I/O scanning Setting the mapping for I/O scanning PLC Setting communication monitoring for I/O scanning Setting the web server0198441113843, V1.01 Operation Operating states Indication of the operating stateBit Name Meaning Bit Name Meaning Operating state Changing the operating stateIndicating and monitoring the operating mode Operating modesBit Name Description Bit Name Description Starting and changing an operating modeMODE+ACTION Overview of operating modesOperating mode Jog Operating mode Electronic Gear 24 h Operating mode Profile Torque23 h Operating mode Profile VelocityOperating mode Profile Position Operating mode Homing LXM32M6 Operation Operating mode Motion SequenceWeb server Extended settingsUser interface Main menu Submenu ContentFTP server Accessing the FTP serverFDR service Fast Device Replacement LXM32M Fieldbus communication error diagnostics Diagnostics and troubleshootingColor Status Meaning Status LEDsMeaning for EtherNet/IP Meaning for Modbus TCP ColorError indication Excep Name Description Tion Code LXM32M Cables Accessories and spare partsLXM32M Units and conversion tables GlossaryRotation TemperatureTorque Moment of inertiaTerms and Abbreviations LXM32M Index LXM32M