Chapter 4 Deployment
Manual VIPA System 300S SPEED7
4-44
HB140E - CP - RE_342-1CA70 - Rev. 09/46
Diagnostics
If "Diagnostic" at "PLC-Parameters" from WinCoCT was activated, the
following events may release a diagnostic message to the CPU and the
corresponding OB is called.
•
Change of CANopen state (OB 82)
•
Slave fail and und recovery (OB 86)
•
Guarding error (OB 82)
•
Emergency telegram (OB 82)
In the corresponding OB the diagnostics data may be accessed by means
of the SFC 13 DPNRM_DG.
Input parameter
RECORD
determines the target area where the data read
from the slave is saved after it has been transferred without error. The read
operation is started when input parameter
REQ
is set to 1.
Parameter Declaration Data
type
Memory
block
Description
REQ
INPUT
BOOL
I,Q,M,D,L,
constant
REQ
= 1: Reading Request
LADDR INPUT WORD
I,Q,M,D,L,
constant
Address CAN master VIPA 342-1CA70:
6000h + (n·100h) + Node-ID
(with n (1...8) slot at SPEED-Bus)
RET_VAL OUTPUT
INT
I, Q, M,D,L Return value
RECORD
OUTPUT
ANY
I,Q,M,D,L
Target area for the read diagnostics data. Only
data type BYTE is valid.
BUSY OUTPUT
BOOL
I,Q,M,D,L
BUSY
= 1: read operation just running
BUSY
= 0: read operation finished
The actual length of the diagnostics is evaluated by the CPU. Here the
following counts:
•
When the length of
RECORD
is less than the amount of data the data is
discarded and the respective error code is entered into
RET_VAL
.
•
When the length of
RECORD
is larger than or equal to the amount of
data then the data is transferred into the target areas and
RET_VAL
is
set to the actual length as a positive value.
Note!
It is essential that the matching
RECORD
parameters are used for all calls
that belong to a single task. A task is identified clearly by input parameter
LADDR
and
RECORD
.
Overview
Evaluate
diagnostics
with SFC 13
Parameter
RECORD
Содержание 300S SPEED7 - CP
Страница 1: ...VIPA System 300S SPEED7 CP 342 1CA70 Manual HB140E_CP RE_342 1CA70 Rev 09 46 November 2009...
Страница 4: ...Contents Manual VIPA System 300S SPEED7 ii HB140E CP RE_342 1CA70 Rev 09 46...
Страница 8: ...Safety information Manual VIPA System 300S SPEED7 4 HB140E CP RE_342 1CA70 Rev 09 46...
Страница 92: ...Chapter 4 Deployment Manual VIPA System 300S SPEED7 4 54 HB140E CP RE_342 1CA70 Rev 09 46...
Страница 94: ...Index Manual VIPA System 300S SPEED7 A 2 HB140E CP RE_342 1CA70 Rev 09 46 M Stich...