background image

WWW.SSTCOMM.COM

18

MODBUS slave protocol and Self-defined protocol

The two protocols are slave protocols. Their IO status word is used to indicate the running state of the protocol
by a 16-bit integer change. Every time a correct request frame is received from the slave. The value is
automatically added 1.
The 16-bit integer is represented in a Little-endian, where the low address represents the low byte of the 16-bit
integer and the high address represents the high byte of the 16-bit integer

3.3.1.11 Response Timeout Handling for Master Protocol

The specific application scene is like this: After the master sends the request frame, it will wait for the response
of the slave device within the limited time. If the slave does not respond within a limited time, the master
protocol will trigger the response timeout processing. How to deal with this?
If the command is successfully executed the previous time, it will be reissued three times (a total of four times),
In the process of retransmission, if any response is given from the slave, it will stop repeating and transferred to
the next command. If the slave still has no response after three retransmission, the processing method given in
the response timeout handling option is executed. Namely: Clear or Hold. It should be noted that the clear or hold
here is for the data part of the slave response frame. Because GT200-PN-RS transformation between protocols is
achieved by mapping, so the data part of each command's response frame will have a mapping area in the input
buffer of GT200-PN-RS.Our "clear or hold" is for this mapped data area. Specifically, if "clear" is selected, all
data in the map area will be set to 0 after the response timeout; if " hold", the content of the map data area will
not be changed after the response timeout.
If the command is unsuccessfully executed the previous time, re-transmission is not executed.

3.3.2 Self-defined Protocol

3.3.2.1 Definition

User device acts as initiator, send output data in the request frame.
GT200-PN-RS acts as responder which sends input data in the response frame.
Communication way is point to point.
Time interval between bytes in request frame should be less than 50ms, or GT200-PN-RS will dispose this frame

data.

For every valid request frame, GT200-PN-RS should make response in 200ms.
Supports communication baud rate range 300~115200 bps, 8 data bits, parity (None, Odd, Even, Mark, Space)

Содержание GT200-PN-RS

Страница 1: ...Universal Serial PROFINET IO Gateway GT200 PN RS User Manual V 1 0 REV A SST Automation E mail SUPPORT SSTCOMM COM WWW SSTCOMM COM...

Страница 2: ...3 4 Change Device IP and Name 25 3 4 1 Scan Devices on LAN 25 3 4 2 Change IP Info and Name 26 3 5 IP Address Conflict Resolution 29 3 6 Restore to Default Configuration 31 4 Software Instructions 32...

Страница 3: ...WWW SSTCOMM COM 3 4 6 2 Save Configuration Project 51 4 7 Export EXCEL 51 5 Installation 52 51 Machine Dimension 52 5 2 Installation Method 52...

Страница 4: ...o know the technical details of Modbus but refer to this manual and the application cases provided complete configuration according to the gateway configuration software SST TS CFG without complex pro...

Страница 5: ...efined protocol User Config 7 Serial port parameters Operation mode Half duplex Baud rate 300 600 1200 2400 4800 9600 19200 38400 57600 and 115200 bps optional Data bits 7 8 Parity None Odd Even Mark...

Страница 6: ...ication interface isolation 3KV 13 External dimensions W H D 1 57 in 4 92 in 4 33 in 40mm 125mm 110mm 14 Protection level IP20 1 4 Related Products The related products include GT200 DN RS Modbus Devi...

Страница 7: ...erial TX Green Blinking Serial port data sending OFF No data is sending Serial RX Green Blinking Serial port data receiving OFF No data is receiving Serial TX Green Blinking Serial port data sending O...

Страница 8: ...state MS Network indicator state NS Description OFF Red blinking Start up state waiting to initialize Green on Red blinking Initialize complete no connection with PLC Green on Green on PLC has connect...

Страница 9: ...ng depending on environmental conditions EMC Site number 32 stations per subsection without repeater and can increase up to 127 stations with repeater When serial port 1 and serial port 2 simultaneous...

Страница 10: ...45 plug in its pin standard Ethernet signal is defined as below Pin Signal Description S1 TXD Tranceive Data Output S2 TXD Tranceive Data Output S3 RXD Receive Data Input S4 Bi directional Data S5 Bi...

