7HVWLQJ)XQFWLRQV'LDJQRVWLFVDQG)DXOW(OLPLQDWLRQ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
A5E00105492-03
11-17
([DPSOHRIUHDGLQJVODYHGLDJQRVWLFGDWDXVLQJ)%,0&
Here you will find an example of how to use FB192 to read out DP slave
diagnostic data in the 192
67(3
user program.
$VVXPSWLRQVUHJDUGLQJWKH67(3XVHUSURJUDP
For this
67(3
user program it is assumed that:
•
The IM 308-C operating as DP master uses page frame 0 to 15 (number 0 of IM
308-C).
•
The DP slave has the PROFIBUS address 3.
•
Slave diagnostics data should be stored in DB 20. Here you can also use any
other data block.
•
Slave diagnostic data has a length of 26 bytes.
67(3XVHUSURJUDP
67/
'HVFULSWLRQ
:A DB 30
:SPA FB 192
Name :IM308C
DPAD : KH F800
IMST : KY 0, 3
FCT : KC SD
GCGR : KM 0
TYP : KY 0, 20
STAD : KF +1
LENG : KF 26
ERR : DW 0
Default address area of IM 308-C
//IM no. = 0, PROFIBUS address of the DP slave = 3
//Function: Read slave diagnosis
//not evaluated
//S5 data area: DB 20
//Diagnostic data as of data word 1
//Length of diagnostic data = 26 bytes
//Error code storage in DW 0 of DB 30
([DPSOHRIUHDGLQJRXW6GLDJQRVWLFGDWDZLWK6)&³5'5(&´
Here you will find an example of how to use SFC 59 in the
67(3
user program
to read S7 diagnostics data records for a DP slave. The process of reading the
slave diagnostics is similar to SFC 13.
Содержание CPU 312
Страница 10: ... RQWHQWV S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x x A5E00105492 03 ...
Страница 76: ... RQILJXULQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 5 50 A5E00105492 03 ...
Страница 146: ... RPPLVVLRQLQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 9 34 A5E00105492 03 ...
Страница 232: ... ORVVDU S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 13 16 A5E00105492 03 ...