15 - 57 15 - 57
15 TROUBLESHOOTING
(c) Examples of programs that initialize indicator LED and communication error
information
The following shows examples of a program that reads error codes when
errors described in (1) above occur in an interface on the CH1 side and
initializes the indicator LED and communication error information.
Incorporate the necessary part of the program.
(Input/output signals X/Y00 to X/Y1F of C24)
1) When data is communicated using the MC protocol
Turn off/clear
command
Reads LED and communication error
information from address 201
H
.
Reads switch setting error description from address 203
H
.
Reads data transmission/reception
results from address 256
H
to 258
H
.
Requests initialization of error information on the CH1
side and clearing of error codes in the buffer memory.
Writes initialization request such as for displayed LED to
address 0
H
.
Check the error codes and take corrective actions according to Section 15.2.
2) When data is communicated using the predefined protocol
Reads LED and communication error information from
address 201
H
.
Reads switch setting error data from address 203
H
.
Reads data transmission/reception results from address
257
H
to 258
H
.
Requests initialization of error information on the CH1
side and clearing of error codes in the buffer memory.
Reads predefined protocol function error data.
Turn off/clear
command
Writes initialization request such as for displayed LED to
address 0
H
.
Check the error codes and take corrective actions according to Section 15.2.
3) When data is communicated using the nonprocedural or bidirectional
protocol
Reads LED and communication error information from
address 201
H
.
Reads switch setting error description from address 203
H
.
Reads data transmission/reception results from address
257
H
to 258
H
.
Writes initialization request such as for displayed LED to
address 0
H
.
Requests initialization of error information on the CH1
side and clearing of error codes in the buffer memory.
Turn off/clear
command
Check the error codes and take corrective actions according to Section 15.2.
Summary of Contents for MELSEC LJ71C24
Page 1: ......
Page 2: ......
Page 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Page 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Page 23: ...A 21 A 21 MEMO...
Page 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Page 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Page 425: ......
Page 426: ......
Page 427: ......