Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 208

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 207
FAQ (Frequently Asked Questions)
DP Base Programming Interface for CP 5613/CP 5614
208
C79000-G8976-C108-01
5.2 FAQs about Structuring the User Program
Can DP and DPC1 be operated at the same time?
Yes. The DP master must, however, already by in the OPERATE mode before
DPC1 functions can be used.
How many DPC1 jobs can be sent at the same time?
Per slave address, up to two DPC1 jobs can be sent at any one time, one for
reading or writing and one for alarm acknowledge.
How can I structure my user program?
There are basically three wait mechanisms that you can combine together:
x
You can poll with your user program, in other words, it queries the process
image cyclically.
x
You can use hardware events with semaphores as the wait mechanism.
x
You can call the DP_get_event function with a timeout value to wait for software
events.
You can also break down your user program into several threads (see also the
"ExamComp" sample program.).
What are the advantages of simply polling in the user program?
The program structure is relatively simple (assuming that your program does not
use any other interfaces that would require event handling such as DPC1). Polling
is particularly suitable when you expect a lot of data traffic due to a fast data
transmission rate and a lot of slaves with fast changing data.
Vista de pagina 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 237 238

Comentarios a estos manuales

Sin comentarios