VME-PROF-S Technical Manual
DMS Dorsch Mikrosystem GmbH - 24972 Steinbergkirche Tel. (+49)4632/1411
942.1316.54
33
sleep (1) ;
printf (" Manufactor-Ident ...: %c%c%c\n", DP->ID1,DP->ID2,DP->ID3 );
printf (" Board-Ident ........: %3d\n", DP->BoardID );
printf (" Board-Version ......: %3X\n", DP->BoardED );
DP->Error = 1 ;
DP->Control = 0x08 ; /* Enable DPS firmware */
/* Now the DPS firmware starts and claers 'Error' */
/* Then the following configuration-variables are preset by */
/* the DPS-firmware: */
/* DP->Ident = 0x5848 (or 0x5849 for the CPU-C) */
/* UparLn = 0 */
/* ConfLn = 02 */
/* Config[0] = 0x1F */
/* Config[1] = 0x2F */
/* The DPS-firmware then waits, until Status are set to 1 */
sleep (1) ;
printf (" Wait for Lokal-CPU start ...\n");
for (n=0;n<10;n++) if (DP->Error) sleep(1) ;
if (DP->Error)
{
printf (" *** Error : Local CPU did not start !\n") ;
DP->Control = 0x00 ;
return (0) ;
} ;
printf (" --> Start O.K.\n") ;
printf (" Software ...........: %s\n", DP->Software );
printf (" SW-Version .. ......: %1X\n", DP->Version );
DP->Station = 20 ; /* Profibus Stations Address (0 .. 125) */
/* DP->Ident = 0x5848; */
/* the DPS firmware sets the default Ident no. */
/* PNO Ident Nummer for the VME-PROF-S = 0x5848 */
/* PNO Ident Nummer for the CPUC = 0x5849 */
/* If a other DP-slave shall be simulated, a different*/
/* ID-Number can be set. */
/* DP->Baud = 4 ; */
/* The DPS firmware automatically detects the used baud*/
/* rate, therefore the baud rate setting not necessary */
/* The used baud rate can be red from DP->Baud */
/* Baudrate ( 0 / 1 / 2 / 3 / 4 / / 6 / 7 ) */
/* = 9,6/19,2/93,7/187,5/500/ /1500/3000kBit/s*/
DP->UparLn = 0 ; /* User Parameter Length (0 .. 32) */
DP->ConfLn = 02 ; /* Config Length (1 .. 32)*/
DP->Config[0] = 0x13 ; /* 4 Byte Input Data to Master */
DP->Config[1] = 0x2f ; /* 16 Byte Output Data from Master */
DP->InputLn = 0 ; /* 0 = preset value for the Input Data Length. */
/* The correct value is later calculated by the DPS- */
/* firmware */
DP->OutputLn = 0 ; /* 0 = preset value for the Output Data Length. The */
/* correct value is later calculated by the DPS- */
/* firmware*/
DPR_Init (&DP->Inputs ,DP->InputLn) ; /* pre-initialization of the buffer */
DPR_Init (&DP->Outputs,DP->OutputLn) ; /* " " " " " */
DP->Status = 1 ; /* Enable */
/* Status = 1 -> the configuration data are valid */
/* the DPS software now starts-up with this */
/* configuration data. */
/* The firmware will now calculate the InputLn and */
/* OutputLn from the given Config[*] data and then */
/* initializes the Input and Output buffers with the */
/* correct Input- / Output length. */
counter = 0 ;
while (1)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Summary of Contents for VME-PROF-S
Page 15: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 29: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 37: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 47: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 49: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...