Diagnostics During Runtime In The User Program - YASKAWA VIPA System SLIO Manual

Hide thumbs Also See for VIPA System SLIO:
Table of Contents

Advertisement

Deployment PG/OP communication - PROFINET
PROFINET diagnostics > Diagnostics during runtime in the user program
10.9.3

Diagnostics during runtime in the user program

Example OB 1
Diagnostics data
Name:
ERR_A
MODTYP
ERR_C
ERR_D
CHTYP
NUMBIT
NUMCH
CHERR
CH0ERR
CH1ERR...CH7ERR
DIAG_US
250
With SFB 52 RDREC (read record) you can access diagnostics data from your user pro-
gram e.g. in OB 1. The SFB 52 RDREC operates asynchronously, that is, processing
covers multiple SFB calls.
More information about the usage of this block may be found in the
manual "SPEED7 Operation List" from VIPA.
For the cyclic access to the diagnostics data of the System SLIO counter module
050-1BA00 the following example may be used in the OB 1:
AN M10.3 'If the reading terminated (BUSY=0) and
AN M10.1 'there is no job triggered (REQ=0) then
S
M10.1 'start transfer of record (REQ:=1)
L
W#16#4000 'Number of record set (0x4000)
T
MW12
CALL SFB 52, DB52 'Call SFB 52 with Instance DB
REQ :=M10.1
ID :=DW#16#0018 'Smaller addr. of mixed module
INDEX :=MW12
MLEN :=14
VALID :=M10.2
BUSY :=M10.3
ERROR :=M10.4
STATUS :=MD14
LEN :=MW16
RECORD :=P#M 100.0 Byte 40
U M10.1
R M10.1
The counter module 050-1BA00 serves for 20byte diagnostics data. The diagnostics data
of the System SLIO module 050-1BA00 have the following structure:
Bytes
Function
1
Diagnostics
1
Module information
1
reserved
1
Diagnostics
1
Channel type
1
Number diagnostics bits per channel
1
Number channels of the module
1
Channel error
1
Channel-specific error
7
reserved
4
µs ticker
'Trigger flag
'Length record set 0x4000
'with 1 entry
'Validity of the record set
'Flag job just running
'Error bit during read access
'Error codes
'Length of the read record set
'Target (MB100, 40byte)
'Reset REQ
HB300 | CPU | 013-CCF0R00 | en | 19-30
VIPA System SLIO
Default
00h
18h
00h
00h
76h
08h
01h
00h
00h
00h
00h

Advertisement

Table of Contents
loading

Table of Contents