PROFIBUS Slave Development: How To Select A Network Interface
PROFIBUS Slave Development: How To Select A Network Interface
no
Complex Communication-
device yes Modul
?
Single Chip
Solution
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 3
School of Engineering and Information Technology
EC-1
same firmware
same ‘easy-to-use’ user interface
same configurator
same device driver
different formfactors
Master ASPC2
DPC31
LSPM2 SPM2
Simple Slave
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 5
School of Engineering and Information Technology
Device
Device Type
Type
User
User-- e.g.
e.g. Proxy
Proxy--FB
FB
Manager
Manager (DTM),
(DTM), Application
Program
Program (IEC
(IEC61131
61131--3)
3)
(EDD-Interpreter)
(EDD-Interpreter) Programmer's
Interface (API)
Slave
PROFIBUS FDL
Communications
MS0 MS1 MS2 Platform
Device Model
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 7
School of Engineering and Information Technology
SRD
FDL-Services FDL-Management
SDN
PROFIBUS-FDL
Life-List
SAP FDL
Activate (SAP)
CODEC
Write Parameter
Read Parameter
UART
Implementation Technologies
• Software (C)
• Hardware (ASICs / VHDL)
• Hybrid solutions
UART Block HW HW HW
CODEC Block SW HW HW
FDL Block SW SW HW
48 MHz
XSREE
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 11
School of Engineering and Information Technology
LSPM2 SPM2
M U+ 68n
7 6
1
U- 2P5 1
P5 7
1K2
2 A-line
68n U+ U 68n 8
M U- + Driver select:
9
100 K
2
680 R EN IN Differential voltage > 2V
RxD OU 2M
T U- Important:
2M
1M
HCPL7101 2.2 .. 22 nF
Electrical isolation to bus
500 V P5 and 2P5
Shield
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 13
School of Engineering and Information Technology
Busadresse
A Digital Input DI2
D
LD1 Rx/Tx+
SPI Interface
CLK
Rx/Tx-
®
A
5V
GND
DI1
AnyBus-IC
5V
GND
Applikationsprozessor
TxD RxD
RxD TxD
Serielle
2-leiter
TTL-
TTL-Schnittstelle
Rx/Tx+
Adress + Datenbus Rx/Tx-
®
Peripherie
5V
GND
Peripherie
AnyBus-IC
5V
GND
DIL 32 Format
42 x 21 x 12 mm
Max. Transmission 12 12 12 12
Rate [Mbaud]
Housing PQFP, 44 PinPQFP, 44 Pin PQFP, 100 Pin MQFP, 100 Pin
DPV1
PROFIBUS
PROFIBUS DP PROFIB. FMS
DP PROFIBUS DP
PROFIBUS FDL PROFIBUS FDL
PROFIBUS FDL + Data-Link-Layer IS + Data-Link-Layer IS
+ Physical-Layer Synchronous + Physical-Layer Synchronous
PROFIBUS
Software
PROFIBUS (intrinsic safety)
MBP-IS (31.25kbaud)
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 19
School of Engineering and Information Technology
interface to:
Intel (8032, 80x86)
Motorola (HC11/16/916)
Siemens (80166/80167)
SPC3
if(DPS2_GET_IND_NEW_PRM_DATA())
{ /*=== New parameter data ===*/
UBYTE SPC3_PTR_ATTR * prm_ptr;
UBYTE param_data_len, prm_result;
UBYTE ii;
prm_result = DPS2_PRM_FINISHED; User makes changes to adjust
do { /* Check parameter until no conflict behavior */ code to own application
prm_ptr = DPS2_GET_PRM_BUF_PTR();
param_data_len = DPS2_GET_PRM_LEN();
/* data_length_netto of parametration_telegram > 7 */
if (param_data_len > 7)
{
if (( *(prm_ptr+8) == 0xAA) && ( *(prm_ptr+9) == 0xAA))
prm_result = DPS2_SET_PRM_DATA_NOT_OK(); /* as example !!! */
else
{
for (ii= 0; ii<param_data_len & ii <10; ii++) // store in the buffer
prm_tst_buf[ii] = *(prm_ptr+ii+7);
prm_result = DPS2_SET_PRM_DATA_OK();
}
}
else
prm_result = DPS2_SET_PRM_DATA_OK();
} while(prm_result == DPS2_PRM_CONFLICT);
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 21
School of Engineering and Information Technology
16 Bit RS 485 /
Data
Host with
Interface
seperate
microcontroller
Commands
Host computer
runs application PROFIBUS Interface runs Protocol
software on seperate Software on separate Microcontroller
Microcontroller
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 27
School of Engineering and Information Technology
IM 180 IM 181
Master module
Carrier
IM 183-1 board
ASPC2
Intelligent Slave module for
ISA
SPC3
IM 184
Simple Slave module
LSPM2
; 5V DC power supply
; 0 to 70 °C permissible ambient
temperature
; Transmission rate up to 12Mbaud
Single
size
54 x 86 mm
Feldbus
connection
LEDs
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 29
School of Engineering and Information Technology
Memory applicable
process image to fieldbus systems
output data with I/O devices
as opposit to a
messaging system
Size
process image 1 KByte
input data or
7 KByte
send mailbox
(3)
Japan
China
Berne University of Applied Sciences PROFIBUS International Conference
June 2004 Page 35
School of Engineering and Information Technology
Certification Procedure
No OK ?
More than 800 certificates
awarded
Yes
Certification through
PROFIBUS
International