Description of the DP Functions, Data, and Error Codes
4.3.6
Querying Information about the DP Master
Uses of the DP Master Information
The process image of the CP 5613/CP 5614 contains a memory area where you
can read out the following information about the DP master:
Mode (OFFLINE, STOP, CLEAR, AUTOCLEAR, OPERATE)
Identification number of the certification
Hardware version
Firmware version
Example
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. To display this information in a simple application, you would
write a program similar to that below:
printf("master state -> %ld",
/* 0 means OFFLINE */
/* 1 means STOP */
/* 2 means CLEAR */
/* 3 means AUTOCLEAR */
/* 4 means OPERATE */
printf("master ident number -> %lx",
/* in Motorola format */
printf("master HW version -> %lx",
/* e.g. 0x00000102 for version 1.2 */
printf("master FW version -> %lx",
Note
Writing these values is not permitted and does not change the master data.
162
p->info_watch.master_info.USIF_state);
p->info_watch.master_info.ident_number);
p->info_watch.master_info.hw_version);
p->info_watch.master_info.fw_version);
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02