background image

Functional Overview 

S3964R 

 ProLinx Gateway 

Driver Manual 

Siemens 3964R Protocol 

 

 
ProSoft Technology, Inc. 

Page 41 of 64 

April 14, 2009 
 

Word Description 

13 Always 

0. 

14 Always 

0. 

15 Always 

0. 

16 

First word of data. 

11 

Second word of data. 

… … 

n+15 

n-th word of data. 

 

5.4 Example 

Messages 

Here are some examples of sending and receiving data through the module. 
There are four scenarios: 

The Modbus TCP/IP device is sending data to the 3964R device 

The Modbus TCP/IP device is fetching data from the 3964R device 

The 3964R device is sending data to the Modbus TCP/IP device 

The 3964R device is fetching data from the Modbus TCP/IP device. 

Note

: For each ProLinx serial port connected to a 3964R device, you need to continually monitor 

Word 0, Sequence Number, in the Receive Buffer for a change in value. When it changes, check 
the Job Code so you can act 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 write data to the ProLinx. You will setup the 

T

RANSMIT BUFFER

. The 3964R device will be sent a 3964R telegram from the 

ProLinx. You will setup the Modbus TCP/IP device to continually poll the 

R

ECEIVE 

BUFFER

 for errors. 

Start by setting B to the value in G. 

Then write the data count and the data in E and F. 

Now set the trigger, A, to tell the ProLinx to begin. Set it to the value already 
in A, plus 1. 

Watch A and H. When A = H, then you know the ProLinx module has read 
the data you just wrote. 

Continually poll the error code, J to verify no errors. 

 

Transmit Buffer 

 

Receive Buffer 

Item 

Address 

Transmit Value 

 

Item 

Address 

Receive Value 

(<port#> * 600) + 300 

Sequence Number   

<port#> * 600 

Sequence Number 

((<port#> * 600) + 300) + 1  Last Receive 

Sequence Number 

 

(<port#> * 600) + 1 

Last Transmit 
Sequence Number 

((<port#> * 600) + 300) + 2  Blocks Remaining 

 

(<port#> * 600) + 2 

Blocks Remaining 

Содержание ProLinx S3964R

Страница 1: ...S3964R ProLinx Gateway Siemens 3964R Protocol April 14 2009 DRIVER MANUAL...

Страница 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...

Страница 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...

Страница 4: ......

Страница 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...

Страница 6: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 6 of 64 ProSoft Technology Inc April 14 2009 Index 63...

Страница 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...

Страница 8: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 8 of 64 ProSoft Technology Inc April 14 2009...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 14: ...S3964R ProLinx Gateway Start Here Siemens 3964R Protocol Driver Manual Page 14 of 64 ProSoft Technology Inc April 14 2009...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 28: ...S3964R ProLinx Gateway Application Ports Siemens 3964R Protocol Driver Manual Page 28 of 64 ProSoft Technology Inc April 14 2009...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 54: ...S3964R ProLinx Gateway Reference Siemens 3964R Protocol Driver Manual Page 54 of 64 ProSoft Technology Inc April 14 2009...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 62: ...S3964R ProLinx Gateway Support Service Warranty Siemens 3964R Protocol Driver Manual Page 62 of 64 ProSoft Technology Inc April 14 2009...

Страница 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...

Страница 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...

Отзывы: