background image

 

21 

6-5 Outline of MODBUS TCP and Transmission format 

    6-5-1 Connections (When set to MODBUS TCP) 

PC etc. 

Ethernet 

KS1 Signal converter 

RS232C 

Serial communication

device 

command 

MODBUS TCP server 

command 

response 

convert 

response 

Slave 

MODBUS 

TCP 

Client 

 

Serial port 

RS485 

 

MODBUS TCP server (KS1 Signal converter) is connected from MODBUS TCP client. 

MODBUS TCP server is designated by specific IP address and port number. 

MODBUS TCP server (KS1 Signal converter) converts data from MODBUS TCP client 

(command) to MODBUS RTU or MODBUS ASCII and send from the serial port. After that, it 
converts data from the serial port (response) and send to MODBUS TCP client. 

 

6-5-2 Compare Packet of MODBUS TCP and MODBUS (RTU and ASCII) 

Example of Command data from MODBUS TCP client to MODBUS TCP server 

Item 

Transmit ID 

Protocol ID

Transmit byte 

Transmit data 

Ex. of setting value  0001 

0000 

0006 

0103238D0001 

Meaning 

ID of 
Transmit unit 

Fixed 
value 

Number of byte 
of transmit data 

Slave unit No.01 
Function code 03 
Data address 238D 
Data 1 byte 

Setting range 

00 to FF 

Fix to 0000

Any value 

Any value 

This shows the command to read out 1 byte data designated by 238D send from MODBUS 
TCP client to serial communication device number 01. 

 

Example of MODBUS RTU Command from MODBUS TCP server (KS1 Signal converter) to Serial 

slave unit 

Item Data 

CRC 

Ex. of setting value  0103238D0001 

1FA5 

Meaning 

Slave unit No. 01 
Function code 03 
Data address 238D 
Data 1 byte 

CRC value of data 

Setting range 

Any value 

Calculated value 2 bytes

This shows the command to read out data designated by 238D send from MODBUS TCP 
server (KS1 Signal converter) to serial communication device number 01.   

Pick up transmit data from MODBUS TCP client, and when it is MODBUS RTU, it send 

command with additional CRC, and when it is MODBUS ASCII, it send command with 
additional LRC. 

 

Example of MODBUS RTU response from serial communication device to MODBUS TCP server 

(KS1 Signal converter) 

Item Data 

CRC 

Ex. of setting value  0103020128 

B9CA 

Meaning 

Slave unit No. 01 
Function code 03 
Data 2 byte 
Data value 0128 (Hex) 

CRC value of data 

Setting range 

 

Calculated value 2 bytes

This shows the response to send 2 bytes data 0128(Hex) designated 238D send from serial 

communication device number 01 to MODBUS TCP server (KS1 Signal converter). 

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]

Содержание KS1

Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 2: ...ot dismantle or remodel the product It could lead to abnormal exothermic heat or smoke generation Do not touch the terminal while turning on electricity It could lead to an electric shock Use the external devices to function the emergency stop and interlock circuit Connect the wires or connectors securely The loose connection might cause abnormal exothermic heat or smoke generation Do not allow fo...

Страница 3: ...r purchasing KS1 Signal Converter In this manual we explain the usage of KS1 Signal Converter in detail Please use it correctly after understanding the content enough Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 4: ...at type mounitng plate 8 Chapter 5 Setting 9 5 1 Install IP address search tool 9 5 2 Set and Change IP Address 11 5 3 Communication Setting 12 5 3 1 Set by the communication set switches on the unit 12 5 3 2 Set by setting tool Configurator WD 13 Chapter 6 Specifications 19 6 1 Main unit 19 6 2 Communication Specifications Interface RS232C RS485 19 6 3 Communication Specifications Interface Ether...

Страница 5: ...efer to the wiring diagram to ensure proper wiring for the power supply input and output Do not perform wiring or installation with a live line It may also lead to circuit burnout or fire Do not add voltage and current to an output terminal from outside Static electricity Discharge static electricity touching the grounded metal etc when you touch the unit Excessive static electricity might be gene...

