6.14 Ob 151: Set/Read Time For Clock-Controlled Interrupt - Siemens CPU 948 Programming Manual

Simatic s5 s5-155u
Table of Contents

Advertisement

6.14 OB 151: Set/Read Time for Clock-Controlled Interrupt

Function
Parameters
Bit no.
15
Word 1
Word 2
Format
Word 3
Word 4
CPU 948 Programming Guide
C79000-G8576-C848-04
OB 151: Set/Read Time for Clock-Controlled Interrupt
By calling OB 151 you can do the following:
• • cause the CPU 948 to activate the clock-controlled interrupt ("timed
job" - OB 9, refer to Section 4.5.3) at a selected time:
- every minute
- every hour
- every day
- every week
- every month
- every year
- once,
• • read out the current status of a timed job,
• • cancel a previously generated timed job.
OB 151 can be called in the START-UP and RUN modes. A generated
clock-controlled interrupt is retained when a WARM RESTART
(automatic or manual) is carried out. A COLD RESTART deletes an
existing timed job.
If you generate a new timed job, an existing timed job is automatically
cancelled. This means that only one clock-controlled interrupt can be
active.
1. Data field for job parameters
When generating or cancelling a timed job, OB 151 takes the
required job parameters from a data field. When reading out the
current status of the job management, OB 151 transfers the current job
parameters to a data field.
You can set up this data field in a data block or in one of the two flag
areas (F or S flags).
The data field consists of four words and has the following format
when generating and reading out a timed job:
12
11
Seconds
Hours
Day of month
Year
8
7
4
Minutes
Weekday
Month
3
0
0
Job type
6 - 43

Advertisement

Table of Contents
loading

Table of Contents