
Overview of the DP Base Interface
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
51
3.7.3 Typical Sequences for Polling DPC1 master operation
Definition
After initializing the CP as described above, the user program can use DPC1
functions during cyclic operation to exchange data with slaves and to respond to
alarms.
This section describes how these services are used in the polling mode; in other
words, when continuously querying slaves without waiting mechanisms.
Individual pairs of jobs and confirmations can be used parallel to each other.
Polling to Write to a Slave with DPC1
Step Action Meaning
1
Send the write job
(DP_ds_write)
On completion of the function, the job
is active.
2 Poll the result
(DP_get_result) until the
job is completed
The result can be recognized by the
order_id in the request field.
Polling to Read from a Slave with DPC1
Step Action Meaning
1 Send read job
(DP_ds_read)
On completion of the function, the job
is active.
2 Poll result with data
(DP_get_result) until the
job is completed.
The result can be recognized by the
order_id in the request field.
Kommentare zu diesen Handbüchern