125
Executing Interrupt Tasks in the CPU Unit
Section 7-4
7-4
Executing Interrupt Tasks in the CPU Unit
7-4-1
Applicable Models
7-4-2
Outline
The MCRO instruction can be executed in the ladder program in the Customi-
zable Counter Unit to start an external interrupt task in the CPU Unit.
Using MCRO
Note
1.
Program a dummy subroutine for the subroutine number specified for
MCRO, as shown above.
2.
If the external interrupt task is set to 1, 2, or 3, the power interruption or
scheduled interrupt tasks in the CPU Unit will be executed. If these tasks
are going to be executed from the Customizable Counter Unit, they should
normally be disabled from the CPU Unit as the power interruption or
scheduled interrupt tasks. If they are not disabled, they will be executed
both for their normal conditions as well as for MCRO from the Customiz-
able Counter Unit.
Model numbers
Functions
CS1W-HIO01-V1
12 contact inputs, 8 contact outputs
CS1W-HCP22-V1
12 contact inputs, 8 contact outputs, 2 pulse inputs, 2 pulse outputs
CS1W-HCA22-V1
12 contact inputs, 8 contact outputs, 2 pulse inputs, 2 analog outputs
CS1W-HCA12-V1
12 contact inputs, 8 contact outputs, 1 analog input, 1 pulse input, 2 analog
outputs
Customizable Counter Unit
CPU Unit
Ladder diagram
External inter-
rupt task
started
External interrupt task
(task No. = n
−
100)
MCRO
N
S
D
N: External interrupt task number in CPU Unit
(N = 100 to 199 for task numbers 0 to 99)
Set S and D to 000.
Equals Flag
Note
Be sure to use 100 plus the interrupt task number as the value of the first operand.
MCRO
110
000
000
MCRO
N
S
D
00200
25506
[ SBN 110 ]
[ RET ]
Example: When specifying to execute the external interrupt task has been completed, the Equals
Flag (SR 25506) will turn ON. This can be used as shown below to monitor completion of specify-
ing the start of the task.
External interrupt task 10 in
the CPU Unit will start when
IR 00200 in the Customiza-
ble Counter Unit turns ON.
The Equals Flag (SR 25506)
will turn ON specifying to ex-
ecute the external interrupt
task has been completed.
Содержание CS1W-HCA12-V1
Страница 2: ......
Страница 6: ...vi...
Страница 20: ...xx Conformance to EC Directives 7...
Страница 38: ...18 Models and System Configurations Section 1 2...
Страница 78: ...58 Fail safe Circuits Section 3 5...
Страница 138: ...118 AR Area Section 6 4...
Страница 204: ...184 Improved Instructions Section 7 14...
Страница 222: ...202 Cycle Time Section 8 3...
Страница 240: ...220 Troubleshooting Flowcharts Section 9 5...
Страница 244: ...224 Precautions when Using the CX Programmer Appendix A...
Страница 252: ......
Страница 253: ......