
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
73
4.1.5 DP_get_pointer
Purpose
With this function, a DP user program obtains the exclusive pointer to the process
data of the CP 5613/CP 5614. Using this pointer, the DP user program can then
access the data image of the CP 5613/CP 5614.
General Notes
Note 1
Only one program can be in possession of a pointer to the process image at any
one time. This prevents conflicts accessin
the re
isters for controllin
consistenc
in the process image (for example, refer toD_lock_in_slave_adr in Section 4.3.1).
Note 2
Note that access to the dual-port RAM without a valid pointer leads to an access
violation in Windows NT. The reason for this is as follows: The DP_get_pointer
was not called, the DP_get_pointer is terminated with an error message or the
pointer was released again with DP_release_pointer.
Note 3
This function requires a relatively long run-time and if it is called often, can be
detrimental to the real-time properties of your user program.
Note 4
The CP must already have been started with DP_start_cp.
Kommentare zu diesen Handbüchern