Schneider Electric LXM32M manual Ctrl Subindex Index

Page 27

0198441113843, V1.01, 01.2012

LXM32M

3 Basics

 

 

PV The double word "PV" contains the parameter value.

In the case of a read request, the value in the transmit data has no significance. The receive data contains the parameter value.

In the case of a write request, the transmit data contains the value to be written to the parameter. The receive data contains the parameter value.

If a read request or a write request were not successful, the double word "PV" contains the error number of the error.

Example: Reading a parameter In the example, the program number of the product is read from the parameter _prgNoDEV. The parameter _prgNoDEV has the parame- ter address 258 (01h 02h).

The parameter value read has the decimal value 91200 which corre- sponds to 01h 64h 40h.

Transmit data:

Ctrl

Subindex

Index

PV

 

 

 

 

12h

00h

01h 02h

00h 00h 00h 00h

 

 

 

 

Receive data:

Ctrl

Subindex

Index

PV

 

 

 

 

22h

00 h

01h 02h

00h 01h 64h 40h

 

 

 

 

Example: Writing of an invalid In this example, the value of a non-existent parameter is to be parameter changed. The parameter has the parameter address 101 (00h 65h).

The value of the parameters is to be changed to 222 (DEh).

Before the slave can accept a new request, the value 02h must first be transmitted in byte "Ctrl".

Since the slave cannot address the parameter, a synchronous error message is transmitted with the receive data. Byte "Ctrl" is set to 72h. Double word "PV" is set to the error number (error number 1101h: Parameter does not exist).

Transmit data:

Ctrl

Subindex

Index

PV

 

 

 

 

32h

00h

00h 65h

00h 00h 00h DEh

 

 

 

 

Receive data:

Ctrl

Subindex

Index

PV

 

 

 

 

72h

00h

00h 65h

00h 00h 11h 01h

 

 

 

 

See the product manual for information on the error numbers.

Modbus-TCP module

27

Image 27
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 Bus topology BasicsModbus TCP technology Function principleClient / 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 SetupDhcp / dhcP Dhcp Bootp / boot BootpManual assignment of the network address Manual / MAnu ManualIP 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 GlossaryMoment of inertia TemperatureRotation TorqueTerms and Abbreviations LXM32M Index LXM32M