Страница 6: ... driver Using when wiring Phoenix terminal AFP0806 FP0 Slim type mounting plate Type 30 10pieces Mounting plate that is used to install a unit vertically against the panel AFP0811 FP0 Slim type mounting plate 10 piece Mounting plate that is used to install each unit vertically against the panel AFP0803 FP0 Flat type mounting plate Mounting plate that is used to install each unit horizontally again...

Страница 7: ...ted device Communication set switch 1 Communication set switch 2 Use to set communication conditions Only when MODE 4 switch of communication set switch 1 set to ON hard switches are available Refer to 5 3 1 in detail All switches set to ON at initial Reset switch Pressing for 2 or more seconds makes system reset It can be cleared by power off and on again However it can not be cleared when the se...

Страница 8: ...e Power supply connector Mark Cable Brown 24V DC Blue 0V Use the attached power supply cable AFPG805 to connect power supply Green Function earth Wiring of attached power supply cable Note 1 Please use twisted lines for power supply line brown and blue in order to reduce the noise effect from outside 2 Please use a power supply of the insulation type with built in protection circuit in order to pr...

Страница 9: ...chain the RS 485 transmission line between each unit Connect one end of the shielded wire to an earth ground 5 Use 2 recommended cables with the same cross section of 0 3 to 0 34mm2 to connect to the RS 485 and RS 485 terminals RS 485 Wiring and setting of terminal station 1 When using shielded cable for the RS 485 transmission line ground one end Use a class D dedicated earth for grounding Do not...

Страница 10: ...acement as shown below Other device or Panel 100mm or more Signal Converter Leave the unit at least 100mm from both a device that generate noise radiation and the power line in order to avoid adverse affects of noise radiation and heat 50mm or more 50mm or more Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 11: ... push main unit to DIN rail like 2 and fix the lower hook 4 2 Remove from DIN rail Procedure 1 Insert a screwdriver in the DIN rail installation lever 2 Pull the lever below 3 Lift main unit and remove from the DIN rail Signal Converter Mount Panel DIN rail Signal Converter DIN rail DIN rail installation lever Screwdriver Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com...

Страница 12: ...edure 1 Hook the upper hook of main unit on FP0 Slim type mounting plate like 1 2 With supporting the upper hook push main unit to the mounting plate like 2 and fix the lower hook FP0 Slim type mounting plate Screw Screw 6 mm Signal Converter FP0 Slim type mounting plate Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 13: ...ase set up main unit in FP0 flat type mounting plate 3 Please match the plate and the expanding hook and push in the opposite direction NOTICE Signal converter with FP0 Flat type mounting plate is installed to DIN rail even if it is set from the side FP0 Flat type mounting plate Screws FP0 Flat type mounting plate FP0 Flat type mounting plate DIN rail Phone 800 894 0412 Fax 888 723 4773 Web www cl...

Страница 14: ...ol_configwd jsp Download Configurator WD IP Address search tool V1 21 or more and install in a PC according to the below procedure When the setup program is booted a confirmation dialog box is displayed Confirm the contents and click Next License agreement confirmation box is displayed If you agree to all of the items in the displayed license agreement click Yes Fill in the User Name and Company N...

Страница 15: ...er to install Configurator WD and click Next Confirm the completion of the installation After complete the installation click start program Panasonic EW Control Configurator WD to start Configurator WD Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 16: ...rch button in order to search units Before start searching click Option Option and confirm Signal Converter in Search Unit is checked The search result is displayed with respect to each unit Select a unit that you want to change IP address and click Edit Setting IP address Setting IP address window is displayed Specify the unit name and input IP address Subnet Mask and Default Gateway Click OK to ...

Страница 17: ...ission speed OFF OFF OFF 115200bps ON OFF OFF 2400bps OFF ON OFF 4800bps ON ON OFF 9600bps OFF OFF ON 19200bps ON OFF ON 38400bps OFF ON ON 57600bps ON ON ON 115200bps Note 1 Only when MODE 4 of switch 1 is set to ON Hardware and switches setting is available 2 When MODE 4 of switch 1 is set to OFF Software and switches setting is not available 3 Data length is fixed with 8 bit 4 Setting condition...

