How to configure the Saia PCD® as DP Master, if the Slave is a Siemens CP 342-5?
The configuration of the two devices has to match.
On the Saia side the DP configuration is made using the DP-network configurator and definig the modules to exchange. The CP 342-5 communicates using FC's.
In the Siemens programming tool the FC 1 is used for sending data to the master. FC 2 is used for receiving data from the master. FC 3 and 4 can be used for diagnostic and control.
CALL FC 1
SEND :=P#DB119.DBX0.0 BYTE 64
CPLADDR: Is the address of the CP 342-5 in hexadecimal (Decimal=256). This has to be defined in the Siemens Hardware Configuration.
SEND: Is the data to send. In this case the data is located in DB119. The amount of data to send is 64 Bytes.
DONE: Indicates if the function was executed
ERROR: Indicates errors
STATUS: Shows the actual status. For more information refer to the Simatic Manager help.
On the Saia side we have to configure the same amount of BYTES. Since the Slave sends 64 BYTE the configuration on the SAIA site has to be 64 BYTES as well.
There are two possibilities:
32 word AI constcy complet: in this case the data is mapped to registers
64 bytes AI constcy complet: in this case the data is mapped to flags.
The same structur can be used if the Siemens Slave receives data from the master:
RECV :=P#DB119.DBX100.0 BYTE 64
32 word AO constcy complet
64 bytes AO constcy complet
PG5 2.0 / Profibus DP
Last update: 30.05.2015 09:33
First release: 05.02.2009 10:11