Страница 11: ...name of devices Users can see chapter 3 4 Change Device IP and Name for help There are 3 necessary conditions which need to happen simultaneously when PROFINET device of SSTCOMM is communicating with...

Страница 12: ...o conduct the conflict detection to memory mapping data of the gateway After installation double click the software icon to enter into the main interface of the software See chapter 4 for the detailed...

Страница 13: ...et data from address range 0x0000 0x03FF 0x4000 0x43FF and send them to the Modbus slave For all read registers read coils command GT200 PN RS can write the data returned from Modbus slave to address...

Страница 14: ...ser Config POLL is written command Read command The command that is not written is read Command execution process 1 The number of timeout retransmission is set to 0 2 Request frame for sending command...

Страница 15: ...by one and execute the command if the data of a command changes Until the data of all commands in the queue did not change 2 Execute a command in the normal queue An execution index in a normal queue...

Страница 16: ...ollowing table Before exchange After exchange Byte index Byte value Byte index Byte value 0 0x12 0 0x78 1 0x34 1 0x56 2 0x56 2 0x34 3 0x78 3 0x12 3 3 1 9 Bytes Exchange Way in Various Protocols The sc...

Страница 17: ...to indicate whether the execution of each command is successful or not When the command execution is successful the corresponding bit is set to 1 otherwise it is set to 0 When a subnet is configured a...

Страница 18: ...nd If the slave still has no response after three retransmission the processing method given in the response timeout handling option is executed Namely Clear or Hold It should be noted that the clear...

Страница 19: ...2 Response Frame Message Correct response Input data length High byte of input data start address Low byte of input data start address Input data 1 Input data n Parity Data number n equals input data...

Страница 20: ...s of GT200 PN RS 3 3 3 User Config 3 3 3 1 Definition Common mode protocol message of GT200 PN RS can be set freely by users which solves the communication problem between Modbus standard protocol and...

Страница 21: ...er constant data parity and end For example configuring Modbus commands RTU transmission format Request Slave address 01 Function code 03 Register address H 00 Register address L 00 Number of data H 0...

Страница 22: ...mat supports following parity None CRC check and sum check For example configuring Modbus command ASCII transmission format 3A Slave Function Number of data Data 1 Data n LRC high byte LRC low byte CR...

Страница 23: ...nstant parity end ASCII frame header constant ASCII data ASCII parity ASCII end 3 3 3 3 User Config Receiving only User Config Receiving only mode only receives data and doesn t respond It can be used...

Страница 24: ...eld will automatically lose the check value according to the check mode For example one byte of the end of the frame is discarded when the sum check is performed and two bytes of the end of the frame...

Страница 25: ...WW SSTCOMM COM 25 3 4 Change Device IP and Name 3 4 1 Scan Devices on LAN 1 Open SST TS CFG and click Tools on the menu bar shown as below 2 Click Assign Ethernet Parameters will pop up below interfac...

Страница 26: ...e shown as below You can see that GT200 PN RS device is on the LAN showing its IP MAC address Device Name Gateway and Subnet 3 4 2 Change IP Info and Name 1 Scan the device according to chapter 3 4 1...

Страница 27: ...AC address shows MAC address of GT200 PN RS unmodified 2 Modify IP address to 192 168 0 188 gateway address to 192 168 0 1 and click Assign Ethernet Parameters its operation interface is shown as belo...

Страница 28: ...M COM 28 Click OK 3 Change device name to gt200pnrs and click Assign shown as below If successful it will pop up the dialog box as below Click OK 4 Click again Scan will lead to scanning device again...

Страница 29: ...me users can change IP address and name of GT200 PN RS according to chapter 3 4 Change IP Info and Name and ensure that others IP address and name are different Notes after changing is complete some r...

Страница 30: ...You can see the IP address is reset to 0 0 0 0 choose the device and log in the dialog box is shown as below Set IP Subnet and Gateway to 192 168 0 188 255 255 255 0 and 192 168 0 1 and you will see...

