Omron SYSMAC CS Series Programming Manual page 172

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Interrupt Tasks
Scheduled Interrupt Tasks: Tasks 2 and 3
1,2,3...
Cyclic task
Cyclic task
152
Operand S (the Second Operand) of MSKS: The bits of FFF7 Hex corre-
spond to the interrupt inputs of the Interrupt Input Unit. Interrupt input num-
bers 0 to 15 correspond to bits 0 to 15.
F Hex
Scheduled interrupt tasks are disabled in the default PC Setup at the start of
cyclic task execution. Perform the following steps to enable scheduled inter-
rupt tasks.
1. Execute the MSKS (SET INTERRUPT MASK) instruction from a cyclic
task and set the time (cycle) for the specified scheduled interrupt.
2. Set the scheduled interrupt time unit in PC Setup.
Note The interrupt time setting affects the cyclic task in that the shorter the interrupt
time, the more frequently the task executes and the longer the cycle time.
Example: The following examples shows executed scheduled interrupt task 2
every second.
Interrupt number 4 will be executed
at an interrupt interval of 0064 Hex.
#0064
Interrupt
Scheduled interrupt task 2
Interrupt Input Unit
Unit No.
1
1
F Hex
Scheduled interrupt time unit in PC
Setup = 10 ms (0.01 s)
Every second
Section 4-3
CPU Unit
1
1
0
1
1
1
F Hex
7 Hex

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents