background image

S3964R 

 ProLinx Gateway 

Functional Overview 

Siemens 3964R Protocol  

Driver Manual 

 

 
Page 44 of 64  

ProSoft Technology, Inc. 

April 14, 2009 

 

Transmit Buffer 

 

Receive Buffer 

Item 

Address 

Transmit Value 

 

Item 

Address 

Receive Value 

((<port#> * 600) + 300) + 3 

Reserved 

 

(<port#> * 600) + 3 

Error Code 

((<port#> * 600) + 300) + 4 

Data Count 

 

(<port#> * 600) + 4 

Data Count 

((<port#> * 600) + 300) + 5 
through ((<port#> * 600) + 
300) + 299 

Data 

 

(<port#> * 600) + 5 
through (<port#> * 
600) + 299 

Data 

 

Port 0 Transmit Database 

Here is an example of a RK512 DB-FETCH to read data from the 3964R 
communication partner on port 0. This example reads five words of data. The 
values for the five words of data are 111, 222, 333, 444, and 555. 

Word 

Value 

Description: 

300 

Transmit Sequence Number. Increment this value after all other data in 
the message is ready. Changing this value will trigger the 3964R driver 
to transmit this message to the 3964R communication partner. In this 
example we are changing the value from 7 to 8 to trigger the transmit of 
the fetch command. 

301 

Last Received Sequence number. The Modbus TCP/IP device must 
copy the last received sequence number from the Receive database 
(word[0]) to this location after a message has been read from the 
receive database. In this example the value currently in Receive 
database (word[0]) is 3, so that value is copied here to tell the 3964R 
driver that we have read the last data and it is safe for the driver to 
write to the receive database. 

302 

Reserved. 

303 

Reserved. 

304 

10 

10 word header. 

305 

0x0045 

Job Code ID. 0x0045 = DB-FETCH. 

306 

Data Block. 

307 

Data Word. 

308 

Fetching 5 data words. 

309 

Coordination Byte. 

310 

Data Type. 0 = Word data 

311 

Reserved. 

312 

Reserved. 

313 

Reserved. 

314 

Reserved. 

 

Summary of Contents for ProLinx S3964R

Page 1: ...S3964R ProLinx Gateway Siemens 3964R Protocol April 14 2009 DRIVER MANUAL...

Page 2: ...D EXPLOSION AVANT DE D CONNECTER L EQUIPMENT COUPER LE COURANT OU S ASSURER QUE L EMPLACEMENT EST D SIGN NON DANGEREUX Markings ISA ISA 12 12 01 Class 1 Div 2 CSA cUL C22 2 No 213 1987 243333 CL I Div...

Page 3: ...marks of ProSoft Technology Inc All other brand or product names are or may be trademarks of and are used to identify products and services of their respective owners ProSoft Technology Product Docume...

Page 4: ......

Page 5: ...iguration 19 2 3 Downloading a File from PC to the Gateway 22 3 Application Ports 23 3 1 Serial Port Cable Connections Config Debug and Port 0 23 3 2 Cable Connections 23 4 Diagnostics and Troubleshoo...

Page 6: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 6 of 64 ProSoft Technology Inc April 14 2009 Index 63...

Page 7: ...c and Troubleshooting Verifying Communication page 36 Diagnostics and Troubleshooting page 29 This section describes how to verify communications with the network Diagnostic and Troubleshooting proced...

Page 8: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 8 of 64 ProSoft Technology Inc April 14 2009...

Page 9: ...eference Guide 1 2 Install ProSoft Configuration Builder Software You must install the ProSoft Configuration Builder PCB software in order to configure the S3964R You can always get the newest version...

Page 10: ...uble click the PROSOFT CONFIGURATION BUILDER SETUP program and follow the instructions on your screen to install the software on your PC Note Many of the configuration and maintenance procedures use f...

Page 11: ...con to open the CHOOSE MODULE TYPE dialog box 2 On the CHOOSE MODULE TYPE dialog box select the gateway type Or 1 Open the PROJECT menu and choose LOCATION 2 On the LOCATION menu choose ADD MODULE To...

Page 12: ...n 2 Double click the icon to open the EDIT dialog box 3 To edit a parameter select the parameter in the left pane and make your changes in the right pane 4 Click OK to save your changes 1 2 4 Comment...

Page 13: ...e MODULE icon and then click the right mouse button to open a shortcut menu 2 On the shortcut menu choose VIEW CONFIGURATION This action opens the VIEW CONFIGURATION window 3 On the VIEW CONFIGURATION...

Page 14: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 14 of 64 ProSoft Technology Inc April 14 2009...

Page 15: ...figuration 15 Common Configuration 19 Downloading a File from PC to the Gateway 22 2 1 S3964R Protocol Configuration 2 1 1 Module This section defines the configuration for the Module level data Modul...

Page 16: ...the port No Port Disabled Yes Port Enabled RS Interface 0 RS 232 1 RS 422 2 RS 485 This parameter is only used for Ports 1 2 or 3 to configure the electrical interface for the individual ports Import...

Page 17: ...ts 1 or 2 Stop bits signal the end of a character in the data stream For most applications use one stop bit For slower devices that require more time to re synchronize use two stop bits All devices co...

Page 18: ...bytes should be swapped 0 No data byte swapping 1 Data byte swapping Priority 0 or 1 This parameter specifies whether the module is high priority or low priority with respect to the CP 0 High priority...

Page 19: ...e and you can configure up to 200 separate copy commands For example you can copy data from the error or status tables in upper memory to internal database registers in the User Data memory area You c...

Page 20: ...estination for the copy is always within the Register Data area Take care to specify a destination address that will not overwrite data that may be required for other purposes Register Count 1 to 100...

Page 21: ...d 1234 2143 Delay Preset 0 to 65535 milliseconds This parameter controls how often this command will copy data between different areas in the database Set the Delay Preset for different intervals for...

Page 22: ...y 1 Verify that your PC is connected to the gateway with a null modem serial cable connected to the serial port on your PC and the serial port on the gateway 2 Open the PROJECT menu and then choose MO...

Page 23: ...le is provided for each active protocol port The DB 9M provides connections for RS 232 RS 422 and RS 485 as well as for the Debug port The diagrams in the following topics detail the pin assignments f...

Page 24: ...dware handshaking control and monitoring of modem signal lines is user definable If no hardware handshaking will be used the cable to connect to the port is as shown below RS 232 Modem Connection This...

Page 25: ...the device connected to the module requires hardware handshaking control and monitoring of modem signal lines RS 232 Null Modem Connection No Hardware Handshaking This type of connection can be used t...

Page 26: ...in the module and to control the module The cable for communications on this port is shown in the following diagram 3 2 3 RS 485 The RS 485 interface requires a single two or three wire cable The Comm...

Page 27: ...ogy Inc Page 27 of 64 April 14 2009 3 2 4 RS 422 RS 485 and RS 422 Tip If communication in the RS 422 RS 485 mode does not work at first despite all attempts try switching termination polarities Some...

Page 28: ...S3964R ProLinx Gateway Application Ports Siemens 3964R Protocol Driver Manual Page 28 of 64 ProSoft Technology Inc April 14 2009...

Page 29: ...ture with the Main Menu at the top of the tree and one or more sub menus for each menu command The first menu you see when you connect to the module is the Main menu Because this is a text based menu...

Page 30: ...port adapters often do not function reliably especially during binary file transfers such as when uploading downloading configuration files or module firmware upgrades A null modem serial cable Using...

Page 31: ...al port and the module A regular serial cable will not work 2 On computers with more than one serial port verify that your communication program is connected to the same port that is connected to the...

Page 32: ...in Menu When you first connect to the module from your computer your terminal screen will be blank To activate the main menu press the key on your computer s keyboard If the module is connected proper...

Page 33: ...hen in analyzer mode program execution will slow down Only use this tool during a troubleshooting session Before disconnecting from the Config Debug port please press S to stop the data analyzer and t...

Page 34: ...of data Selects page 0 1000 2000 or 3000 Displays data in decimal format Goes forward one page of data Goes forward five pages of data Displays data in text format Displays data in floating point form...

Page 35: ...N from the Database View menu to select and display the next 100 registers of data Viewing Data in Decimal Format Press D to display the data on the current page in decimal format Viewing Data in Hex...

Page 36: ...e This will occur during power cycle or after pressing the RESET button It occurs after a cold warm boot command is received It also occurs when a configuration is being downloaded Off Normal operatio...

Page 37: ...to the partner s data The data exchange is realized in the form of messages and response messages The maximum user data volume is 512 byte per job and 128 byte per message 3964R without RK512 allows o...

Page 38: ...ing the ProSoft Configuration Builder software 5 3 Communications 5 3 1 Job Allocation by the Modbus TCP IP Device This section describes the different types of jobs and the relevant parameters to be...

Page 39: ...river will not be able to write the new data to the receive database 2 Blocks remaining This location is reserved and should always be 0 3 Reserved Set to 0 4 Number of data words in this block This l...

Page 40: ...is updated asynchronously to data sends and receives so it should be monitored continuously because errors can occur even when the Modbus TCP IP device is not sending or receiving data Any new Transmi...

Page 41: ...upon it The 3964R telegram can arrive at any time asynchronously 5 4 1 Example Modbus TCP IP DB SEND of data to 3964R device Modbus TCP IP Write of data to ProLinx Use a Modbus Function Code 16 to wri...

Page 42: ...Value Description 300 7 Transmit Sequence Number Increment this value after all other data in the message is ready Changing this value will trigger the 3964R driver to transmit this message to the 396...

Page 43: ...The 3964R device will be sent a 3964R telegram from the ProLinx and will respond with the DB FETCH response telegram You will set up the Modbus TCP IP device by using a Modbus Function Code 3 to cont...

Page 44: ...a in the message is ready Changing this value will trigger the 3964R driver to transmit this message to the 3964R communication partner In this example we are changing the value from 7 to 8 to trigger...

Page 45: ...take awhile for a communication error to occur depending on timeout values and the type of error 4 16 Number of data words in this message block Modbus TCP IP multi block Block Number 1 word plus RK51...

Page 46: ...code J to verify no errors 5 Set B to the value in G Transmit Buffer Receive Buffer Item Address Transmit Value Item Address Receive Value A port 600 300 Sequence Number G port 600 Sequence Number B p...

Page 47: ...nto the selected block number to write the data to 9 5 Number of data words Total This is the number of data words that are being sent in this message 10 5 Number of data words Block Always equal to N...

Page 48: ...the Job Code is 0x1145 then read the RECEIVE BUFFER CHECK J FOR ERRORS AND K AND L FOR DATA 4 Then write the data count and the data in E and F 5 Set B to the value in G 6 Now set the trigger A to te...

Page 49: ...Communication Partner 7 0 Data Block number This is the block number to read the data from 8 0 Data Word number This is the index into the selected block number to read the data from 9 5 Number of da...

Page 50: ...Job Processing Both ports can be used independently from each other multi tasking A possible initialization conflict will be solved as follows S3964R has High Priority The S3964R retries the sending...

Page 51: ...4R protocol with or without RK512 was designed by Siemens for bi directional data communication through a point to point connection It is a peer to peer protocol with read and write access A BCC check...

Page 52: ...available on all four ports Additional Possible 38400 57600 115200 bps available only on Port 1 Port 2 and Port 3 Parity Even odd None Data bits 8 Stop bits 1 Maximum distance RS 232 15 cable meters...

Page 53: ...rred 34 0xFFDE Job code not defined 35 0xFFDD High High priority initialization conflict occurred 36 0xFFDC First Header Byte does not match telegram type 37 0xFFDB Character received was not an STX 3...

Page 54: ...S3964R ProLinx Gateway Reference Siemens 3964R Protocol Driver Manual Page 54 of 64 ProSoft Technology Inc April 14 2009...

Page 55: ...nd user data files as viewed through and LED patterns on the processor 3 Details about the serial devices interfaced if any 7 1 How to Contact Us Technical Support Internet Web Site http www prosoft t...

Page 56: ...st be shipped freight prepaid in the original shipping container or equivalent to the location specified by ProSoft and be accompanied by proof of purchase and receipt date The RMA number is to be pro...

Page 57: ...detailed in Limited Warranty page 57 The Warranty Period may be extended at the time of equipment purchase for an additional charge as follows Additional 1 year 10 of list price Additional 2 years 20...

Page 58: ...terms specified above for new Product provided said warranty will be for the period remaining on the original new equipment warranty or if the original warranty is no longer in effect for a period of...

Page 59: ...d against all liabilities losses claims costs and expenses including attorney s fees and expenses related to any claim investigation litigation or proceeding whether or not ProSoft is a party which ar...

Page 60: ...r other intellectual property 7 3 5 Disclaimer of all Other Warranties The Warranty set forth in What Is Covered By This Warranty page 58 are in lieu of all other warranties express or implied includi...

Page 61: ...mer 7 3 9 Allocation of Risks This Warranty allocates the risk of product failure between ProSoft and the Customer This allocation is recognized by both parties and is reflected in the price of the go...

Page 62: ...S3964R ProLinx Gateway Support Service Warranty Siemens 3964R Protocol Driver Manual Page 62 of 64 ProSoft Technology Inc April 14 2009...

Page 63: ...SEND of data to Modbus TCP IP device 46 Example Messages 41 Example Modbus TCP IP DB FETCH of data from 3964R device 43 Example Modbus TCP IP DB SEND of data to 3964R device 41 Example RK512 DB FETCH...

Page 64: ...ce 16 RS 232 24 Modem Connection 24 Null Modem Connection Hardware Handshaking 25 Null Modem Connection No Hardware Handshaking 25 RS 232 Configuration Debug Port 26 RS 422 27 RS 485 26 RS 485 and RS...

Reviews: