Download Siemens SPC3 Technical data
Transcript
SPC3 PROFIBUS Interface Center 12 Sample Program 12.1 Overview The sample program shows the utilization of the DPS2 software with the following examples: • • • • The received output data is filed in a defined memory area (io_byte_ptr). As input data, this memory area is read back or mirrored. The first byte of this input data influences the diagnostics bits in the manner already described. The sample slave has a switched on configuration of 0x13 / 0x23 (that is, 4 bytes I/Q) and can adapt itself to a configuration of 0x11/0x21 that is, 2 bytes I/Q). Based on your application, you must decide the extent to which a configuration change is a good idea • If 0xAA and 0xAA is in the user-specific parameter data, the sample program will signal a faulty parameter assignment. The user-specific parameter data is copied to the diagnostics data field. You can insert your application to the interfaces described. The program modules to be processed are summarized in the user directory. You particularly have to determine and enter the station address via your mechanism (for example, rotary switch, keys, etc.). You can obtain your own device-/manufacturer-specific PNO ident number from the PNO (refer to address list). You can include your own interrupt programs, dependent on the application, in the interrupt routines provided in the source code. Sample batch files, command files etc. are included in the diskette directory for generating operational EPROMs. The current state is stored on the delivery diskette. Please heed the current implementation instructions in the interface center’s mailbox (++49 911 73 79 72). SPC3 User Description Copyright (C) Siemens AG 2002. All rights reserved. V2.0 Page 87 09/02