50
9 TROUBLESHOOTING
9.3 Acquiring diagnostic information of slave stations
Program created by GX Works2 (MELSEC-Q/L)
A program example created by GX Works2 is provided below.
■Program for acquiring diagnostic information
Store the diagnostic information acquisition target station number in D0 and turn on M0. Diagnostic information 1 is
transferred and stored in the area starting from D100 and diagnostic information 2 is transferred and stored in the area
starting from D115 by the function block for diagnostic information acquisition.
• Devices used in the program
• Program example
Device Data type Description
D0 Word Information acquisition target station number
M0 Bit A flag for starting diagnostic information acquisition processing
M1 Bit A flag that indicates the acquisition processing is being performed
D100 Word A start device for storing diagnostic information 1
D115 Word A start device for storing diagnostic information 2