9 TROUBLESHOOTING
9.3 Acquiring diagnostic information of slave stations
51
9
■Function block (FB) for diagnostic information acquisition
Store the diagnostic information acquisition target station number in the diagnostic request information and turn on the
diagnostic information display request. Diagnostic information 1 and 2 is transferred when the request flag turns off.
• Labels to be defined (details on FB inputs and outputs)
• Devices used in the program
• Program example
The following is a program example of MELSEC-Q series.
Label name Data type Class Description
i_bEN Bit VAR_INPUT A trigger (on input) for starting diagnostic information acquisition processing
i_wDiagnosisReq Word VAR_INPUT A value stored in the diagnostic request information. Enter the information acquisition target
station number.
o_bENO Bit VAR_OUTPUT A flag that indicates the acquisition processing is being performed. The on status indicates
that the processing is being performed.
o_bOK Bit VAR_OUTPUT A flag that indicates the acquisition processing has completed
o_wDiagnosis1Inf Word VAR_OUTPUT A start device for storing diagnostic information 1. Diagnostic information 1, for 15 words
starting from the specified device, is stored.
o_wDiagnosis2Inf Word VAR_OUTPUT A start device for storing diagnostic information 2. Diagnostic information 2, for 16 words
starting from the specified device, is stored.
Device Description
SM1741 Diagnostic information display request
SD1741 Diagnostic request information
SD1743 Number of occupied stations (start device of diagnostic information 1)
SD1758 Manufacturer code (start device of diagnostic information 2)
(0) Check the on status of the diagnostic information display request and store the information acquisition target station number.
(56) Check the off status of the diagnostic information display request.
(77) Store diagnostic information 1 and diagnostic information 2.