
Overview of the DP Base Interface
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
61
Polling Productive Operation
The user program can access data in the process image but must be prepared to
process parameter and configuration frames. This is the case when the master
wants to include the slave module in data exchange (for example, when the master
starts up or after the bus connector has been removed and reinserted, ...). The
following sequence must be executed cyclically in a main program loop.
Step Action Meaning
1 DPS_get_ind Query whether indications have
arrived.
2a
If DPS_CHK_PRM:
DPS_set_resp
If a new parameter assignment has
arrived:
Check user parameter data and
Acknowledge positively or
negatively
2b
If DPS_CHK_CFG:
DPS_set_resp
If a new configuration has arrived:
Check configuration data and
Acknowledge positively or
negatively.
3
Access to PI
(PI -
P
rocess
I
mage)
Read and write data in the process
image (access as necessary)
4 Go to Step 1. DPS_get_ind must be called cyclically.
Note
After positive confirmation of configuration data, the input data in the process
ima
e table of the slave module must be written at least once
initialization
, before
the slave module can change to data exchange.
Shutdown Sequence
To shut down the CP, the slave module changes to the OFFLINE mode and the CP
is stopped:
Step Action Meaning
1 DPS_stop Bring the slave to the OFFLINE state
2 DP_release_pointer Enable access to the process image.
3 DPS_close Log off on the slave module
4 DP_reset_cp Stop the CP.
Comentarios a estos manuales