发表于:2006-06-08 14:01:00
楼主
功能块属性中说明如下,不知道是哪个库里的,请高手指点
好象是和西门子变频器通讯的
DPS7_E
FC-Call
-------
This FC is to be called for each slave one time per cycle.
Function (receive)
------------------
This FC reads the received data and evaluates the telegram, depending on the
PPO-type.
Input-values
------------
DBPA : number parameter-datablock
SYPA : pointer to systemparameter in parameter-DB 0..8172
SLPA : pointer to slaveparameter in parameter-DB
format: INT: possible values :
8..8180
Diagnosis
---------
Pafe1-byte in userdata-DB (communication-interface)
for the specified slave
datenwordaddress = "KSTW" + 8 (KSTW=communication-controlword)
Pafe2 : 2 no valid PPO-type
Permissible datablock-numbers
-----------------------------
CPU315-2DP: DB 1 - 127
CPU413-2DP: DB 1 - 511
CPU414-2DP: DB 1 - 1023
DB parameter: 6 datawords per slave + 4 datawords systemparameter
max. 682 slaves per DB --> length over all: 4096 datawords
DB userdata : PPO 1: 21 datawords/slave, max. 195 slaves/DB --> length over all:
4095 datawords (DBW0 not used)
PPO 2: 29 datawords/slave, max. 141 slaves/DB --> length over all:
4089 datawords (DBW0 not used)
PPO 3: 9 datawords/slave, max. 455 slaves/DB --> length over all:
4095 datawords (DBW0 not used)
PPO 4: 17 datawords/slave, max. 240 slaves/DB --> length over all:
4080 datawords (DBW0 not used)
PPO 5: 37 datawords/slave, max. 110 slaves/DB --> length over all:
4070 datawords (DBW0 not used)
Used flagwords
--------------
none
Used SFC
--------
SFC 14 - "DPRD_DAT"