Siemens SIMATIC 3964(R) CW communication
...
protocol
Supported device types and versions
Communication line configuration
Line protocol parameters
Communication station configuration
I/O tag configuration
Literature
Changes and modifications
Document revisions
Kotva | ||||
---|---|---|---|---|
|
...
The protocol is an implementation of the Control Web "SIMATIC 3964R" protocol and was created to facilitate the replacement of Control Web applications with D2000 technology.
On the link-layer, this protocol implements the Siemens SIMATIC 3964R protocol and uses it to read from and write to the PLC. The protocol only supports database block (DB) addressing 0-255.
The protocol contains the following header defined by Control Web:
Byte | Name | Description |
---|---|---|
1 | Id | Zone identifier ('D' = data block) |
2 | DB | The zone number (data block) |
3-4 | DW | Word address within a zone (lower byte, upper byte) |
5 | Cmd | Command ('R' - reading, 'W' - writing) |
6-7 | Count | Number of read/written words (lower byte, upper byte) |
The protocol supports reading data from control PLC automats of Siemens SIMATIC of the S5 and S7 series. PLC Simatic must be equipped with the serial communication point-to-point modules - for more details see the decription description of Siemens SIMATIC 3964(R) protocol.
...
Kotva | ||||
---|---|---|---|---|
|
...
A dialog window of of communication line configuration - Protocol parameters tab.
They influence some optional protocol parameters.
The following line protocol parameters are defined:
Parameter | Meaning | Unit / size | Default value | ||||||
---|---|---|---|---|---|---|---|---|---|
| A mode of communication:
Note: Active communication is used when Control Web is replaced by D2000. | Active Passive Passive (duplex) | Active | ||||||
| Maximum size (in bytes) of data read by a single |
request. Add to this size a 7-byte Control Web header to obtain the full length of response (without duplicated DLE bytes) according to the SIMATIC 3964(R) standard. | 4 |
- 249 B | 128 B | |||||
|
The maximum number of request retries in case of a communication error. | - | 2 | |||||||
| A delay before resending a request in case of a communication error. | ms | 100 ms | ||||||
| Activates |
debug info about the loaded values of I/O tags. Use this parameter only when communication must be |
debugged because it |
consumes CPU and slows down the communication. | YES/NO | NO |
Kotva | ||||
---|---|---|---|---|
|
...
The Communication station dialog box - tab Protocol parameters.
Parameters defined in the input field have an effect on some optional protocol parameters. The following station protocol parameters can be defined (the same as parameters of protocol Siemens SIMATIC 3964(R))::
...
- only "DB" addresses can be used, i. e. only variables in data blocks are available.
- the protocol implements a 1-byte address of the data block, i. e. it supports addressing of data blocks 0-255
- all value types except STRING are available:
Identifier <type> | Description |
---|---|
X | Bit (boolean). Specify a bit number 0 to 7 - e.g. DB9, X8.3 |
B | Byte (8 bits unsigned). |
W | Word (16 bits unsigned). |
D | Double word (32 bits unsigned). |
CHAR | Character (8 bits signed). |
INT | Integer (16 bits signed). |
DINT | Double integer (32 bits signed). |
BCD | BCD-coded 2-byte number (0-9 999) |
LBCD | BCD-kódované 4-byte number (0-99 999 999) |
REAL | Floating-point number (32 bits according to IEEE754 standard). |
LREAL | Long floating-point number (64 bits according to IEEE754 standard). |
DT | Date and Time, 8 bytes in BCD format, millisecond accuracy. |
DTL | Date and Time, 12 bytes in BCD format, nanosecond accuracy Note: D2000 uses only a millisecond accuracy |
TIME | Time (32 bits signed) in ms. |
TOD | Time of day (32 bits unsigned) in ms. |
- address examples:
DB3,REAL0
DB3,W4
DB3,B6
...
- Ver. 1.0 - January 16th, 2020 - document creation.
- Ver. 1.1 - July 10, 2020 - Support for BCD and LBCD.
Info | ||
---|---|---|
| ||
...