SIEMENS-3964R Protocol

 

1. Read settings

 

<Figure 1> is read setting example of communication protocol when you use 3964R which is one of  RS-232 protocol of SIEMENS S5, S7 type PLC, in Germany.

<Figure 1> Read setting example of SIEMENS-3964R protocol

Device part of <Figure 1> input Com Port(COM1), Com Baud(19200), Parity Bit(2), Data Bit(8), Stop Bit(1) respectively, according to device.

 

Importance) SIEMENS 3964R protocol is needed to insert communication protocol definition module by using LADDER program. Also, you have to map periodical polling time and memory to polling for communication by using LADDER.

Setting method for communication protocol definition module, etc of SIEMENS PLC are set by referring to PLC manual and each modules.

 

SIEMENS-3964R protocol's read schedule

 

Notice) SIEMENS-3964R protocol's Size to Read, Contents to Read and etc are different according to settings because it only communicates with memory which is set by LADDER program.

 

Read schedule setting parameters are as follows:

1)      STATION - Don't care( fixed to 0 ).

2)      Read Type - Alignment method for the read memory.

L - Align the read data as LOW BYTE + HIGH BYTE,

H - Align the read data as HIGH BYTE + LOW BYTE,

0 or Etc - Save each byte in order.

3)      Read Start Address - Don't care.

4)      Save Start Address for Communication Server - Position of ScanBuf where read value is to be saved.

5)      Read Size - The number of data to read - Don't care. (Read memory as much as the number of the set at PLC Ladder : Max 240 byte)

 

READ schedule example

READ,   0,    0,    0,    0,   1,

READ,   0,    L,    0,   20,   1,

READ,   0,    H,    0,   40,   1,

 

2. Writing settings

 

Reference) Digital/Analog output of SIEMENS-3964R protocol was written as structure of transferring byte data up to designated output address(or address + 1).

 

Digital Write

Digital write setting parameters are as follows :

PORT

Connected PORT number

0 ~ 255

Station

Don't care

 

ADDRESS

Digital output address

0000 ~ 2397, 

-          High 3 digits are BYTE position

-          Sub 1 digit is BIT position

Extra1

Don't care

 

Extra2

Don't care

 

Write example 1)

Port : 0  Station : 0  Address : 0023,  Extra1 : Blank, Extra2 : Blank,

If you set as above and write digital value, you can ON/OFF the 4th bit value of 3rd byte which is designated at LADDER.

 

Write example 2)

Port : 0  Station : 0  Address : 0157,  Extra1 : Blank, Extra2 : Blank,

If you set as above and write digital value, you can ON/OFF the 8th bit value of 16th byte which is designated at LADDER.

 

Analog Write

Analog write setting parameters are as follows :

PORT

Connected PORT number

0 ~ 255

Station

Don't care

 

ADDRESS

Analog output address

0000 ~ 0239

Extra1

Byte, Word unit output

L - Low + High 2 byte output from designated address,

H - High + Low 2 byte output from designated address,

0, Etc - Output the 1 byte data to designated address.

Extra2

Don't care

 

Write example 1)

Port : 0  Station : 0  Address : 0000,  Extra1 : Blank,  Extra2 : Blank,

If you set as above and write analog value, you can change 1st(no.0) byte value which is designated at LADDER, as designated input value(between 0 and 255).

 

Write example 2)

Port : 0  Station : 0  Address : 0010,  Extra1 : L,  Extra2 : Blank,

If you set as above and write analog value, you can change 11th ~ 12th(no.10 ~ no.11 address) byte which are designated at LADDER, as designated input value(between 0 and 65535) of low+high type.

 

Write example 3)

Port : 0  Station : 0  Address : 0012,  Extra1 : H,  Extra2 : Blank,

If you set as above and write analog value, you can change 13th ~ 14th(no.12 ~ no.13 address) byte which are designated at LADDER, as designated input value(between 0 and 65535) of high+low type.