Siemens 512 - 525 (3964R)


This Protocol enables communication with Siemens 512 or 525 Comms Modules. When using a CP525 `Flag', data should be moved to `Data' memory to allow access by the System. More information on `Flag' and `Data' memory is listed below. The CP525 module must be configured as 3964R.

 

Details on the device address can be found in the Device Properties Information Topic.

 

External Address Format

External Address is an ascii string which exactly references an item of data within the PLC. It can be entered at configure time as a text string, and will be validated by the system before use. For this protocol the external address has the following format: 

 

 N - Dec number 0 - 9

           

Datablock Type

Data Block No.

Delimiter

Word or Byte No.

Optional coordinating flag
(see text below)

DB

NNN

,

NNN

NNN,NN

FG

000

,

NNN

NNN,NN

TM

000

,

NNN

NNN,NN

CT

000

,

NNN

NNN,NN

II

000

,

NNN

NNN,NN

OI

000

,

NNN

NNN,NN

 

The datablock types are as follows:

 

 

DB

Data Block (Words)

 

FG

Flag (Bytes)

 

TM

Timer (Bytes)

 

CT

Counter (Bytes)

 

II

Input (Bytes)

 

OI

Output (bytes)

 

Offset Format      

This protocol does not support table and offset style configuration.

 

Property Pages      

No property pages exist for this protocol

 

Protocol Compatibility            

An optional coordinating flag may be used to disable the Comms Block if the specified flag is set. If the flag is not specified or is set to 0,0, then no co-ordination is performed. The format is as follows:

 

     `flag byte no.',

     `bit no. within byte'.

 

Set up the PLC data table within the PLC to work with block check characters.

The Drive Out may only access data blocks within the PLC. If a Digital Drive Out is used, i.e. a bit value, then a read/write back function will be performed to enable one bit in a PLC data block to be changed.

 

Note: To allow the state of only 1 bit to be altered, a Read/Write back function has been implemented. To ensure that no data loss occurs, no changes to any bits within the data blocks associated with Drive Outs from a Digital Point, should be made from the PLC.

   

The system cannot be held responsible for any data changes during this time, since it will write what was previously read. The user should be fully aware of this situation.

The Bit Offset will identify which of the 16 bits within the block is to be changed.

 

Wiring Information      

When connecting to a PC, a current loop converter must be used to convert from RS232 to 20mA. Refer to the Siemens documentation for more detail.

 

Examples

Example 1.

Read Counters from location 4.

 

External Address:

CT000,004,000,00

Example 2.

Write word 10 into Data Block 1.

 

External Address

DB001,010,000,00

 

PLC Specific Errors

Errors originating from Siemens PLC and defined with reference to the PLC equipment.

 

PLC Error Code 52

Length of data exceeded

 

PLC Error Code 20

Database not available or too short

 

Standard Errors