Download Q Corresponding Ethernet Interface Module User`s Manual

Transcript
APPENDICES
A
(2) Reinitialization processing program
Perform the reinitialization process using a program. The following shows the process timing and sample
programs.
(a) Process timing
Close process
Program
END
process
Scan
Initial normal completion
signal (X19)
Open completion signal
(address: 5000H)
Scan
END
process
Scan
END
process
Scan
END
process
Scan
1
2
3
UINI instruction
Completion device
Abnormally ended
Completion device + 1
Reinitialization specification
(address: 1FH (b15))
4
Internal process of the E71
5
Processing reinitialization
Requesting
reinitialization
Initializing the module
Check the normal completion of the initial process. (Initial normal completion signal (X19): ON)
2
Terminate all data communications with the connected devices and perform a close process on all
connections.
3
Execute the UINI instruction. Specify the parameters (such as the IP address of the own station and Ethernet
operation setting) using the control data of the dedicated instruction and initialize the E71.
4
When the E71 reinitialization request is completed, Initial normal completion signal (X19) turns off.
5
When the reinitialization processes are all completed, Reinitialization specification (address: 1FH (b15) turns
"0" and Initial normal completion signal (X19) turns on. If the reinitialization process fails, an error code is
stored in the initial error code storage area.
(b) Sample program
The following two methods are available:
• Using the dedicated instruction (UINI instruction)
• Writing directly to the buffer memory
Do not use the method using the dedicated instruction (UINI instruction) and the method by writing directly to the buffer
memory together.
349
Appendix 4 Initial Process
Appendix 4.2 Reinitialization process
1