Страница 18: ...lp in Configurator WD for the way to set Note In case of setting by Configurator WD MODE 4 of switch 1 should be set to OFF software Select a Signal converter which is to be set Click Edit Communication setting and Communication setting window is displayed You can set the communication conditions for COM1 RS232C and COM2 RS485 individually Note Be sure to confirm COM No Set protocol of Ethernet ne...

Страница 19: ...ct MODBUS TCP RTU This it the display when you select MODBUS TCP ASCII Set action mode of PLC PC for Ethernet network At present you can select only Server mode Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 20: ...S485 individually When setting by hardware communication set switches the settings of COM1 and COM2 are common Set Data length of serial communication At present it fixes 8bit Set Parity of serial communication Default setting is Odd Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 21: ...ct from CR CR LF and None Set COM Timeout of serial communication Default setting is 5000ms 5s It means the time to wait responses from the devices connected by RS232C and RS485 After passing the set time it finishes the communication via the serial port Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 22: ... communication devices at server mode Default setting is 9094 for RS232C and 9095 for RS485 This is the display when TCP mode is selected This is the display when Modbus TCP mode is selected for COM1 RS232C It shows that the source port number of serial communication device to server 502 the standard of Modbus TCP RTU is recommended Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info...

Страница 23: ... server after setting timeout time signal converter cut the connection with the server and wait for the next connection Default setting is 60sec Note1 In case of setting 60 it cut TCP connection when there are no communication for 60 seconds after establishing TCP connection 2 KS1 Signal converter keeps the connection until time out setting time after establishing TCP connection if the client cut ...

Страница 24: ...ote 5 3 3 Transmission distance 15m Max 1200m note2 3 Transmission speed 2400 4800 9600 19200 38400 57600 115200bps COM receive time out note 6 Setting range 10ms to 60s Setting range 10ms to 60s Data length 8bit fixed Parity Not available Odd number Even number Stop bit 1 2 Transmission Format End code CR CR LF None Serial Ethernet Conversion method Command response method Note1 TCP port number i...

Страница 25: ...d when connecting MODBUS TCP When MODBUS TCP is set to main COM port set the other port to another port 3 The time from when it comes no connection after establish TCP connection to cut TCP connection when connect by MODBUS TCP If set to 0 KS1 Signal converter keeps TCP connection until when MODBUS TCP client cut correctly However without transmission for 2 hours it cut TCP connection 4 When it do...

Страница 26: ...lue This shows the command to read out 1 byte data designated by 238D send from MODBUS TCP client to serial communication device number 01 Example of MODBUS RTU Command from MODBUS TCP server KS1 Signal converter to Serial slave unit Item Data CRC Ex of setting value 0103238D0001 1FA5 Meaning Slave unit No 01 Function code 03 Data address 238D Data 1 byte CRC value of data Setting range Any value ...

Страница 27: ...s 0005 Example of response from MODBUS TCP server to MODBUS TCP client Error Data error 1 Item Transmit ID Protocol ID Transmit byte Transmit data Ex of setting value 0001 0000 0003 00800A Meaning ID of Transmit unit Fixed value Number of byte of transmit data Error code 0A This shows the example of error response when it send command without transmit ID protocol ID and transmit byte It response 0...

Страница 28: ...tem error 2 RS485 RS232C initialize failure 0x62 System error 3 TCP initialize failure 7 2 How to clear the error You can clear signal converter s error when error LED is blinking by the below 2 methods Power off and on again or pressing for 2 or more seconds make system reset Turn the power on with pressing reset switch in order to initialize the settings It initializes all settings by software E...

Страница 29: ...e upgrade of KS1 Signal Converter and Configurator WD October 2007 ARCT1F437E 2 Third edition Added the explanation of the new features of the setting Ethernet Timeout along with the upgrade of KS1 Signal Converter March 2010 ARCT1F437E 3 Fourth edition Added the explanation about MODBUS TCP along with the upgrade of KS1 Signal Converter Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email...

Отзывы: