Toshiba IPE002Z 0x03 Read Holding Registers function, Function Code = 83h Exception Code =

Page 66

E6581741

8.4. "03 (0x03) Read Holding Registers" function

The Modbus request is used to read the values of a number (No. of Points) of adjacent words starting at the address indicated (Starting Address). The values read are restored one after another, at the end of the response (First Point Data -> Last Point Data).

Request Format:

Byte

Meaning

0Function Code = 03h

1Starting Address Hi

2Starting Address Lo

3No. of Points Hi (0)

4No. of Points Lo (1 - 125)

Response format:

Byte

Meaning

0Function Code = 03h

1Byte Count (B = 2 × No. of Points)

2First Point Data Hi

3First Point Data Lo

・・・

・・・・・・・・・・・・・・・・

BLast Point Data Hi

B+1 Last Point Data Lo

Exception response format:

Byte

Meaning

0Function Code = 83h Exception Code =

101 (Illegal Function)

02 (Illegal Data Address)

03 (Illegal Data Value)

Notes

If the communication number that doesn't exist is read, the option returns 0x8000.

- 65 -

Image 66
Contents Tosvert VF-MB1/S15 Introduction Handling in generalNetwork control Table of Contents 10.4 10.210.3 12.1Names and functions Connector to the inverter LED indicator SeeOverview OutlineExample of connection to an EtherNet/IP and Modbus TCP RJ45 connector pin layoutEthernet switch Daisy chain topology Star topologyLED indicator Parameters Communication parameters0,0 These fields are effective settings at c504 = 0.0 Display onlyMonitor of the EtherNet error No error/clear error C536 C081 ‘V’ 56H C082 ‘F’ 46H C083 ‘M’ Details of the parameter setting Device name c081-c096Chars No Parameter Character Ex Ascii Ex C084 ‘B’ 42H C085 ‘1’ 31H C086 ‘-‘C504 IP mode Comments Assigning IP addresses c504, c505-c516Network error detection c100 c103, c523 Case of EtherNet/IPTM protocolEtherNet/IP Master VF-MB1/S15Parameter Value Byte ValueBit Function Emergency stop Always enable, E trip Fault resetReset No data is returned from the drive Frequency priority Forced DC Braking Jog run4.3. fa23 Communication command Reserved Electric power quantity4.4. fa07 frequency reference from internal option Specified data outputEmergency stop No emergency Stop status Standby InitializationCompleted, not failure stop 4.9. fd03 Output current Input terminal function selection 7 f117 FE06Output TB Function select 2A f131 Bit TB Name Function ParameterOutput terminal function selection 1A f130 Output TB Function select F132Objects Class Code Object Class Hex DecSupported Objects Identity Object Class ServiceInstance Services Class AttributesBit Called Definition Attribute 5 State DescriptionsAdapted from document CIP the CIP Networks Library UnsupporteedMessage Router Object 0x0E GetAttributeSingle Read one attributeInstance Attribute Input Assembly Instance Type Size Assembly ObjectOutput Assembly Instance Type Size See belowClass Services Connection Manager ObjectInstance 1 Attribute Motor Data Object Control Supervisor Object Refer to 4.6.1 Run/Stop Event MatrixE6581741 Control Supervisor State Transition Diagram Run/Stop Event MatrixState of the drive AC/DC Drive Object 0x2A 0x0E GetAttributeSingle0x4000-0x4FFF 0x0000-0x0FFF 0x7000-0x7FFF 0xF000-0xFFFF Range Address accessedParameter Objects 32767Communication No 0003 Instance ID 0x0001-0xFFFF 655350x0E GetAttributeSingle 0x10 SetAttributeSingle Port Object 0xF4 0x01 GetAttributeAll 0x0E GetAttributeSingleRead all attributes Read one attribute Number of services Optional service list List of optional service codesTCP/IP interface Object 0xF5 Bit 5-31 System reserved Only 16 characters in 64 characters can be set in the drive Ethernet link object 0xF6 Bit 7-31 System reserved Shorts Instance 2 Attribute Bit 7-31System reservedInput Instance Configuration of the assembliesOutput Instance Instance name Number Hex SizeInstance 20 CIP basic speed control output Instance 70 CIP basic speed control inputInstance 21 CIP extended speed control output Instance 71 CIP extended speed control inputInstance 100 mapping Byte Bit Instance 100 Native drive outputInstance 150 Native drive input Instance 150 mapping Byte BitExamples of Instance 100/150 ① Stop Byte Hex ④ Preset speed 1 with forward running sr1 Instance Byte Hex⑤ Fault reset Instance Byte Hex ② Forward running 60Hz Instance Byte 15 14 13 12 HexInstance 101 mapping Byte Bit Instance 101 Native drive outputInstance 151 Native drive input Instance 151 mapping Byte BitExamples of Instance 101/151 Output Instance 0x0003 Input Instance Cmod is 0x0000Output Instance 0x0268 Input Instance F268 is 60.0Hz 0x1770 Instance 102 mapping Bit Byte Instance 102 Native drive outputInstance 152 Native drive input Instance 152 mapping Bit ByteInstance 105 Toshiba specific output Instance 155 Toshiba specific inputInstance 105 mapping Bit Byte Examples of Instance 105/155 Output Instance 0x0000 0x0003 Input Instance Cmod isAbout EDS file Integration in RSLogixCreate a new project Add a EtherNet/IP scanner to the I/O configuration E6581741 Configure the VF-MB1/S15 EtherNet/IP module E6581741 Download the program to the PLC Select the Download Once again, select the Download Edit the I/O scan data E6581741 E6581741 Drive Modbus servers Modbus TCP serverModbus TCP frames List of Modbus functions supported0x03 Read Holding Registers function Function Code = 83h Exception Code =Illegal Function Illegal Data Address Illegal Data Value 0x06 Write Single Register function Byte MeaningFunction Code = 86h Exception Code = 0x10 Write Multiple Registers function 0x17 Read/Write Multiple Registers function Function Code = 17hFunction Code = 97h Exception Code = 0x2B Read Device identification function Obj Length 18-24 Value IPE002Z Obj Length 27-30 Value 0106 Exception response formatFunction Code = ABh Exception Code = Parameter data IO Scanning service PresentationPeriodic variables Example of the setup with PL7 Defining the hardware configurationBootp configuration Configuring Modbus messaging ModeConfiguring periodic variables PLCCommand & Setpoint selection Local/Remote Operation panel FmodWiring EtherNet/IP-Modbus TCPOption error Disconnection error of network cableUnusual diagnosis Access to the webserver WebServerWeb pages structure Drive monitor Main menu Monitoring State of the drive can be confirmed on thisDrive parameters Main menu Monitoring Input the write value to popup window Network parameters Main menu Network Setup Modbus scanner Main menu Network SetupEthIP scanner Main menu Network Setup Administration Main menu Network Setup TCP/IP statistics Main menu Diagnostics You can check TCP/IP status on this 88E