2
1-6 CPM1/CPM1A Interrupt Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
1-6-1 Types of Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
1-6-2 Input Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
1-6-3 Masking All Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
1-6-4 Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
1-6-5 High-speed Counter Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
1-7 SRM1 Interrupt Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
1-7-1 Types of Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
1-7-2 Interval Timer Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
1-8 CompoBus/S Distributed I/O Functions (SRM1 Only). . . . . . . . . . . . . . . . . . 88
1-9 Communications Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
1-9-1 CQM1 PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
1-9-2 Wiring Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
1-9-3 CQM1 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . 93
1-9-4 CPM1/CPM1A Host Link Communications. . . . . . . . . . . . . . . . . . . 95
1-9-5 SRM1 Host Link Communications. . . . . . . . . . . . . . . . . . . . . . . . . . 97
1-9-6 RS-232C Communications (CQM1/SRM1 Only) . . . . . . . . . . . . . . 100
1-9-7 CQM1 One-to-one Link Communications . . . . . . . . . . . . . . . . . . . . 102
1-9-8 CPM1/CPM1A One-to-one Link Communications . . . . . . . . . . . . . 104
1-9-9 CPM1/CPM1A NT Link Communications. . . . . . . . . . . . . . . . . . . . 105
1-9-10 SRM1 One-to-one Link Communications . . . . . . . . . . . . . . . . . . . . 106
1-9-11 SRM1 NT Link Communications. . . . . . . . . . . . . . . . . . . . . . . . . . . 108
1-9-12 SRM1 No Protocol Communications . . . . . . . . . . . . . . . . . . . . . . . . 109
1-9-13 Transmission Data Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
1-9-14 Transmission Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
1-9-15 No Protocol Communications Program Example. . . . . . . . . . . . . . . 112
1-10 Calculating with Signed Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
1-10-1 Definition of Signed Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
1-10-2 Arithmetic Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
1-10-3 Inputting Signed Binary Data Using Decimal Values. . . . . . . . . . . . 115
1-10-4 Using Signed-binary Expansion Instructions (CQM1 Only) . . . . . . 115
1-10-5 Application Example Using Signed Binary Data . . . . . . . . . . . . . . . 116