Страница 31: ...he same instruction as system startup Now you can t scan GT200 PN RS through SST TS CFG until restoring to the default configuration Specific steps are as follows a Power off GT200 PN RS b Set bit 1 D...

Страница 32: ...o use the software SST TS CFG to configure the product GT200 PN RS You may also check the software user manual to get detailed usage Double click software icon to enter the main interface of software...

Страница 33: ...arameters New Create a new configuration project Open Open the configuration project Save Save the configuration project Add Node Add a Modbus slave node Delete Node Delete a Modbus slave node Network...

Страница 34: ...nflict Detection To check whether there are conflicts with configured commands in the gateway memory data buffer Export EXCEL Export current configuration to the local hard disk saved as xls file Debu...

Страница 35: ...Left click on the node to be deleted and then perform the operation of deleting node The node and all commands will be deleted 3 Add commands Left click on the node and then perform the operation of...

Страница 36: ...Copy node Left click on the existing node choose the node and execute the operation of copying nodes include all commands under the node 4 3 Configuration View Operation 4 3 1 Subnet Configuration In...

Страница 37: ...ut data needs to be exchanged between GT200 PN RS and PLC It depends on the PROFINET configuration dialog box Numbers of Output Bytes The length of output data needs to be exchanged between GT200 PN R...

Страница 38: ...data module on the right side to the left slots Notes The slots and module in PROFINET configuration must be the same as that of STEP7 4 3 1 2 Modbus Master The configurable parameters are Modbus baud...

Страница 39: ...bus slave s response time range 300 60000ms Delay between Polls Delay between a response has been received and sending next request the range is 0 2500ms Output Mode Modbus write command there are thr...

Страница 40: ...a fast scan command without correct response for N times then the command will demote a slow scan command This parameter is valid for Modbus Reading command and cycle Writing command Auto Demotion Af...

Страница 41: ...its 1 2 Slav Address 0 247 Transmission Mode RTU ASCII IO Channel Status Word Enabled will use a 16 bit integer to represent receives the correct number of frames Byte Swap No swap double byte swap fo...

Страница 42: ...nnel Status Word Enabled will use a 16 bit integer to represent receives the correct number of frames Byte Swap No swap double byte swap four byte swap and Four Byte Big endian and Little endian Swap...

Страница 43: ...aster sends request it waits the Modbus slave s response time range 300 60000ms Delay between Polls Delay between a response has been received and sending next request the range is 0 2500ms Valid when...

Страница 44: ...al between Characters Start to count after receiving last byte If exceeding that time this will be regarded one full frame is received and ready to receive next frame Range 1 300ms Valid when communic...

Страница 45: ...e module memory Read command 1 2 3 4 0x0000 0x03FF Write command 5 6 15 16 0x4000 0x43FF Users can also use this area when write command is used as local data exchange 0x0000 0x03FF Mapping Bit 0 7 Fo...

Страница 46: ...s poll mode the configuration interface is shown as below Under this condition configuration method of commands can refer to chapter 4 3 3 4 3 4 Comment Interface Comment interface displays the explan...

Страница 47: ...ured command in the command list interface Check box before each command is used to check the position of this command in memory mapping area Click one command and check the box it will show the posit...

Страница 48: ...l be in green without conflict Blue When address mapping area is located in output area it will be in blue without conflict Red In input area or output area different command occupied on the same byte...

Страница 49: ...oad on the tool bar it will pop up the following interface If scanning no device please click Refresh In the above picture GT200 PN RS shows first select the device and click Log In 4 5 2 Upload Selec...

Страница 50: ...M COM 50 4 5 3 Download Select Download it will download configurations to the gateway and the interface is shown as below Remark Please confirm the configurations are correct before downloading confi...

Страница 51: ...ration project that you have saved 4 6 2 Save Configuration Project Select Save or Save as you can save the configuration project with chg as its extension 4 7 Export EXCEL Users can use the function...

Страница 52: ...WWW SSTCOMM COM 52 5 Installation 51 Machine Dimension Size 1 57 in width 4 92 in height 4 33 in depth 5 2 Installation Method Using 35mmDIN rail...

Страница 53: ...WWW SSTCOMM COM 53...

Отзывы: