78
APPENDICES
Appendix 4 Operation Examples of When the Remote Head Module Is Mounted
Common program
The following figure shows an example of the program to check the data link status of the remote head module (station
number 1).
Add the MCR instruction shown below to the last of the program.
Program example in pulse count mode
■Program example in pulse count mode
• To start the count operation
• To stop the count operation
• Setting to output the counter value coincidence signal
• Processing when the count values match
(0) Checks the data link status of the remote head module (station number 1).
(32) Turns on 'CH1 Count enable command' (Y1004).
(48) Turns off 'CH1 Count enable command' (Y1004).
(64) Turns on 'CH1 Coincidence signal No.1 reset command' (Y1000) and 'CH1 Coincidence signal enable command' (Y1002).
(89) Turns off 'CH1 Coincidence signal No.1 reset command' (Y1000) and 'CH1 Coincidence signal enable command' (Y1002).
(99) Performs an external output when the count values match.