Manual VIPA System 300S SPEED7
Chapter 6 Diagnostics and error behavior
HB140E - CP - RE_341-2CH71 - Rev. 09/46
6-3
The diagnostics data of the corresponding CP may be accessed by the
SFC 59 RD_REC.
The read operation is started when input parameter
REQ
is set to 1 when
the call to SFC 59 is issued. The output parameter
BUSY
returns a value of
0 if the read operation was executed immediately. During read access
BUSY
returns 1. To access the diagnostics data with
LADDR
the peripheral
address of the CP is specified.
The corresponding CP part is specified by
RECNUM
. Here the record set
80h stands for COM1 and 81h for COM2.
Parameter
RECORD
determines the target area. To access each
diagnostics of one CP part the target area should have a length of 200byte.
Parameter
Declaration Data type Memory block
Description
REQ INPUT
BOOL
I,Q,M,D,L,
constant
REQ
= 1: read request
IOID INPUT
BYTE
I,Q,M,D,L,
constant
Identifier for the address space:
Because of the identical addresses for
inputs and outputs here 54h should be
entered.
LADDR INPUT WORD
I,Q,M,D,L,
constant
Logical base address of the module.
RECNUM INPUT BYTE I,Q,M,D,L,
constant
Record set number
80h: Diagnostics data 80h
81h: Diagnostics data 81h
RET_VAL
OUTPUT
INT
I,Q,M,D,L
The return value contains an error code
if an error is detected when the function
is being processed.
Additionally: the length of the actual
record that was read, in bytes (range:
+1 to +200), provided that the target
area is greater than the transferred
record and that no communication
errors have occurred.
BUSY OUTPUT
BOOL
I,Q,M,D,L
BUSY
= 1: the write operation has not
been completed.
RECORD
OUTPUT
ANY
I,Q,M,D,L
Target area for the record that was
read. To access the whole 100
diagnostics the area should have a
length of 200byte.
When SFC 59 is processed in asyn-
chronous mode you must ensure that
the actual parameters of
RECORD
have the same length information for all
calls. Only data type BYTE is permitted.
SFC 59 - RD_REC
Parameters
Содержание CP 341S
Страница 1: ...VIPA System 300S SPEED7 CP 341 2CH71 Manual HB140E_CP RE_341 2CH71 Rev 09 46 November 2009 ...
Страница 4: ...Contents Manual VIPA System 300S SPEED7 ii HB140E CP RE_341 2CH71 Rev 09 46 ...
Страница 8: ...Safety information Manual VIPA System 300S SPEED7 4 HB140E CP RE_341 2CH71 Rev 09 46 ...
Страница 36: ...Chapter 3 Hardware description Manual VIPA System 300S SPEED7 3 8 HB140E CP RE_341 2CH71 Rev 09 46 ...
Страница 60: ...Chapter 5 Communication protocols Manual VIPA System 300S SPEED7 5 10 HB140E CP RE_341 2CH71 Rev 09 46 ...
Страница 70: ...Index Manual VIPA System 300S SPEED7 A 2 HB140E CP RE_341 2CH71 Rev 09 46 M Stich ...